Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed Intel fortran flags
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Oct 5, 2023
1 parent a45329b commit 7f1bd05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/Modules/SetSwiftestFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,7 @@ IF (CMAKE_BUILD_TYPE STREQUAL "RELEASE" OR CMAKE_BUILD_TYPE STREQUAL "PROFILE")
)
# Tells the compiler to link to certain libraries in the Intel oneAPI Math Kernel Library (oneMKL).
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE}"
Fortran "-qmkl=cluster" # Intel
"-qmkl" # Intel
Fortran "-qmkl" # Intel
)
# Enables additional interprocedural optimizations for a single file compilation
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE}"
Expand Down Expand Up @@ -614,7 +613,7 @@ IF (COMPILER_OPTIONS STREQUAL "Intel")
ELSE ()
# Some subroutines require more strict floating point operation optimizations for repeatability
SET_COMPILE_FLAG(STRICTMATH_FLAGS "${STRICTMATH_FLAGS}"
Fortran "-fp-module=precise" # Intel
Fortran "-fp-model=precise" # Intel
)
SET_COMPILE_FLAG(STRICTMATH_FLAGS "${STRICTMATH_FLAGS}"
Fortran "-prec-div" # Intel
Expand Down

0 comments on commit 7f1bd05

Please sign in to comment.