Commit 3aaa71c9 authored by Andrew Wood's avatar Andrew Wood

Work around a PGI floating point bug.

Executables compiled on Intel Haswell architectures sometimes return
incorrect floating point results when using fused multiply-add
parent f5239253
Pipeline #2546 failed with stage
in 0 seconds
......@@ -14,7 +14,7 @@ if(NOT INHERIT_FLAGS)
"-g -Mnodefaultunit -Ktrap=fp -mcmodel=medium -Mdclchk ${CPU} ${MPI_Fortran_COMPILE_FLAGS}"
"-g -Mnodefaultunit -Ktrap=fp -mcmodel=medium -Mdclchk -Mnofma ${CPU} ${MPI_Fortran_COMPILE_FLAGS}"
CACHE STRING "Fortran flags" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -g -Mvect -Munroll"
CACHE STRING "Fortran flags for release build" FORCE)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment