<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Palatino;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Palatino;
        color:#538135;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">I’m seeing a problem with GPU usage reporting via squeue in the 19.05.3 release.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">I’ve been using a custom script to track GPUs in use, and had been relying on the ‘%b’ field of squeue -o formatting (which now seems to be undocumented) to capture usage requested via --gres
 option of sbatch.  Unfortunately, besides apparently being deprecated, ‘%b’ does not report usage requested via the new --gpus option.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">I’ve tried several squeue -O option fields, but only ‘tres-alloc’ seems to consistently report GPU usage, independent of which sbatch option was used for the request.  The ‘tres-per-node’
 field only reports usage requested by --gres, while ‘tres-per-job’ only reports usage requested by the  --gpus option.  Also, the -O formatting doesn’t put a single space between fields, a problem for longer job names or usernames, and messes up the field
 parsing of the output when two fields are run together.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">Our users like to know which partition has the most free GPUs, and right now my script is broken wrt. usage via the --gpus option.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">If there is no other option, I can probably parse the ‘tres-alloc’ field (it has more info than I need), but I’m looking for alternatives, or any information that might indicate the ‘tres-*’
 fields are more consistent in the newer (.4 or .5) SLURM releases. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">BTW, sreport does a bad job of reporting GPU usage as well, in that the GRES/GPU total % for root in the account listing on a given cluster is always less than the % allocated in the utilization
 listing, sometime by a substantial amount.  The CPU usage is almost always the same in both sreport listings.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">--<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-family:Palatino;color:#538135">Rick Venable</span></i><span style="font-family:Palatino;color:#538135">   <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">NIH/NHLBI/DIR/BBC
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">Lab. of Membrane Biophysics MSC 5690<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">Bldg. 12A Room 3053L<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Palatino;color:#538135">Bethesda, MD  20892-5690   U.S.A.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif;color:#538135"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>