forked from ufs-community/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update for HSD baroclinic_wave test on Jet, new file fv3_slurm.IN_jet
- Loading branch information
Natalie Perlin
authored and
Natalie Perlin
committed
Nov 6, 2024
1 parent
79d85ec
commit 0e2d767
Showing
3 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
#SBATCH -e err | ||
#SBATCH -o out | ||
#SBATCH --account=@[ACCNR] | ||
#SBATCH --partition=@[PARTITION] | ||
#SBATCH --qos=@[QUEUE] | ||
#SBATCH --nodes=@[NODES] | ||
#SBATCH --mem=0 | ||
#SBATCH --ntasks-per-node=@[TPN] | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --time=00:@[WLCLK]:00 | ||
#SBATCH --job-name="@[JBNME]" | ||
#SBATCH --exclusive | ||
|
||
set -eux | ||
ulimit -u unlimited | ||
echo -n " $( date +%s )," > job_timestamp.txt | ||
|
||
set +x | ||
MACHINE_ID=jet | ||
source ./module-setup.sh | ||
module use $PWD/modulefiles | ||
module load modules.fv3 | ||
module list | ||
set -x | ||
|
||
echo "Model started: " `date` | ||
|
||
export MPI_TYPE_DEPTH=20 | ||
export OMP_STACKSIZE=512M | ||
export OMP_NUM_THREADS=@[THRD] | ||
export ESMF_RUNTIME_COMPLIANCECHECK=OFF:depth=4 | ||
export PSM_RANKS_PER_CONTEXT=4 | ||
export PSM_SHAREDCONTEXTS=1 | ||
export ESMF_RUNTIME_PROFILE=ON | ||
export ESMF_RUNTIME_PROFILE_OUTPUT="SUMMARY" | ||
|
||
# Avoid job errors because of filesystem synchronization delays | ||
sync && sleep 1 | ||
|
||
# This "if" block is part of the rt.sh self-tests in error-test.conf. It emulates the model failing to run. | ||
if [ "${JOB_SHOULD_FAIL:-NO}" = WHEN_RUNNING ] ; then | ||
echo "The job should abort now, with exit status 1." 1>&2 | ||
echo "If error checking is working, the metascheduler should mark the job as failed." 1>&2 | ||
false | ||
fi | ||
|
||
srun --label -n @[TASKS] --cpus-per-task=@[THRD] ./fv3.exe | ||
|
||
echo "Model ended: " `date` | ||
echo -n " $( date +%s )," >> job_timestamp.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters