Skip to content

Commit 9938ff6

Browse files
committed
Fix Windows SYCL launcher and expose graph SYCL backend
1 parent 6db14e3 commit 9938ff6

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

app/Graph/graph_build.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ int main(int argc, char* argv[]) {
4040
options.par_backend = ParBackend::kOmp;
4141
} else if (backend_str == "kokkos") {
4242
options.par_backend = ParBackend::kKokkos;
43+
} else if (backend_str == "sycl") {
44+
options.par_backend = ParBackend::kSycl;
4345
} else {
4446
std::cerr << "Unknown parallel backend: " << backend_str
4547
<< ". Using default (Threads)." << '\n';

src/layers/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ if(ITLABAI_ENABLE_SYCL)
1010
find_package(AdaptiveCpp CONFIG REQUIRED)
1111
target_compile_definitions(layers_lib PUBLIC ITLABAI_HAS_SYCL)
1212
target_link_libraries(layers_lib PUBLIC AdaptiveCpp::acpp-rt)
13+
if(WIN32)
14+
set_property(TARGET layers_lib PROPERTY CXX_COMPILER_LAUNCHER "")
15+
endif()
1316
add_sycl_to_target(TARGET layers_lib SOURCES ${layers_src})
1417
endif()

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ itlabai_copy_opencv_runtime(run_test)
1313

1414
if(ITLABAI_ENABLE_SYCL)
1515
find_package(AdaptiveCpp CONFIG REQUIRED)
16+
if(WIN32)
17+
set_property(TARGET run_test PROPERTY CXX_COMPILER_LAUNCHER "")
18+
endif()
1619
add_sycl_to_target(TARGET run_test SOURCES ${TEST_SRC_FILES})
1720
endif()
1821

0 commit comments

Comments
 (0)