How can I tell which account codes I can use and which partitions I can submit to?

The account codes you can use when submitting a job to Slurm are directly related to the HPC Projects you are a member of (see My HPC Projects).

On Comet you can check which account codes you can use and which partitions they grant access to using the ``sacctmgr`` tool:

[n123@cometlogin01(comet) ~]$ sacctmgr list associations where user=n123
   Cluster    Account       User  Partition     Share   Priority GrpJobs       GrpTRES GrpSubmit     GrpWall   GrpTRESMins MaxJobs       MaxTRES MaxTRESPerNode MaxSubmit     MaxWall   MaxTRESMins                  QOS   Def QOS GrpTRESRunMin 
---------- ---------- ---------- ---------- --------- ---------- ------- ------------- --------- ----------- ------------- ------- ------------- -------------- --------- ----------- ------------- -------------------- --------- ------------- 
     comet  allusers         n123                    1                                                                            0                                      0                                         normal                         
     comet  comet_proj1      n123 default_f+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 default_p+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 gpu-l_paid         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 gpu-s_free         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 gpu-s_paid         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 interacti+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 interacti+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 interacti+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 interacti+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 interacti+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123  long_free         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123  long_paid         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 low-laten+         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 short_free         1                                                                          512                                    256                                         normal                         
     comet  comet_proj1      n123 short_paid         1                                                                          512                                    256                                         normal

The example above shows that the user n123 is associated with the allusers account (but which has no partition permissions) and the comet_proj1 account which has permissions on all _paid and _free partitions.

You can use the -p option to sacctmgr to get a more easily parseable output, including complete account and partition names to work around the column width cut-off issue in the default sacctmgr output as above.

If any column in your output of sacctmgr is suffixed with +, then it means that field is longer than can be displayed. Re-run it again with the -p flag to see the full output.

Alternate Output Format

By using the format= argument with sacctmgr you can control the output width of specific columns. This can produce a more readable output if you are prepared to list the individual fields you wish to see.

Example for the comet_training project:

$ sacctmgr list associations where account=comet_training format=Account%20,User%16,Partition%24,GrpTRES%30,MaxSubmitJobs,MaxJobs
             Account             User                Partition                        GrpTRES MaxSubmit MaxJobs 
-------------------- ---------------- ------------------------ ------------------------------ --------- ------- 
      comet_training                                               cpu=2048,gres/gpu=8,node=0       512    1024 
      comet_training           n12345             default_free                                      512    1024 
      comet_training           n12345             default_paid                                      512    1024 
      comet_training           n12345               gpu-l_paid                                      512    1024 
      comet_training           n12345               gpu-s_free                                      512    1024 
      comet_training           n12345               gpu-s_paid                                      512    1024 
      comet_training           n12345     interactive-gpu_free                                      512    1024


Back to FAQ index