<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Snapshot of a job_submit.lua we use to automatically to route jobs to a GPU partition if the user asks for a GPU:
<div><br>
</div>
<div><a href="https://gist.github.com/mikerenfro/92d70562f9bb3f721ad1b221a1356de5">https://gist.github.com/mikerenfro/92d70562f9bb3f721ad1b221a1356de5</a></div>
<div><br>
</div>
<div>All our users just use srun or sbatch with a default queue, and the plugin handles it from there. There’s more detail in an old slurm-users posting of mine from last fall.<br>
<div dir="ltr"><br>
<blockquote type="cite">On Dec 11, 2019, at 11:51 AM, Paul Edmon <pedmon@cfa.harvard.edu> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"><span>External Email Warning</span><br>
<span></span><br>
<span>This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.</span><br>
<span></span><br>
<span>________________________________</span><br>
<span></span><br>
<span>We do this via looking at gres.  The info is in the job_desc.gres</span><br>
<span>variable.  We basically do the inverse where we ensure some one is</span><br>
<span>asking for the gpu before allowing them to submit to a gpu partition.</span><br>
<span></span><br>
<span>-Paul Edmon-</span><br>
<span></span><br>
<span>On 12/11/2019 12:32 PM, Grigory Shamov wrote:</span><br>
<blockquote type="cite"><span>Hi All,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>I am trying the newest SLURM 19.05 and its new cons_tres plugin.</span><br>
</blockquote>
<blockquote type="cite"><span>Is there a way to handle its new GPU options in Lua job submit plugin?</span><br>
</blockquote>
<blockquote type="cite"><span>That is, something like "detect if a job has ‹gpus-per-node, assign it to</span><br>
</blockquote>
<blockquote type="cite"><span>a GPU partition"?</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Thank you very much in advance!</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<span></span><br>
</div>
</blockquote>
</div>
</body>
</html>