Slurm accounts are used to account for CPU/GPU usage, as well as setting job priorities, and are an important part of the job scheduler. Each M3 project has a corresponding Slurm account.
Some users on M3 will have a single project, which means that they’ll have a single project code and won’t need to specify an account. Other users will have multiple projects, which means they’ll have multiple Slurm accounts and may need to specify an account.
To view your default slurm account:
sacctmgr show user $USER format=User,DefaultAccount
To change your default slurm account:
# Replace nq46 with your account code
sacctmgr modify user where name=$USER set DefaultAccount=nq46
Setting the account for a job#
Depending on how you’re accessing M3, the mechanism for setting the account to charge a job to changes:
sbatch and smux#
To specify an account for
smux jobs, use the
sbatch --account nq46 job.script
sbatch -A nq46 job.script
smux new-session --ntasks=12 --account=nq46
smux new-session --ntasks=12 -A=nq46
To specify an account for Strudel Desktop, enter the account code in the Project box:
To specify an account for Strudel Web, when requesting a desktop, use the drop down menu in the Launch a desktop section.
Questions about slurm accounts#
If you have any enquiries with regards to your project resources and Slurm accounts, please do not hesitate to contact us on email@example.com