File tree Expand file tree Collapse file tree
Libraries/oneDPL/pSTL_offload/ParSTLTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,27 +5,6 @@ project(ParSTLTests)
55find_package (TBB REQUIRED )
66set (CMAKE_CXX_COMPILER icpx)
77
8- # Ensure either GPU or CPU is selected, default to CPU
9- #if(USE_GPU AND USE_CPU)
10- # message(FATAL_ERROR "Cannot specify both USE_GPU and USE_CPU. Please choose one.")
11- #elseif(NOT USE_GPU AND NOT USE_CPU)
12- # set(USE_CPU ON) # Default to CPU if neither is set
13- #endif()
14-
15- # Add executable
16- #add_executable(ParSTLTest main.cpp)
17-
18- # Set compile options based on selected build target
19- #if(USE_GPU)
20- # message(STATUS "Building for GPU")
21- # target_compile_options(ParSTLTest PRIVATE -fsycl -fsycl-pstl-offload=gpu -D GPU)
22- #elseif(USE_CPU)
23- # message(STATUS "Building for CPU")
24- # target_compile_options(ParSTLTest PRIVATE -fsycl -D CPU)
25- #endif()
26-
27- # Link SYCL and TBB libraries
28- #target_link_libraries(ParSTLTest PRIVATE sycl tbb)
298if (GPU)
309 #To build for Intel® Data Center GPU Max 1550 or 1100
3110 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -fsycl-pstl-offload=gpu -D GPU" )
You can’t perform that action at this time.
0 commit comments