Skip to content

Commit

Permalink
Update module loads to intel/2022 for jobs running gsi.x and enkf.x (#…
Browse files Browse the repository at this point in the history
…1882)

This PR changes the module loads in g-w jobs `anal.sh`, `eobs.sh`, and `eupd.sh`
to use machine specific modulefiles from `sorc/gsi_enkf.fd/modulefiles`.  This is
necessary because [NOAA-EMC/GSI#571](NOAA-EMC/GSI#571)
updated `gsi.x` and `enkf.x` builds to intel/2022 on NOAA RDHPCS machines.

Resolves #1863
  • Loading branch information
RussTreadon-NOAA authored Sep 29, 2023
1 parent cd439d0 commit e65162f
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protocol = git
required = True

[GSI-EnKF]
hash = accb07e
hash = ca19008
local_path = sorc/gsi_enkf.fd
repo_url = https://github.com/NOAA-EMC/GSI.git
protocol = git
Expand Down
40 changes: 37 additions & 3 deletions jobs/rocoto/anal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,43 @@ source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
#. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
#status=$?
#[[ ${status} -ne 0 ]] && exit ${status}

# TODO: clean this up
#Source appropriate modulefiles based on machine

source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" = "wcoss2" ]]; then
# Source FV3GFS workflow modules
. "${HOMEgfs}"/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
else
# Append compiler (only on machines that have multiple compilers)
COMPILER=${COMPILER:-"intel"}
if [[ "${MACHINE_ID}" = "hera" ]] || [[ "${MACHINE_ID}" = "cheyenne" ]]; then
MACHINE_ID=${MACHINE_ID}.${COMPILER}
fi

# Source machine specific GSI-EnKF modules
set +x
source "${HOMEgfs}/ush/module-setup.sh"
module use "${HOMEgfs}/sorc/gsi_enkf.fd/modulefiles"
module load gsi_"${MACHINE_ID}"

if [[ "${MACHINE_ID}" = "orion" ]]; then
module load miniconda3/4.12.0
set +u
conda activate regional_workflow_cmaq
set_strict
fi

module list
unset MACHINE_ID
set_trace
fi

export job="anal"
export jobid="${job}.$$"
Expand Down
40 changes: 37 additions & 3 deletions jobs/rocoto/eobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,43 @@ source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
#. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
#status=$?
#[[ ${status} -ne 0 ]] && exit ${status}

# TODO: clean this up
#Source appropriate modulefiles based on machine

source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" = "wcoss2" ]]; then
# Source FV3GFS workflow modules
. "${HOMEgfs}"/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
else
# Append compiler (only on machines that have multiple compilers)
COMPILER=${COMPILER:-"intel"}
if [[ "${MACHINE_ID}" = "hera" ]] || [[ "${MACHINE_ID}" = "cheyenne" ]]; then
MACHINE_ID=${MACHINE_ID}.${COMPILER}
fi

# Source machine specific GSI-EnKF modules
set +x
source "${HOMEgfs}/ush/module-setup.sh"
module use "${HOMEgfs}/sorc/gsi_enkf.fd/modulefiles"
module load gsi_"${MACHINE_ID}"

if [[ "${MACHINE_ID}" = "orion" ]]; then
module load miniconda3/4.12.0
set +u
conda activate regional_workflow_cmaq
set_strict
fi

module list
unset MACHINE_ID
set_trace
fi

export job="eobs"
export jobid="${job}.$$"
Expand Down
40 changes: 37 additions & 3 deletions jobs/rocoto/eupd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,43 @@ source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
#. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
#status=$?
#[[ ${status} -ne 0 ]] && exit ${status}

# TODO: clean this up
#Source appropriate modulefiles based on machine

source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" = "wcoss2" ]]; then
# Source FV3GFS workflow modules
. "${HOMEgfs}"/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
else
# Append compiler (only on machines that have multiple compilers)
COMPILER=${COMPILER:-"intel"}
if [[ "${MACHINE_ID}" = "hera" ]] || [[ "${MACHINE_ID}" = "cheyenne" ]]; then
MACHINE_ID=${MACHINE_ID}.${COMPILER}
fi

# Source machine specific GSI-EnKF modules
set +x
source "${HOMEgfs}/ush/module-setup.sh"
module use "${HOMEgfs}/sorc/gsi_enkf.fd/modulefiles"
module load gsi_"${MACHINE_ID}"

if [[ "${MACHINE_ID}" = "orion" ]]; then
module load miniconda3/4.12.0
set +u
conda activate regional_workflow_cmaq
set_strict
fi

module list
unset MACHINE_ID
set_trace
fi

export job="eupd"
export jobid="${job}.$$"
Expand Down
2 changes: 1 addition & 1 deletion sorc/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ checkout "ufs_model.fd" "https://github.com/ufs-community/ufs-weather-model"
checkout "verif-global.fd" "https://github.com/NOAA-EMC/EMC_verif-global.git" "c267780" ; errs=$((errs + $?))

if [[ ${checkout_gsi} == "YES" ]]; then
checkout "gsi_enkf.fd" "https://github.com/NOAA-EMC/GSI.git" "accb07e" "NO"; errs=$((errs + $?))
checkout "gsi_enkf.fd" "https://github.com/NOAA-EMC/GSI.git" "ca19008" "NO"; errs=$((errs + $?))
fi

if [[ ${checkout_gdas} == "YES" ]]; then
Expand Down

0 comments on commit e65162f

Please sign in to comment.