<div dir="ltr">There was a previous thread where someone recommended a third-party script: "pestat -G" that will parse the outputs of 'scontrol shown node' and 'scontrol show job' and add up the used GPUs perhaps? <a href="https://github.com/OleHolmNielsen/Slurm_tools/tree/master/pestat">https://github.com/OleHolmNielsen/Slurm_tools/tree/master/pestat</a><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 11:44 AM, jayraj shah <span dir="ltr"><<a href="mailto:jayraj.shah33@gmail.com" target="_blank">jayraj.shah33@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you. </div>I tried that option but it gives me, how many gpus are available/attached to node. (such as gpu:8)<div>I want to know how many are used and how many are free (to run my jobs on free gpus).</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 2:34 PM, <a href="mailto:sefa.arslan@tubitak.gov.tr" target="_blank">sefa.arslan@tubitak.gov.tr</a> <span dir="ltr"><<a href="mailto:sefa.arslan@tubitak.gov.tr" target="_blank">sefa.arslan@tubitak.gov.tr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="margin-bottom:45px">
<div style="font-size:10pt"><div dir="ltr" style="margin-top:0;margin-bottom:0">You msy use sinfo with parameters i.e. %G .</div><div dir="ltr" style="margin-top:0;margin-bottom:0"><br></div><div dir="ltr" style="margin-top:0;margin-bottom:0"><a href="https://slurm.schedmd.com/sinfo.html" target="_blank">https://slurm.schedmd.com/sinf<wbr>o.html</a><br></div><div dir="ltr" style="margin-top:0;margin-bottom:0"><br></div><div id="m_8373552141841892409m_-8446362290111768562SignatureBox" dir="ltr" style="margin-top:0;margin-bottom:0"><div dir="ltr" style="margin-top:0px;margin-bottom:0px">Sefa Arslan</div></div></div><div style="font-size:10pt"><div id="m_8373552141841892409m_-8446362290111768562LGEmailHeader" dir="ltr" style="margin-top:0;margin-bottom:0"><div dir="ltr" style="margin-top:0;margin-bottom:0"><br></div><div dir="ltr" style="margin-top:0;margin-bottom:0">------ Orijinal mesaj------</div><div dir="ltr" style="margin-top:0;margin-bottom:0"><b>Kimden: </b>jayraj shah<u></u><u></u></div><div dir="ltr" style="margin-top:0;margin-bottom:0"><b>Tarih: </b>Cum, 16 Mar 2018 21:18</div><div dir="ltr" style="margin-top:0;margin-bottom:0"><b>Kime: </b><a href="mailto:slurm-users@schedmd.com" target="_blank">slurm-users@schedmd.com</a>;</div><div dir="ltr" style="margin-top:0;margin-bottom:0"><b>Konu:</b>[slurm-users] Available gpus ?</div><div dir="ltr" style="margin-top:0;margin-bottom:0"><br></div></div><div><div class="m_8373552141841892409h5"><div dir="ltr"><div dir="ltr">I am trying to find out how as a user, I can get information about available/unused gpus on cluster. </div><div dir="ltr"><br></div><div dir="ltr">This cluster is setup in a way that user can request gpus per node between 1 to 8. Using sinfo it shows that STATE is "mix". But I can't tell how many out of 8 are being used and how many are available on that mix state node for other user to use. </div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Please let me know your suggestions. </div><div dir="ltr"><br></div><br clear="all"><div dir="ltr"><br></div>-- <br><div class="m_8373552141841892409m_-8446362290111768562gmail_signature" data-smartmail="gmail_signature" dir="ltr"><div dir="ltr">Thanks</div><div dir="ltr">Jayraj</div><div dir="ltr"><br></div></div></div></div></div></div>
</div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_8373552141841892409gmail_signature" data-smartmail="gmail_signature"><div>Thanks</div><div>Jayraj</div><div><br></div></div>
</font></span></div>
</blockquote></div><br></div>