[slurm-users] How to list available CPUs/GPUs for jobs
Ole Holm Nielsen
Ole.H.Nielsen at fysik.dtu.dk
Fri Mar 8 13:20:32 UTC 2019
On 3/8/19 1:59 PM, Frava wrote:
> I'm replying to the "[slurm-users] Available gpus ?" post. Some time ago
> I did a BASHv4 script in for listing the available CPU/RAM/GPU on the
> nodes. It parses the output of the "scontrol -o -d show node" command
> and displays what I think is needed to launch GPU jobs.
> For now the script doesn't accept any argument because I don't need it
> butfeel free to check the code and give it a try, or modify it to fit
> your needs.
>
> The output is in the form:
> NodeName NodeState NodePartitions CPUs(Available/Total)
> Memory(Available/Total) GPUs(Available/Total) GPUType
Similar information can be printed by the pestat command:
$ pestat -G | grep gpu
Download pestat from
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/pestat
Best regards,
Ole
More information about the slurm-users
mailing list