Skip to content

Commit f5739d0

Browse files
committed
now working on cheyenne
1 parent 192c418 commit f5739d0

File tree

2 files changed

+32
-18
lines changed

2 files changed

+32
-18
lines changed

config/cesm/machines/config_compilers.xml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ using a fortran linker.
7777
</CPPDEFS>
7878

7979
<INCLDIR>
80-
<append MODEL="ufsatm"> -I$(EXEROOT)/atm/obj/FMS </append>
80+
<append MODEL="ufsatm"> -I$(EXEROOT)/atm/obj/FMS </append>
8181
</INCLDIR>
8282
<FFLAGS>
8383
<append MODEL="ufsatm"> $(FC_AUTO_R8) </append>
@@ -121,10 +121,10 @@ using a fortran linker.
121121
<base> -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none </base>
122122
<append compile_threaded="TRUE"> -fopenmp </append>
123123
<!-- Ideally, we would also have 'invalid' in the ffpe-trap list. But at
124-
least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
125-
7.1.0), gfortran's isnan (which is called in cime via the
126-
CPRGNU-specific shr_infnan_isnan) causes a floating point exception
127-
when called on a signaling NaN. -->
124+
least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
125+
7.1.0), gfortran's isnan (which is called in cime via the
126+
CPRGNU-specific shr_infnan_isnan) causes a floating point exception
127+
when called on a signaling NaN. -->
128128
<append DEBUG="TRUE"> -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds </append>
129129
<append DEBUG="FALSE"> -O </append>
130130
</FFLAGS>
@@ -207,10 +207,10 @@ using a fortran linker.
207207
<base> -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none </base>
208208
<append compile_threaded="TRUE"> -fopenmp </append>
209209
<!-- Ideally, we would also have 'invalid' in the ffpe-trap list. But at
210-
least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
211-
7.1.0), gfortran's isnan (which is called in cime via the
212-
CPRGNU-specific shr_infnan_isnan) causes a floating point exception
213-
when called on a signaling NaN. -->
210+
least with some versions of gfortran (confirmed with 5.4.0, 6.3.0 and
211+
7.1.0), gfortran's isnan (which is called in cime via the
212+
CPRGNU-specific shr_infnan_isnan) causes a floating point exception
213+
when called on a signaling NaN. -->
214214
<append DEBUG="TRUE"> -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds </append>
215215
<append DEBUG="FALSE"> -O </append>
216216
</FFLAGS>
@@ -913,7 +913,7 @@ using a fortran linker.
913913
</FFLAGS>
914914
<LDFLAGS>
915915
<!-- the path to gcc should match that used in building the SmartRedis lib -->
916-
<append>-Wl,-rpath /glade/u/apps/dav/opt/gnu/9.1.0/lib64 -L/glade/u/apps/dav/opt/gnu/9.1.0/lib64 -lgcc </append>
916+
<append>-Wl,-rpath /glade/u/apps/dav/opt/gnu/9.1.0/lib64 </append>
917917
</LDFLAGS>
918918
<CMAKE_OPTS>
919919
<append DEBUG="TRUE"> -DPIO_ENABLE_LOGGING=ON </append>
@@ -939,8 +939,8 @@ using a fortran linker.
939939
</CPPDEFS>
940940
<FFLAGS>
941941
<!-- -fallow-argument-mismatch is needed for building with the mpich library with gfortran10;
942-
-fallow-invalid-boz is needed for some components that have non-standard uses of BOZ literal constants with gfortran10.
943-
See https://github.com/ESMCI/cime/issues/3846 for details. -->
942+
-fallow-invalid-boz is needed for some components that have non-standard uses of BOZ literal constants with gfortran10.
943+
See https://github.com/ESMCI/cime/issues/3846 for details. -->
944944
<!-- <append> -fallow-argument-mismatch -fallow-invalid-boz </append> -->
945945
</FFLAGS>
946946
<SLIBS>
@@ -962,8 +962,14 @@ using a fortran linker.
962962
<PFUNIT_PATH MPILIB="mpt" compile_threaded="TRUE">$ENV{CESMDATAROOT}/tools/pFUnit/pFUnit3.2.8_cheyenne_Intel17.0.1_MPI_openMP</PFUNIT_PATH>
963963
<!-- SET to FALSE for intel 17 and 18 TRUE otherwise -->
964964
<HAS_F2008_CONTIGUOUS>TRUE</HAS_F2008_CONTIGUOUS>
965+
<LDFLAGS>
966+
<!-- the path to gcc should match that used in building the SmartRedis lib -->
967+
<append MPILIB="openmpi"> -std=c11 -gxx-name=/glade/u/apps/ch/opt/gnu/9.1.0/bin/g++ -Wl,-rpath,/glade/u/apps/ch/opt/gnu/9.1.0/lib64 -L/glade/u/apps/ch/opt/gnu/9.1.0/lib64 -lgcc </append>
968+
</LDFLAGS>
969+
965970
</compiler>
966971

