From ecca7b967e75e4d9c8a95cffe09411e240350298 Mon Sep 17 00:00:00 2001 From: luoyu-intel Date: Tue, 4 Jun 2024 11:05:41 +0800 Subject: [PATCH] sync main --- CMakePresets.json | 2 +- bestla/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 bfc4b53ab..ad58fd3c7 100644 --- a/bestla/CMakeLists.txt +++ b/bestla/CMakeLists.txt @@ -133,6 +133,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)