ckpt / code /example.sbat
AE-W's picture
archive loose scripts/configs
219f052 verified
Raw
History Blame Contribute Delete
962 Bytes
#!/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!