972+
967973
<compiler MACH="cheyenne" COMPILER="pgi">
968974
<SLIBS>
969975
<append> -llapack -lblas </append>
@@ -1322,7 +1328,7 @@ using a fortran linker.
13221328
<compiler MACH="homebrew" COMPILER="gnu">
13231329
<LDFLAGS>
13241330
<!-- These LDFLAGS provide lapack and blas support on a Mac. This
1325-
may require installation of the Apple Developer Tools. -->
1331+
may require installation of the Apple Developer Tools. -->
13261332
<append> -framework Accelerate -Wl,-rpath $(NETCDF)/lib</append>
13271333
</LDFLAGS>
13281334
</compiler>

config/cesm/machines/config_machines.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,14 +598,22 @@ This allows using a different mpirun command to launch unit tests
598598
<modules compiler="pgi">
599599
<command name="load">pgi/20.4</command>
600600
</modules>
601-
<modules compiler="intel" mpilib="!mpi-serial" DEBUG="TRUE">
601+
<modules compiler="intel" mpilib="mpt" DEBUG="TRUE">
602602
<command name="use">/glade/p/cesmdata/cseg/PROGS/modulefiles/esmfpkgs/intel/19.1.1/</command>
603603
<command name="load">esmf-8.2.0b13-ncdfio-mpt-g</command>
604604
</modules>
605-
<modules compiler="intel" mpilib="!mpi-serial" DEBUG="FALSE">
605+
<modules compiler="intel" mpilib="mpt" DEBUG="FALSE">
606606
<command name="use">/glade/p/cesmdata/cseg/PROGS/modulefiles/esmfpkgs/intel/19.1.1/</command>
607607
<command name="load">esmf-8.2.0b13-ncdfio-mpt-O</command>
608608
</modules>
609+
<modules compiler="intel" mpilib="openmpi" DEBUG="TRUE">
610+
<command name="use">/glade/p/cesmdata/cseg/PROGS/modulefiles/esmfpkgs/intel/19.1.1/</command>
611+
<command name="load">esmf-8.2.0b14-ncdfio-openmpi-g</command>
612+
</modules>
613+
<modules compiler="intel" mpilib="openmpi" DEBUG="FALSE">
614+
<command name="use">/glade/p/cesmdata/cseg/PROGS/modulefiles/esmfpkgs/intel/19.1.1/</command>
615+
<command name="load">esmf-8.2.0b14-ncdfio-openmpi-O</command>
616+
</modules>
609617
<modules compiler="intel" mpilib="mpi-serial" DEBUG="TRUE">
610618
<command name="use">/glade/p/cesmdata/cseg/PROGS/modulefiles/esmfpkgs/intel/19.1.1/</command>
611619
<command name="load">esmf-8.2.0b13-ncdfio-mpiuni-g</command>
@@ -688,9 +696,9 @@ This allows using a different mpirun command to launch unit tests
688696
<command name="load">SmartRedis/0.1.1</command>
689697
</modules>
690698
<modules mpilib="openmpi" compiler="intel">
691-
<command name="load">openmpi/4.0.5</command>
692-
<command name="load">netcdf-mpi/4.7.4</command>
693-
<command name="load">pnetcdf/1.12.1</command>
699+
<command name="load">openmpi/4.1.0</command>
700+
<command name="load">netcdf-mpi/4.8.0</command>
701+
<command name="load">pnetcdf/1.12.2</command>
694702
<command name="load">SmartRedis/0.1.1</command>
695703
</modules>
696704
<modules>

0 commit comments

Comments
 (0)