Skip to content

Commit

Permalink
FIx error when building with icpx compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-tanvir-1211 committed Feb 16, 2024
1 parent cb69d68 commit 382fdf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ if (MSVC)
)
endif()

# set -ffp-model to precise to avoid getting error statement
# 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")
endif()

# By default, tall and skinny Gemm is enabled (for better performance)
option(GEMM_TALL_SKINNY_SUPPORT "Whether to enable tall and skinny Gemm" ON)
# By default vectorization in gemm kernels is enabled as it imrpove the performance on all Devices.
Expand Down

0 comments on commit 382fdf9

Please sign in to comment.