...
A simple sbatch script to submit a simple "Hello World!" type problem follows:
Code Block |
---|
|
#!/bin/bash
### Assume this file is named hello.sh
#SBATCH --account=arcc
#SBATCH --time=24:00:00
echo "Hello World!" |
The two '#SBATCH' directives above are required for all job submissions, whether interactive or batch. The values to account should be changed to the appropriate project account and the time should be changed to an appropriate walltime limit. This is walltime limit, not CPU time. These values could also be supplied when submitting jobs by providing them directly on the command line when submitting. Slurm will default jobs to use one node, one task per node, and once cpu per node.
Submitting jobs
Code Block |
---|
$ sbatch hello.sh |
...