Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated qos example

...

Code Block
languagebash
#!/bin/bash
# The job name
#SBATCH --job-name=helloworld
# Set the error and output files
#SBATCH --output=hello-%J.out
#SBATCH --error=hello-%J.out
# Set the initial working directory
#SBATCH --chdir=/scratch/user
# Choose the queue
#SBATCH --qos=expressnf
## or for ECS
#SBATCH --qos=ef
# Wall clock time limit
#SBATCH --time=00:05:00
# Send an email on failure
#SBATCH --mail-type=FAIL
# This is the job
echo “Hello World!”
sleep 30

...

DirectiveDescriptionDefault

--ntasks=<tasks>

-n <tasks>

Allocate resources for the specified number of parallel tasks. Note that a job requesting more than one must be submitted to a parallel queue. There might not be any parallel queue configured on the cluster1

--nodes=<nodes>

-N <nodes>

Allocate <nodes> number of nodes to the job1

--cpus-per-task=<threads>

--c <threads>

Allocate <threads> number of cpus for every task. Use for threaded applications.1

--ntasks-per-node=<tasks>

Allocate a maximum of <tasks> tasks on every node.node capacity

--threads-per-core=<threads>

Allocate <threads> threads on every core (HyperThreading)core thread capacity

--hint=[no]multithread

Use or not hyperthreaded cores and define the binding accordingly.not defined

--mem=<mem>

Allocate <mem> memory on each node8 GB for serial and fractional jobs(*i, *f and *l QoS), 240 for parallel jobs (*p QoS)

--gres=ssdtmp:<size>G

Only on GPIL nodes (*f and *l QoS)

Allocate <size> GB of SSD temporary storage 

3 GB


Tip

See man sbatch or https://slurm.schedmd.com/sbatch.html for the complete list of directives and their options.

...