-
Notifications
You must be signed in to change notification settings - Fork 1
/
submit_req.sh
29 lines (22 loc) · 909 Bytes
/
submit_req.sh
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
#!/bin/bash
#SBATCH --account=sdss-np-fast
#SBATCH --partition=sdss-np
#SBATCH --qos=sdss-np-req
#SBATCH --nodes=8
#SBATCH --ntasks-per-node=64
#SBATCH --mem=0 #requesting all of the memory on the node
#SBATCH --time=96:00:00
#SBATCH --job-name=apMADGICS
#SBATCH --output=%x_%j.out
#SBATCH --err=%x_%j.err
#SBATCH --mail-type=ALL
#SBATCH [email protected]
# ------------------------------------------------------------------------------
echo $SLURM_JOB_NODELIST
julia +1.10.2 pipeline.jl
# Clean up logs and Report Timing
formatted_time=$(printf '%dd %dh:%dm:%ds\n' $(($SECONDS/86400)) $(($SECONDS%86400/3600)) $(($SECONDS%3600/60)) $(($SECONDS%60)))
echo "Job completed in $formatted_time"
mkdir -p slurm_logs
mv ${SLURM_JOB_NAME}_${SLURM_JOBID}.out slurm_logs/${SLURM_JOB_NAME}_${SLURM_JOBID}.out
mv ${SLURM_JOB_NAME}_${SLURM_JOBID}.err slurm_logs/${SLURM_JOB_NAME}_${SLURM_JOBID}.err