<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>You are putting the cart before the horse here. While you can get
access to all the node using --exclusive, when you request cores,
you will not know if you have more. For example you request 80
cores and land on a 40 and a 48 with exclusive access. You would
need to do some sort of discovery to know what is available versus
what you asked for. When using exclusive, it becomes more like "I
want at least X cores" and you get "Ok, here are X cores or more"</p>
<p>Within your script, you could check for total cores. something
like 'srun lscpu' and parse the output.<br>
</p>
<p>Brian Andrus</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 3/22/2022 7:29 AM, Richard Ems
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEqczzymGPnB6+RE7iQx_9arZjmW9gYQ0PwFnozh2k97oRHTDg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,<br>
<br>
I am looking for an option to use all cores when submitting to
heterogeneous nodes.<br>
In this case I have 2 partitions:<br>
part1: #N1 nodes, each node has 40 cores<br>
part2: #N2 nodes, each node has 48 cores<br>
<br>
I want to submit to both partitions, requesting a number of
nodes and then set <br>
--ntasks=40*#nodes<br>
or <br>
--ntasks=48*#nodes <br>
depending on which partition gets selected by Slurm.<br>
Can this be done?<br>
<br>
An option similar to --ntasks=USE_ALL_CORES would be great.<br>
<br>
Many thanks,<br>
Richard<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Richard Ems / aiduit / <a
href="mailto:r.ems@aiduit.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">r.ems@aiduit.com</a><br>
</div>
</div>
</div>
</blockquote>
</body>
</html>