Skip to content

Commit ac38e72

Browse files
Update CMakeLists.txt
1 parent 9ffde2f commit ac38e72

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Libraries/oneDPL/pSTL_offload/ParSTLTests/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,6 @@ project(ParSTLTests)
55
find_package(TBB REQUIRED)
66
set(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)
298
if(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")

0 commit comments

Comments
 (0)