Creating sbatch script: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
(Created page with "A skeletion Slurm script: <source lang='bash'> #-----------------------------Mail address----------------------------- #SBATCH --mail-user= #SBATCH --mail-type=ALL #-------...")
 
No edit summary
Line 1: Line 1:
A skeletion Slurm script:
A skeleton Slurm script:
 
 
<source lang='bash'>
<source lang='bash'>



Revision as of 14:06, 7 June 2017

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>