We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a326e commit 9d3bbabCopy full SHA for 9d3bbab
1 file changed
app/SYCL/CMakeLists.txt
@@ -52,10 +52,11 @@ if(WIN32 AND ITLABAI_SYCL_IMPLEMENTATION STREQUAL "IntelLLVM")
52
)
53
endif()
54
else()
55
- target_sources(SYCL_Example PRIVATE sycl_kernel.cpp)
56
- itlabai_add_sycl_to_target(TARGET SYCL_Example SOURCES
+ add_library(SYCL_Example_kernel OBJECT sycl_kernel.cpp)
+ itlabai_add_sycl_to_target(TARGET SYCL_Example_kernel SOURCES
57
sycl_kernel.cpp
58
59
+ target_sources(SYCL_Example PRIVATE $<TARGET_OBJECTS:SYCL_Example_kernel>)
60
61
62
add_test(NAME SYCL.Example COMMAND SYCL_Example)
0 commit comments