Submitting jobs to the cluster
The BMRC cluster runs the same cluster management software as the OxCIN cluster, so our guide for fsl_sub is mostly appropriate. Any BMRC specifics are described here.
GPU Tasks
Project
Assuming your PI has purchased GPU shares, they will be allocated a SLURM project gpu_<groupname>. This project needs to be specified when submitting a GPU task to ensure that it can run; fsl_sub should be able to manage this automatically when you request a cuda coprocessor, but you may need to tweak the options for optimal scheduling.
Where you don't have control of the fsl_sub options, e.g. when running FEAT, you can specify the project with an environment variable.
FSLSUB_PROJECT=gpu_<mygroupname> script_that_submits
or if all your tasks are GPU aware you could add this to your .bashrc file:
export FSLSUB_PROJECT=gpu_<mygroupname>
Hardware selection
GPU tasks also have to specify which hardware they require by specifying a partition. This is specified by requesting a specific queue (as detailed in the fsl_sub --help output) or by using the --coprocessor_class option which uses simplified names based on the card generation and memory capacity.
Run time
To ensure efficient use of hardware you should tell the cluster how long your task will run for - by doing so your job may run sooner as shorter jobs may be prioritised over longer ones. For GPU tasks, in addition to the -T option to fsl_sub you may also specify a Quality of Service, of which the are currently two, gpu_bmrc_4hr and gpu_bmrc_24hr. Any running for longer than 24 hours, or not specifying one of these QOSes will be scheduled with the lowest priority.
To specify the QOS name to apply, use the --extra fsl_sub option:
fsl_sub --extra \"--qos=gpu_bmrc_4hr" ...
or where you are running self-submitting software
export FSLSUB_EXTRA_QOS="--qos=gpu_bmrc_4hr"
Long running tasks
Similar to the OOD cluster, BMRC's cluster does not offer 'infinite' queues. You must break your task up into shorter components or regularly save state to allow restart and submit these parts (or resubmit the job continuing where it left off) using job holds to prevent tasks running before the previous one completes.