Ticket 6835

Summary: Include gpu type in scontrol show node
Product: Slurm Reporter: Kaylea Nelson <kaylea.nelson>
Component: User CommandsAssignee: Director of Support <support>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 18.08.5   
Hardware: Linux   
OS: Linux   
Site: Yale Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Kaylea Nelson 2019-04-10 14:19:44 MDT
It would be very useful for "scontrol show node" to show the number of different types of gpus on a node. Right now the only way we can find to query that information is to parse the gres.conf file. Could you use the same format as "GresUsed".

Now:
   Gres=gpu:4
   GresDrain=N/A
   GresUsed=gpu:k80:2(IDX:0,2)

Proposed:
   Gres=gpu:k80:4
   GresDrain=N/A
   GresUsed=gpu:k80:2(IDX:0,2)

Thanks,
Kaylea
Comment 1 Jason Booth 2019-04-10 15:58:39 MDT
You will be happy to know this is in 19.05. I am going to close this out.

In 19.05
# scontrol show nodes | grep Gres
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1
   Gres=gpu:tesla:1(S:0),test:1

In 18.08
#scontrol show nodes | grep Gres
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1
   Gres=gpu:1,test:1