Versions Compared

Key

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

...

Code Block
languagebash
titleexample.slurm
#!/bin/sh
#SBATCH --array=0-31
#SBATCH --time=03:15:00          # Run time in hh:mm:ss
#SBATCH --mem-per-cpu=1024       # Minimum memory required per CPU (in megabytes)
#SBATCH --job-name=hello-world
#SBATCH --error=/work/[groupname]/[username]/job.%A_%a.err
#SBATCH --output=/work/[groupname]/[username]/job.%A_a%a.out
 
module load example/test
 
echo "I am task $SLURM_ARRAY_TASK_ID on node `hostname`"
sleep 60

...