<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Amir,</p>
<p>as far as I can tell, there is no way to create resources
dynamically. <br>
</p>
<p>In general, a gres is a generic resource, e.g. tmp-Space, or
whatever could be scheduled and must be restricted by a job.</p>
<p>A feature is more like a binary switch. You could for example set
a feature "amd" on all amd nodes and "intel" on all intel nodes.
For submission, one can then use --constraint=intel, such that the
job will get scheduled onto a node, which has the "intel" feature.<br>
But what you can do with features is, activate or deactivate
features. There is a set of features, which you enter for each
node in the slurm.conf. Here you could e.g. give EVERY node the
"intel" and "amd" feature. You could then e.g. in a nodehealtcheck
script deactivate the amd feature, if you are on an intel node.<br>
One can see the difference between the AvailableFeatures ( which
you entered in slurm.conf ) and the ActiveFeatures by executing
"scontrol show node <nodename>" for the node.</p>
<p><br>
</p>
<p>Best<br>
Marcus<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 01.03.2023 um 22:04 schrieb Amir Ben
Avi:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR07MB58335AC69777127A2FE784CECEAD9@DM6PR07MB5833.namprd07.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I have
looked on the Slurm documentation, but didn’t found any way
to crate resource dynamically ( in a script ) on the node
level<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I also saw
that Slurm have the feature + gres that can be declare on
the node, but those seems static resource tagging<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Will also be
interesting to know what is the different between feature
and gres in general ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks for
your help,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Amir <o:p></o:p></span></p>
</div>
</blockquote>
</body>
</html>