Replies: 3 comments 6 replies
-
Hi @chlict, The interface for linking your code against an additional device-containing object is simpler - just pass your More detailed documentation on the subject can be found here: |
Beta Was this translation helpful? Give feedback.
-
Hi AGindinson, Thanks for your reply. Is it ok for |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, apologize if this is not the correct place to ask. I want to link a dpcpp program with a prebuilt device function which is also written in C++. If I'm understanding correctly, I should annotate the external function with
SYCL_EXTERNAL
, and then call it from the kernal. Like this:Assume I have
foo
compiled infoo.o
. So what command should I use to build the final executable?In particular, do I need to use
-fsycl-add-targets=mytarget:foo.o
option? I notice it is deprecated in recent dpcpp code, what is its replacement?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions