This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,16 @@ endif()
55
55
# set BENCHMARK_ENABLE_TESTING to OFF for google bench
56
56
set (BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE )
57
57
58
+ # update CXX_FLAGS to avoid error when building benchmarks
59
+ # in case of icpx compiler:
60
+ # Explicit comparison with NaN in fast floating point mode
61
+ # [-Werror,-Wtautological-constant-compare]
62
+ # https://github.com/dealii/dealii/issues/14693
63
+ string (FIND ${CMAKE_CXX_COMPILER} "icpx" found_icpx )
64
+ if (${found_icpx} GREATER -1 )
65
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=tautological-constant-compare" )
66
+ endif ()
67
+
58
68
add_subdirectory (${CMAKE_CURRENT_BINARY_DIR} /googlebench-src
59
69
${CMAKE_CURRENT_BINARY_DIR} /googlebench-build
60
70
EXCLUDE_FROM_ALL )
Original file line number Diff line number Diff line change @@ -26,15 +26,6 @@ if(BLAS_VERIFY_BENCHMARK)
26
26
find_package (SystemBLAS REQUIRED )
27
27
endif ()
28
28
29
- # update CXX_FLAGS to avoid error when building benchmarks
30
- # in case of icpx compiler:
31
- # explicit comparison with NaN in fast floating point mode [-Werror,-Wtautological-constant-compare]
32
- # https://github.com/dealii/dealii/issues/14693
33
- string (FIND ${CMAKE_CXX_COMPILER} "icpx" found_icpx )
34
- if (${found_icpx} GREATER -1 )
35
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=tautological-constant-compare" )
36
- endif ()
37
-
38
29
set (sources
39
30
# Level 1 blas
40
31
blas1/axpy.cpp
You can’t perform that action at this time.
0 commit comments