Skip to content

Commit

Permalink
Update the hercules regression test scripts to load the intelLLVM
Browse files Browse the repository at this point in the history
module.

Fixes ufs-community#879.
  • Loading branch information
George Gayno committed Oct 25, 2024
1 parent 31c62bd commit 3fa0aa5
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion reg_tests/chgres_cube/driver.hercules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set -x

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

ulimit -s unlimited
Expand Down
8 changes: 7 additions & 1 deletion reg_tests/cpld_gridgen/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,14 @@ MEM_dflt="--mem=16g"
export MEM=$MEM_dflt

cd $PATHRT
export compiler=${compiler:-intel}
export compiler=${compiler:-intelllvm}
source $PATHTR/sorc/machine-setup.sh >/dev/null 2>&1
if [[ "$compiler" == "intelllvm" ]]; then
if [[ ! -f ${PATHTR}/modulefiles/build.$target.$compiler.lua ]];then
echo "IntelLLVM not available. Will use Intel Classic."
compiler=intel
fi
fi
echo "Machine: $target"
echo "Compiler: $compiler"

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

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

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

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

set -x
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/ice_blend/driver.hercules.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.intel
module load build.$target.intelllvm
module list

ulimit -s unlimited
Expand Down
15 changes: 11 additions & 4 deletions reg_tests/ocnice_prep/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,18 @@ export WLCLK=$WLCLK_dflt
MEM_dflt="--mem=24g"
export MEM=$MEM_dflt

cd $PATHRT
export compiler=${compiler:-intel}
set -x
source $PATHTR/sorc/machine-setup.sh >/dev/null 2>&1
export compiler=${compiler:-intelllvm}
if [[ "$compiler" == "intelllvm" ]]; then
if [[ ! -f ${PATHTR}/modulefiles/build.$target.$compiler.lua ]];then
echo "IntelLLVM not available. Will use Intel Classic."
compiler=intel
fi
fi
echo "Machine: $target"
echo "Compiler: $compiler"
cd $PATHRT

COMPILE_LOG=compile.log
REGRESSIONTEST_LOG=RegressionTests_$target.$compiler.log
Expand Down Expand Up @@ -158,8 +165,8 @@ elif [[ $target = hercules ]]; then
BASELINE_ROOT=/work/noaa/nems/role-nems/ufs_utils.hercules/reg_tests/ocnice_prep/baseline_data
WEIGHTS_ROOT=/work/noaa/nems/role-nems/ufs_utils.hercules/reg_tests/cpld_gridgen/baseline_data
INPUT_ROOT=/work/noaa/nems/role-nems/ufs_utils.hercules/reg_tests/ocnice_prep/input_data
ACCOUNT=${ACCOUNT:-nems}
QUEUE=${QUEUE:-batch}
ACCOUNT=${ACCOUNT:-fv3-cpu}
QUEUE=${QUEUE:-debug}
NCCMP=nccmp
PARTITION=hercules
ulimit -s unlimited
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/snow2mdl/driver.hercules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -x

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

ulimit -s unlimited
Expand Down
2 changes: 1 addition & 1 deletion reg_tests/weight_gen/driver.hercules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

set -x

compiler=${compiler:-"intel"}
compiler=${compiler:-"intelllvm"}

source ../../sorc/machine-setup.sh > /dev/null 2>&1
module use ../../modulefiles
Expand Down

0 comments on commit 3fa0aa5

Please sign in to comment.