File size: 962 Bytes
219f052 | 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 32 33 34 35 | #!/bin/bash
#“#SBATCH” directives that convey submission options:
##### The name of the job
#SBATCH --job-name=example
##### When to send e-mail: pick from NONE, BEGIN, END, FAIL, REQUEUE, ALL
#SBATCH --mail-type=ALL
#SBATCH --mail-user=example@umich.edu
##### Resources for your job
# number of physical nodes
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=11GB
#SBATCH --time=2-00:00:00
##### The resource account; who pays
#SBATCH --account=ahowens1
#SBATCH --partition=spgpu
#SBATCH --gres gpu:1
#SBATCH --output=./%x-%j.log
########## End of preamble! #########################################
# No need to “cd”. Slurm starts the job in the submission directory.
#####################################################################
# The application(s) to execute along with its input arguments and options:
my_job_header
/bin/hostname
cat $0
echo $CONDA_DEFAULT_ENV
python example.py
echo done!
|