Skip to content

Commit

Permalink
Merge branch singbalwinder/scripts/cascade-machfiles-BFB-fix
Browse files Browse the repository at this point in the history
Forced BFBFLAG flag to TRUE for PNNL Cascade machine

All the test cases in acme_developer test suite were failing on PNNL's
Cascade machine. BFBFLAG is set to TRUE in env_run.xml (using xmlchange
command in mkbatch.cascade machine file) to make sure that the test
cases pass. Machine files are also updated with new compiler flags for
NAG and INTEL compilers. acme_developer and acme_integration test
suites are now available for Cascade for both INTEL and NAG compilers
  • Loading branch information
singhbalwinder authored and susburrows committed Jan 5, 2015
1 parent 911ea4d commit b078b5d
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 5 deletions.
12 changes: 9 additions & 3 deletions scripts/ccsm_utils/Machines/config_compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -860,16 +860,22 @@ for mct, etc.
<NETCDF_PATH> $(NETCDF_LIB)/..</NETCDF_PATH>
<CONFIG_ARGS> --host=Linux --enable-filesystem-hints=lustre</CONFIG_ARGS>
<ADD_CPPDEFS> -DLINUX </ADD_CPPDEFS>
<ADD_FFLAGS DEBUG="TRUE"> -g -O0 </ADD_FFLAGS>
<SLIBS> -L$(NETCDF_PATH)/lib -lnetcdf -lpmi </SLIBS>
<ADD_SLIBS> -L$(NETCDF_PATH)/lib -lnetcdff </ADD_SLIBS>
<ADD_FFLAGS DEBUG="TRUE"> -g -traceback -O0 -fpe0 -check all -check noarg_temp_created -ftrapuv </ADD_FFLAGS>
<SLIBS> -L$(NETCDF_PATH)/lib -lnetcdf -lnetcdff -lpmi </SLIBS>
</compiler>

<compiler COMPILER="nag" MACH="cascade">
<NETCDF_PATH>$(NETCDF_ROOT)</NETCDF_PATH >
<MPI_PATH MPILIB="mvapich2"> $(MPI_LIB)</MPI_PATH >
<ADD_CPPDEFS> -DnoI8 </ADD_CPPDEFS>
<ADD_LDFLAGS compile_threaded="true"> </ADD_LDFLAGS>
<!-- -C=Undefined flag doesn't work as it requires MPI and NETCDF to be
compiled with this flag, which is not available now. NAG has the following debug flags
<ADD_FFLAGS DEBUG="TRUE"> -gline -C=all -g -C=undefined -C=recursion -nan -O0 -v </ADD_FFLAGS>
"-nan" is an important flag. currently, it doesn't work for pio, it is only used for "cam" model.
-->
<ADD_FFLAGS DEBUG="TRUE" > -gline -C=all -g -O0 -v </ADD_FFLAGS>
<ADD_FFLAGS DEBUG="TRUE" MODEL="cam"> -gline -C=all -g -nan -O0 -v </ADD_FFLAGS>
<ADD_SLIBS> -L$(NETCDF_ROOT)/lib -lnetcdf -lnetcdff</ADD_SLIBS>
</compiler>

Expand Down
4 changes: 2 additions & 2 deletions scripts/ccsm_utils/Machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -601,14 +601,14 @@
<DESC>PNL cluster, os is Linux (pgi), batch system is SLURM</DESC>
<OS>LINUX</OS>
<COMPILERS>intel,nag</COMPILERS>
<MPILIBS>mvapich2</MPILIBS>
<MPILIBS>mpich</MPILIBS>
<RUNDIR>/dtemp/$CCSMUSER/csmruns/$CASE/run</RUNDIR>
<EXEROOT>/dtemp/$CCSMUSER/csmruns/$CASE/bld</EXEROOT>
<DIN_LOC_ROOT>/dtemp/sing201/inputdata/CAM/CSMDATA_CAM/aerocom/csmdata</DIN_LOC_ROOT>
<DIN_LOC_ROOT_CLMFORC>/dtemp/sing201/inputdata/CAM/CSMDATA_CAM/aerocom/csmdata/atm/datm7</DIN_LOC_ROOT_CLMFORC>
<DOUT_S_ROOT>/dtemp/$CCSMUSER/archive/$CASE</DOUT_S_ROOT>
<DOUT_L_MSROOT>csm/$CASE</DOUT_L_MSROOT>
<CCSM_BASELINE>/dtemp/sing201/ACME_testing/acme_baselines/</CCSM_BASELINE>
<CCSM_BASELINE>/dtemp/sing201/acme_testing/acme_baselines/</CCSM_BASELINE>
<CESMSCRATCHROOT>/dtemp/$USER/csmruns</CESMSCRATCHROOT>
<CCSM_CPRNC>/home/sing201/CAM/cprnc/cprnc</CCSM_CPRNC>
<BATCHQUERY>showq</BATCHQUERY>
Expand Down
2 changes: 2 additions & 0 deletions scripts/ccsm_utils/Machines/mkbatch.cascade
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if ($PHASE == set_batch) then
#################################################################################

source ./Tools/ccsm_getenv || exit -1
#BSINGH - set BFBFLAG to TRUE so that tests using "create_test" and "create_prod_test" scripts pass
./xmlchange -file env_run.xml -id BFBFLAG -val TRUE

set ntasks = `${CASEROOT}/Tools/taskmaker.pl -sumonly`
set maxthrds = `${CASEROOT}/Tools/taskmaker.pl -maxthrds`
Expand Down
Loading

0 comments on commit b078b5d

Please sign in to comment.