I'm converting a script from SGE to SLURM.
In SGE, the script generates a list of which queues the user $USER can access -
$ qstat -U $USER -g c
CLUSTER QUEUE CQLOAD USED RES AVAIL TOTAL aoACDS cdsuE
--------------------------------------------------------------------------------
1-day 0.1 1 0 2999 3000 0 0
1-hour 0.1 0 0 3000 3000 0 0
30-day 0.1 1 0 1999 2000 0 0
How do I see which partitions a given user can access in SLURM? Thanks!
Maybe have a look at sacctgmr. Using our cluster
sacctmgr show User $USER --associations
leads to:
| User | Def Acct | Admin | Cluster | Account | Partition | Share | Priority | MaxJobs | MaxNodes | MaxCPUs | MaxSubmit | MaxWall | MaxCPUMins | QOS | Def QOS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XXX | YYY | None | ZZZ | xa | 1000 | long,normal,short | |||||||||
| XXX | YYY | None | ZZZ | all | 1000 | 1000 | 5000 | long,normal,short |
the QOS is probably what you want.