diff --git a/CMakePresets.json b/CMakePresets.json index c4c4a70e2..d8b7ea609 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -152,7 +152,7 @@ "description": "x64 SYCL", "inherits": "x64-debug-sycl", "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo" + "CMAKE_BUILD_TYPE": "Release" } } ] diff --git a/bestla/CMakeLists.txt b/bestla/CMakeLists.txt index eb7f96824..33637aea1 100644 --- a/bestla/CMakeLists.txt +++ b/bestla/CMakeLists.txt @@ -152,6 +152,9 @@ endif(UT_BUILD) if(BTLA_UT_BENCHMARK) file(GLOB ut_headers ${PROJECT_NAME}/ut/*.h) include_directories(${PROJECT_NAME}) + if(NOT BTLA_SYCL) + list(REMOVE_ITEM benchmark_srcs ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}/ut/sycl_benchmark.cpp) + endif() add_executable(${PROJECT_NAME}_benchmark ${benchmark_srcs} ${headers} ${ut_headers}) if(BTLA_UT_OPENMP) include(FindOpenMP)