Skip to content

Commit

Permalink
Merge branch 'azamat/knl/rm-clubb-mkl-div-by-0-halts' (PR #2208)
Browse files Browse the repository at this point in the history
Turn on FP exception checking on KNL nodes with Intel compiler.

Also, don't halt on div-by-0 in a clubb MKL call on KNLs when
FP exception-checking (-fpe0) is turned on. This makes debug and
non-debug runs behave the same with -fpe0 on.

[BFB]
  • Loading branch information
amametjanov committed Apr 3, 2018
2 parents 09a388a + 9e39e1e commit 0ca8021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/e3sm/machines/config_compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ for mct, etc.
<!-- Intel v18 is default on cori-knl and cori-haswell -->
<compiler COMPILER="intel" MACH="cori-knl">
<FFLAGS> -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model consistent -fimf-use-svml </FFLAGS>
<ADD_FFLAGS DEBUG="FALSE"> -O2 -debug minimal -qno-opt-dynamic-align </ADD_FFLAGS>
<ADD_FFLAGS DEBUG="FALSE"> -O2 -debug minimal -qno-opt-dynamic-align -fpe0</ADD_FFLAGS>
<ADD_CFLAGS compile_threaded="true"> -qopenmp </ADD_CFLAGS>
<ADD_FFLAGS compile_threaded="true"> -qopenmp </ADD_FFLAGS>
<ADD_FFLAGS_NOOPT compile_threaded="true"> -qopenmp </ADD_FFLAGS_NOOPT>
Expand Down Expand Up @@ -1115,7 +1115,7 @@ for mct, etc.
<SCC> icc </SCC>
<SCXX> icpc </SCXX>
<FFLAGS>-convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model consistent -fimf-use-svml</FFLAGS>
<ADD_FFLAGS DEBUG="FALSE"> -O2 -debug minimal -qno-opt-dynamic-align </ADD_FFLAGS>
<ADD_FFLAGS DEBUG="FALSE"> -O2 -debug minimal -qno-opt-dynamic-align -fpe0</ADD_FFLAGS>
<ADD_CFLAGS compile_threaded="true"> -qopenmp </ADD_CFLAGS>
<ADD_FFLAGS compile_threaded="true"> -qopenmp </ADD_FFLAGS>
<ADD_FFLAGS_NOOPT compile_threaded="true"> -qopenmp </ADD_FFLAGS_NOOPT>
Expand Down

0 comments on commit 0ca8021

Please sign in to comment.