Skip to content

Commit 306399a

Browse files
sycl_source/CMakeLists.txt: use aot for gpus
1 parent c3b6eed commit 306399a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl_source/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ add_sycl_to_target(
2222
TARGET bm3dsycl
2323
SOURCES source.cpp kernel.cpp)
2424

25+
# for aot compilation for gpus
26+
target_compile_options(bm3dsycl PRIVATE -fsycl -fsycl-targets=spir64,spir64_gen)
27+
2528
install(TARGETS bm3dsycl
2629
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2730
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

0 commit comments

Comments
 (0)