Skip to content

Commit d45abf3

Browse files
committed
Compile Windows SYCL host source as host-only
1 parent e734855 commit d45abf3

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

app/SYCL/CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ if(WIN32 AND ITLABAI_SYCL_IMPLEMENTATION STREQUAL "IntelLLVM")
3636
"to point to the runtime import library")
3737
endif()
3838

39-
set_property(SOURCE sycl_example.cpp APPEND PROPERTY COMPILE_OPTIONS -fsycl)
40-
if(ITLABAI_SYCL_TARGETS)
41-
set_property(SOURCE sycl_example.cpp APPEND PROPERTY
42-
COMPILE_OPTIONS -fsycl-targets=${ITLABAI_SYCL_TARGETS}
43-
)
44-
endif()
39+
set_property(SOURCE sycl_example.cpp APPEND PROPERTY
40+
COMPILE_OPTIONS -fsycl -fsycl-host-only
41+
)
4542

4643
set(SYCL_EXAMPLE_KERNEL_OBJECT
4744
"${CMAKE_CURRENT_BINARY_DIR}/SYCL_Example.sycl_kernel.obj")

0 commit comments

Comments
 (0)