Creating sbatch script

From HPCwiki
Revision as of 14:06, 7 June 2017 by Megen002 (talk | contribs)
Jump to navigation Jump to search

A skeleton Slurm script: <source lang='bash'>

  1. -----------------------------Mail address-----------------------------
  2. SBATCH --mail-user=
  3. SBATCH --mail-type=ALL
  4. -----------------------------Output files-----------------------------
  5. SBATCH --output=output_%j.txt
  6. SBATCH --error=error_output_%j.txt
  7. -----------------------------Other information------------------------
  8. SBATCH --comment=
    1. SBATCH --account=
  9. -----------------------------Required resources-----------------------
  10. SBATCH --partition=
  11. SBATCH --time=0-0:0:0
  12. SBATCH --ntasks=
  13. SBATCH --cpus-per-task=
  14. SBATCH --mem-per-cpu=
  1. -----------------------------Environment, Operations and Job steps----
  2. load modules
  1. export variables
  1. your job


</source>