-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurm.job
executable file
·31 lines (25 loc) · 1.22 KB
/
slurm.job
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -l
#SBATCH -A ohd # -A, --account=name charge job to specified account
##SBATCH -q debug # coastal group can only submit to this Q
#SBATCH -e slurm.error # -e, --error=err file for batch script's standard error
#SBATCH --ignore-pbs # --ignore-pbs Ignore #PBS options in the batch script
#SBATCH -J DFlow_build # -J, --job-name=jobname name of job
#SBATCH -n 1
#SBATCH --partition=bigmem
##SBATCH --exclusive
#SBATCH -t 30 # -t, --time=minutes time limit
############################### main - to run: $sbatch nsem.job ##########################
set -x
echo $SLURM_SUBMIT_DIR # (in Slurm, jobs start in "current dir")
echo $SLURM_JOBID
echo $SLURM_JOB_NAME
echo $SLURM_NNODES
echo $SLURM_TASKS_PER_NODE
# PBS_NODEFILE: There is not a direct equivalent for this, but
echo $SLURM_NODELIST # give you the list of assigned nodes.
# cd $SLURM_SUBMIT_DIR
echo "STARTING THE JOB AT"
date
cd /scratch2/NCEPDEV/ohd/Jason.Ducker/DFLOWFM_BMI_BRANCH_COASTAL_ACT_METHOD/delft3d-main
./build.sh
date