Skip to content

Commit

Permalink
[develop] [bug fix] Adding missing Intel variable for PW Azure (#1167)
Browse files Browse the repository at this point in the history
The SRW App still fails on the PW Azure instance. It appears that the compute node needs to be in the same zone as the controller node. To achieve this, the compute node instance type needs to change, which is failing because of a missing Intel variable. This update adds this missing Intel variable when running on Azure.

---------

Co-authored-by: michael.lueken <[email protected]>
  • Loading branch information
EdwardSnyder-NOAA and MichaelLueken authored Dec 11, 2024
1 parent 5920c02 commit 1ee3c94
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
r"https://sso\.noaa\.gov\:443/openam/SSORedirect/metaAlias/noaa\-online/idp\?SAMLRequest\=.*",
r"https://github\.com/ufs-community/ufs\-srweather\-app/issues/.*":
r"https://github\.com/login\?return\_to\=https.*",
r"https://mrms\.ncep\.noaa\.gov/data/":
r"https://mrms\.ncep\.noaa\.gov",
}


Expand Down
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 1ee3c94

Please sign in to comment.