Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 2f149cb

Browse files
FIx error when building with oneAPI release compiler (#497)
1 parent 3adb52c commit 2f149cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

benchmark/portblas/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ if(BLAS_VERIFY_BENCHMARK)
2626
find_package(SystemBLAS REQUIRED)
2727
endif()
2828

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+
2938
set(sources
3039
# Level 1 blas
3140
blas1/axpy.cpp

0 commit comments

Comments
 (0)