Skip to content

Commit

Permalink
add logic to handle missing intel variable on PW Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardSnyder-NOAA committed Dec 10, 2024
1 parent 5920c02 commit f47d707
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modulefiles/tasks/noaacloud/python_srw.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
load("conda")
setenv("SRW_ENV", "srw_app")

-- Declare Intel library variable for Azure
if os.getenv("PW_CSP") == "azure" then
setenv("FI_PROVIDER","tcp")
end
5 changes: 5 additions & 0 deletions modulefiles/tasks/noaacloud/run_vx.local.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ end
load("ufs-pyenv")
load("conda")
setenv("SRW_ENV", "srw_app")

-- Declare Intel library variable for Azure
if os.getenv("PW_CSP") == "azure" then
setenv("FI_PROVIDER","tcp")
end
4 changes: 4 additions & 0 deletions ush/wrappers/run_fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export cyc=${DATE_FIRST_CYCL:8:2}
export PDY=${DATE_FIRST_CYCL:0:8}
export SLASH_ENSMEM_SUBDIR=""
export ENSMEM_INDX=""
# Declare Intel library variable for Azure
if [ ${PW_CSP} == "azure" ]; then
export FI_PROVIDER=tcp
fi

${JOBSdir}/JREGIONAL_RUN_FCST

4 changes: 4 additions & 0 deletions ush/wrappers/run_make_ics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export cyc=${DATE_FIRST_CYCL:8:2}
export PDY=${DATE_FIRST_CYCL:0:8}
export SLASH_ENSMEM_SUBDIR=""
export NWGES_DIR=${NWGES_BASEDIR}/${DATE_FIRST_CYCL:0:8}
# Declare Intel library variable for Azure
if [ ${PW_CSP} == "azure" ]; then
export FI_PROVIDER=tcp
fi

${JOBSdir}/JREGIONAL_MAKE_ICS

5 changes: 5 additions & 0 deletions ush/wrappers/run_make_lbcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ export SLASH_ENSMEM_SUBDIR=""
export NWGES_DIR=${NWGES_BASEDIR}/${DATE_FIRST_CYCL:0:8}
export bcgrp="00"
export bcgrpnum="1"
# Declare Intel library variable for Azure
if [ ${PW_CSP} == "azure" ]; then
export FI_PROVIDER=tcp
fi

${JOBSdir}/JREGIONAL_MAKE_LBCS

5 changes: 5 additions & 0 deletions ush/wrappers/run_make_sfc_climo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ set -xa

export CDATE=${DATE_FIRST_CYCL}
export CYCLE_DIR=${EXPTDIR}/${CDATE}
# Declare Intel library variable for Azure
if [ ${PW_CSP} == "azure" ]; then
export FI_PROVIDER=tcp
fi

${JOBSdir}/JREGIONAL_MAKE_SFC_CLIMO
4 changes: 4 additions & 0 deletions ush/wrappers/run_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export cyc=${DATE_FIRST_CYCL:8:2}
export PDY=${DATE_FIRST_CYCL:0:8}
export SLASH_ENSMEM_SUBDIR=""
export ENSMEM_INDX=""
# Declare Intel library variable for Azure
if [ ${PW_CSP} == "azure" ]; then
export FI_PROVIDER=tcp
fi

num_fcst_hrs=${FCST_LEN_HRS}
for (( i=0; i<=$((num_fcst_hrs)); i++ )); do
Expand Down

0 comments on commit f47d707

Please sign in to comment.