Skip to content

Commit

Permalink
Merge Pull Request #12618 from sebrowne/Trilinos/develop
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: b"Framework: Add '-fp-model=precise' when using OneAPI compiler"
PR Author: sebrowne
  • Loading branch information
trilinos-autotester authored Dec 20, 2023
2 parents 07fa4b8 + 76ae369 commit 45ed368
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cmake/ProjectCompilerPostConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
tribits_get_package_enable_status(Kokkos KokkosEnable "")

IF (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
MESSAGE("-- " "Adding '-fp-model=precise' to C++ compiler flags because Trilinos needs it when using the Intel OneAPI C++ compiler.")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fp-model=precise")
ENDIF()

IF (KokkosEnable)
MESSAGE("-- " "Skip adding flags for OpenMP because Kokkos flags does that ...")
SET(OpenMP_CXX_FLAGS_OVERRIDE " ")
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/ini-files/config-specs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2924,8 +2924,6 @@ use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|ALL

opt-set-cmake-var CMAKE_CXX_FLAGS STRING FORCE : "-fp-model=precise"

opt-set-cmake-var TPL_BLAS_LIBRARIES STRING : -qmkl=sequential
opt-set-cmake-var TPL_LAPACK_LIBRARIES STRING : -qmkl=sequential

Expand Down

0 comments on commit 45ed368

Please sign in to comment.