

For example, to run a Novoalign job with 8 threads, set up a batch script like this: You should use the Slurm environment variable $SLURM_CPUS_PER_TASK within your script to specify the number The default memory allocation is 8 GB of memory. The above job will be allocated '#' CPUs, and (# * 2) GB of memory. This job will be allocated 2 CPUs and 4 GB of memory. More useful flags and environment variables are detailed in the sbatch manpage, which can be read on the system by invoking man sbatch.

license=idl:6 Request 6 IDL licenses (Minimum necessary for an instance of IDL) wrap="command arg1 arg2" Submit a single command with arguments instead of a script (note quotes) output=/path/to/dir/filename Location of stdout file (by default, slurm#.out in the submitting directory) error=/path/to/dir/filename Location of std class="softBottom"err file (by default, slurm#.out in the submitting directory) no-requeue | -requeue If an allocated node hangs, whether the job should be requeued or not. mem=#g Memory required for the job (Note the g (GB) in this option) ntasks-per-core=1 Do not use hyperthreading (this flag typically used for parallel jobs) cpus-per-task=# Number of CPUs required for each task (e.g. ntasks=# Number of tasks (processes) to be run Important sbatch flags: -partition=partname Job to run on partition 'partname'. Use the 'sbatch' or 'swarm' command to submit a batch script.
