diff --git a/CMakeLists.txt b/CMakeLists.txt index 9610a75..93a0b06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,4 @@ find_package(AdaptiveCpp REQUIRED) find_library(LIB_XXHASH xxhash) -add_executable(sycl_comp sycl_comp.cpp) -add_sycl_to_target(TARGET sycl_comp) -target_link_libraries(sycl_comp PRIVATE ${LIB_XXHASH}) +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..2b37423 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,11 @@ +add_executable(sycl_comp sycl_comp.cpp) +add_sycl_to_target(TARGET sycl_comp) +target_link_libraries(sycl_comp PRIVATE ${LIB_XXHASH}) + +option(SYCL_EX_COMPILE_SEQUENTIAL_BENCH + "Compile with single core cpu benchmark" + OFF) + +if (SYCL_EX_COMPILE_SEQUENTIAL_BENCH) + target_compile_definitions(sycl_comp PRIVATE SEQ_BENCH) +endif() diff --git a/matrix.hpp b/src/matrix.hpp similarity index 100% rename from matrix.hpp rename to src/matrix.hpp diff --git a/sycl_comp.cpp b/src/sycl_comp.cpp similarity index 100% rename from sycl_comp.cpp rename to src/sycl_comp.cpp diff --git a/timer.hpp b/src/timer.hpp similarity index 100% rename from timer.hpp rename to src/timer.hpp