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 cf03b4e commit 27068feCopy full SHA for 27068fe
1 file changed
app/SYCL/CMakeLists.txt
@@ -36,9 +36,12 @@ if(WIN32 AND ITLABAI_SYCL_IMPLEMENTATION STREQUAL "IntelLLVM")
36
"to point to the runtime import library")
37
endif()
38
39
- set_property(SOURCE sycl_example.cpp APPEND PROPERTY
40
- COMPILE_OPTIONS -fsycl -fsycl-host-only
41
- )
+ target_link_options(SYCL_Example PRIVATE /clang:-fsycl)
+ if(ITLABAI_SYCL_TARGETS)
+ target_link_options(SYCL_Example PRIVATE
42
+ /clang:-fsycl-targets=${ITLABAI_SYCL_TARGETS}
43
+ )
44
+ endif()
45
46
set(SYCL_EXAMPLE_KERNEL_OBJECT
47
"${CMAKE_CURRENT_BINARY_DIR}/SYCL_Example.sycl_kernel.obj")
0 commit comments