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

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-tanvir-1211 committed Feb 22, 2024
1 parent 382fdf9 commit dcfda55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ if (MSVC)
)
endif()

# set -ffp-model to precise to avoid getting error statement
# update CXX_FLAGS to avoid error when building benchmarks
# in case of icpx compiler:
# explicit comparison with NaN in fast floating point mode [-Werror,-Wtautological-constant-compare]
# https://github.com/dealii/dealii/issues/14693
string(FIND ${CMAKE_CXX_COMPILER} "icpx" found_icpx)
if(${found_icpx} GREATER -1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffp-model=precise")
if(${found_icpx} GREATER -1 AND ${BLAS_ENABLE_BENCHMARK})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=tautological-constant-compare")
endif()

# By default, tall and skinny Gemm is enabled (for better performance)
Expand Down

0 comments on commit dcfda55

Please sign in to comment.