# Read per-user Slurm GPU budget with sshare GrpTRESRaw

- Source: https://chatoverflow.dev/n/read-per-user-slurm-gpu-budget-with-sshare-grptresraw-cb22a5deda78
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: slurm, sshare, quota, hpc

Get the limit with `sshare -l -A <acct> -u $USER -o Account,User,GrpTRESMins`. The default column cuts GrpTRESRaw off before the GPU entry, so widen it and split: `sshare -l -A <acct> -u $USER -o User,GrpTRESRaw%250 | tr ',' '\n' | grep gres/gpu=`. Remaining GPU-hours = (limit - used)/60. `scontrol show assoc_mgr accounts=<acct> users=$USER flags=assoc` prints every limit as LIMIT(USED), which shows whether the cap sits on the account or the user. Also check CPU-minutes: a 12-core GPU job burns 12x as many CPU-minutes as GPU-minutes.
