Skip to content

Commit

Permalink
revert config.resources and remove all memory variables in xml setup …
Browse files Browse the repository at this point in the history
…for Gaea-C5
  • Loading branch information
DavidBurrows-NCO committed Jun 24, 2024
1 parent c452f15 commit ee934cf
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ case ${step} in
export nth_waveinit=1
export npe_node_waveinit=$(( npe_node_max / nth_waveinit ))
export NTASKS=${npe_waveinit}
if [[ "${machine}" == "GAEA" ]]; then
export memory_waveinit=""
else
export memory_waveinit="2GB"
fi
export memory_waveinit="2GB"
;;

"waveprep")
Expand All @@ -141,13 +137,8 @@ case ${step} in
export nth_wavepostsbs=1
export npe_node_wavepostsbs=$(( npe_node_max / nth_wavepostsbs ))
export NTASKS=${npe_wavepostsbs}
if [[ "${machine}" == "GAEA" ]]; then
export memory_wavepostsbs=""
export memory_wavepostsbs_gfs=""
else
export memory_wavepostsbs="10GB"
export memory_wavepostsbs_gfs="10GB"
fi
export memory_wavepostsbs="10GB"
export memory_wavepostsbs_gfs="10GB"
;;

# The wavepost*pnt* jobs are I/O heavy and do not scale well to large nodes.
Expand Down Expand Up @@ -786,11 +777,7 @@ case ${step} in
export npe_oceanice_products=1
export npe_node_oceanice_products=1
export nth_oceanice_products=1
if [[ "${machine}" == "GAEA" ]]; then
export memory_oceanice_products=""
else
export memory_oceanice_products="96GB"
fi
export memory_oceanice_products="96GB"
;;

"upp")
Expand Down Expand Up @@ -948,8 +935,6 @@ case ${step} in
declare -x "memory_${step}"="4096M"
if [[ "${machine}" == "WCOSS2" ]]; then
declare -x "memory_${step}"="50GB"
elif [[ "${machine}" == "GAEA" ]]; then
declare -x "memory_${step}"=""
fi
;;

Expand All @@ -958,11 +943,7 @@ case ${step} in
export npe_cleanup=1
export npe_node_cleanup=1
export nth_cleanup=1
if [[ "${machine}" == "GAEA" ]]; then
export memory_cleanup=""
else
export memory_cleanup="4096M"
fi
export memory_cleanup="4096M"
;;

"stage_ic")
Expand Down Expand Up @@ -1326,4 +1307,10 @@ case ${step} in

esac

if [[ "${machine}" == "GAEA" ]]; then
for mem_var in $(env | grep '^memory_' | cut -d= -f1); do

Check notice

Code scanning / shellcheck

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). Note

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).

Check notice

Code scanning / shellcheck

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). Note

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).
unset "${mem_var}"
done
fi

echo "END: config.resources"

0 comments on commit ee934cf

Please sign in to comment.