Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The number of tasks the job will create:

    • #SBATCH -n 1

  • The runtime of the job in Days-Hours:Minutes (N.B. max wall time is 7 days):

    • #SBATCH -t 0-12:00

  • A file based on the jobid %j where the normal output of the program (STDOUT) should be saved:

    • #SBATCH -o slurm.%j.out

  • A file based on the jobid %j where the error output of the program (STDERR) should be saved:

    • #SBATCH -e slurm.%j.err

  • That email notifications should be sent out when the job starts, ends, or when it fails:

    • #SBATCH --mail-type=ALL

  • The address where email should be sent (%u is automatically replaced with submitter’s username, which is by default the user’s asurite):

    • #SBATCH --mail-user=%u@asu.edu

  • A purge of the shell environment otherwise inherited from the job-submission shell

    • #SBATCH --export=NONE

  • It is a good practice to always purge any modules that may have been loaded before an sbatch script was submitted as they will still be active:

    • module purge

  • This loads python so that it is the active version:

    • module load anaconda/py3

...