Skip to content

Commit

Permalink
Add test for GNU compiler on Hera
Browse files Browse the repository at this point in the history
Add option to compile UFS_UTILS with GNU on Hera. Update regression 
and utility scripts to optionally load the GNU-based build module on Hera.

For more details, see issue #151.
  • Loading branch information
GeorgeGayno-NOAA committed Oct 22, 2020
1 parent bc40cdd commit 1be59bd
Show file tree
Hide file tree
Showing 44 changed files with 84 additions and 40 deletions.
9 changes: 6 additions & 3 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -eux

target=${target:-"NULL"}
compiler=${compiler:-"intel"}

export MOD_PATH

Expand All @@ -14,7 +15,7 @@ else
set +x
source ./sorc/machine-setup.sh
module use ./modulefiles
module load build.$target > /dev/null 2>&1
module load build.$target.$compiler > /dev/null 2>&1
module list
set -x
fi
Expand All @@ -28,8 +29,10 @@ cd ./build

CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=../ -DEMC_EXEC_DIR=ON"

if [[ "$target" != "wcoss_cray" && "$target" != "odin" ]]; then
CMAKE_FLAGS+=" -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc"
if [[ "$compiler" == "intel" ]]; then
if [[ "$target" != "wcoss_cray" && "$target" != "odin" ]]; then
CMAKE_FLAGS+=" -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc"
fi
fi

cmake .. ${CMAKE_FLAGS}
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

source ../sorc/machine-setup.sh > /dev/null 2>&1
module use ../modulefiles
module load build.$target
module load build.$target.intel
module list

#-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

source ../sorc/machine-setup.sh > /dev/null 2>&1
module use ../modulefiles
module load build.$target
module load build.$target.intel
module list

#-----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@

set -x

compiler=${compiler:-"intel"}
source ../sorc/machine-setup.sh > /dev/null 2>&1
module use ../modulefiles
module load build.$target
module load build.$target.$compiler
module list

#-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ set -x

source ../sorc/machine-setup.sh > /dev/null 2>&1
module use ../modulefiles
module load build.$target
module load build.$target.intel
module list

#-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ set -x

source ../sorc/machine-setup.sh > /dev/null 2>&1
module use ../modulefiles
module load build.$target
module load build.$target.intel
module list

#-----------------------------------------------------------------------
Expand Down
File renamed without changes.
29 changes: 29 additions & 0 deletions modulefiles/build.hera.gnu
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#%Module#####################################################
## Build and run module for Hera
#############################################################

module load hpss
module load cmake/3.16.1
module load gnu/9.2.0
module use -a /scratch1/BMC/gmtb/software/modulefiles/gnu-9.2.0/mpich-3.3.2
module load mpich/3.3.2

module use -a /scratch1/BMC/gmtb/software/ufs-stack-20200909/gnu-9.2.0/mpich-3.3.2/modules

module load libpng/1.6.35
module load netcdf/4.7.4
module load esmf/8.1.0bs27

module load bacio/2.4.0
module load g2/3.4.0
module load ip/3.3.0
module load nemsio/2.5.1
module load sp/2.3.0
module load w3emc/2.7.0
module load w3nco/2.4.0
module load gfsio/1.4.0
module load sfcio/1.4.0
module load sigio/2.3.0
module load nemsiogfs/2.5.0
module load landsfcutil/2.4.0
module load wgrib2/2.0.8
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion reg_tests/chgres_cube/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export OUTDIR=/gpfs/hps3/stmp/$LOGNAME/chgres_reg_tests
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/chgres_cube/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export OUTDIR=/gpfs/dell1/stmp/$LOGNAME/chgres_reg_tests
Expand Down
6 changes: 4 additions & 2 deletions reg_tests/chgres_cube/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@

set -x

compiler=${compiler:-"intel"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.$compiler
module list

export OUTDIR=/scratch2/NCEPDEV/stmp1/$LOGNAME/chgres_reg_tests
Expand All @@ -43,7 +45,7 @@ export HOMEufs=$PWD/../..

export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube

export NCCMP=/apps/nccmp/1.8.5/intel/18.0.3.051/bin/nccmp
export NCCMP=/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/v1.0.0-beta1/intel-18.0.5.274/impi-2018.0.4/nccmp/1.8.7.0/bin/nccmp

LOG_FILE=regression.log
SUM_FILE=summary.log
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/chgres_cube/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export OUTDIR=/lfs4/HFIP/emcda/$LOGNAME/stmp/chgres_reg_tests
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/chgres_cube/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export OUTDIR=/work/noaa/stmp/$LOGNAME/chgres_reg_tests
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/global_cycle/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.cycle
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/global_cycle/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/gpfs/dell1/stmp/$LOGNAME/reg_tests.cycle
Expand Down
6 changes: 4 additions & 2 deletions reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

set -x

compiler=${compiler:-"intel"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.$compiler
module list

export DATA=/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.cycle
Expand All @@ -50,7 +52,7 @@ export NWPROD=$PWD/../..

export COMOUT=$DATA

export NCCMP=/apps/nccmp/1.8.5/intel/18.0.3.051/bin/nccmp
export NCCMP=/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/v1.0.0-beta1/intel-18.0.5.274/impi-2018.0.4/nccmp/1.8.7.0/bin/nccmp

reg_dir=$PWD

Expand Down
2 changes: 1 addition & 1 deletion reg_tests/global_cycle/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_tests.cycle
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/global_cycle/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/work/noaa/stmp/$LOGNAME/reg_tests.cycle
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
6 changes: 4 additions & 2 deletions reg_tests/grid_gen/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
#
#-----------------------------------------------------------------------------

compiler=${compiler:-"intel"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.$compiler
module list

set -x
Expand All @@ -43,7 +45,7 @@ export APRUN=time
export APRUN_SFC=srun
export OMP_STACKSIZE=2048m
export machine=HERA
export NCCMP=/apps/nccmp/1.8.5/intel/18.0.3.051/bin/nccmp
export NCCMP=/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/v1.0.0-beta1/intel-18.0.5.274/impi-2018.0.4/nccmp/1.8.7.0/bin/nccmp
export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/grid_gen/baseline_data

ulimit -a
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/grid_gen/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/ice_blend/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.ice_blend
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/ice_blend/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/ice_blend/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

set -x

compiler=${compiler:-"intel"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.$compiler
module list

export DATA="/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_test.ice_blend"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/ice_blend/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA="/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_test.ice_blend"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/ice_blend/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA="/work/noaa/stmp/$LOGNAME/reg_test.ice_blend"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/snow2mdl/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.snow2mdl
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/snow2mdl/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

set -x
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/snow2mdl/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

set -x

compiler=${compiler:-"intel"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.$compiler
module list

export DATA="/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.snow2mdl"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/snow2mdl/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA="/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_tests.snow2mdl"
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/snow2mdl/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

export DATA="/work/noaa/stmp/$LOGNAME/reg_tests.snow2mdl"
Expand Down
2 changes: 1 addition & 1 deletion util/gdas_init/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

PROJECT_CODE=GFS-DEV
Expand Down
2 changes: 1 addition & 1 deletion util/gdas_init/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
module load build.$target
module load build.$target.intel
module list

PROJECT_CODE=GFS-DEV
Expand Down
Loading

0 comments on commit 1be59bd

Please sign in to comment.