Simple job
Every SLURM job consists of a job submission file. A job submission file contains a list of commands that run your program and a set of resource (nodes, walltime, queue) requests. The resource requests can appear in the job submission file or can be specified at submit-time as shown below.
This simple example submits the job submission file hello.sub to the cpu queue on Gautschi and requests a single node:
For a real job you would replace echo "Hello World" with a command, or sequence of commands, that run your program.
After your job finishes running, the ls command will show a new file in your directory, the .out file:
The file slurm-3521.out contains the output and errors your program would have written to the screen if you had typed its commands at a command prompt:
You should see the hostname of the compute node your job was executed on. Following should be the "Hello World" statement.