Skip to content

Commit

Permalink
Disable the optimized Intel Math Library for PP/AN and WS compilations
Browse files Browse the repository at this point in the history
Specifying -lm before the object file has the effect of using the
standard GNU math library instead of the optimized Intel Math library
for C programs.
Additionally, add the -xsse2 option to use a stricter set of ISA
than the default -msse2, which is also used for the gaea settings.
  • Loading branch information
Chris Blanton authored and Chris Blanton committed Dec 8, 2021
1 parent ada43ac commit 2e5c68c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion site-configs/gfdl-ws/config.site
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ test -z "$CC" && CC=icc
test -z "$FC" && FC=ifort

# Compile/Link flags
test -z "$FCFLAGS" && FCFLAGS="-fltconsistency -fno-alias -stack_temps -ftz -assume byterecl -i4 -traceback"
# Note: using -lm before the object file causes the Intel compiler to use the
# standard GNU math library instead of the optimized Intel Math library
test -z "$CFLAGS" && CFLAGS="-xSSE2 -lm"
test -z "$FCFLAGS" && FCFLAGS="-fltconsistency -fno-alias -stack_temps -ftz -assume byterecl -i4 -traceback -xSSE2"
5 changes: 4 additions & 1 deletion site-configs/gfdl/config.site
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ test -z "$CC" && CC=icc
test -z "$FC" && FC=ifort

# Compile/Link flags
test -z "$FCFLAGS" && FCFLAGS="-fltconsistency -fno-alias -stack_temps -ftz -assume byterecl -i4 -traceback"
# Note: using -lm before the object file causes the Intel compiler to use the
# standard GNU math library instead of the optimized Intel Math library
test -z "$CFLAGS" && CFLAGS="-xSSE2 -lm"
test -z "$FCFLAGS" && FCFLAGS="-fltconsistency -fno-alias -stack_temps -ftz -assume byterecl -i4 -traceback -xSSE2"

0 comments on commit 2e5c68c

Please sign in to comment.