<div dir="ltr"><div class="gmail-js-vote-count gmail-grid--cell gmail-fc-black-500 gmail-fs-title gmail-grid gmail-fd-column gmail-ai-center">Hi everyone!<br></div>
<div class="gmail-votecell gmail-post-layout--left"><div class="gmail-js-voting-container gmail-grid gmail-fd-column gmail-ai-stretch gmail-gs4 gmail-fc-black-200">
</div>
</div>
<div class="gmail-postcell gmail-post-layout--right">
<div class="gmail-post-text">
<p>I have SLURM cluster with several nodes with 16 vcpus per node. I've tried to run the following code:</p>
<pre><code>#SBATCH --nodes 2
#SBATCH --ntasks 2
#SBATCH -c 16
srun --exclusive --nodes=1 program1 &
srun --exclusive --nodes=1 program2 &
wait
</code></pre>
<p><code>program1</code> and <code>program2</code> needs 16cpus each and I expected that 2 nodes with 32 cores would be allocated and <code>program1</code> would be ran on the first node and <code>program2</code> on the second one, but I got the following error message:</p>
<pre><code>srun: error: Unable to create step for job 364966: Requested node configuration is not available
</code></pre>
<p>If I use only <code>--nodes</code> and <code>--ntasks</code> keys, sbatch allocates 2 nodes with 2 cpus and if I use <code>--nodes</code> and <code>-c</code> options, I get message that <code>--ntasks</code> should be defined.</p>
<p>If I set <code>--ntasks=1</code>, SLURM set nnodes to 1.</p>
<p>How can I run this two programs in one batch, each on one node and 16 vcpus?</p><p>------</p><p>Kind regards,</p><p>Daniil Vakhrameev<br></p>
</div>
<div class="gmail-post-taglist gmail-grid gmail-gs4 gmail-gsy gmail-fd-column">
<div class="gmail-grid gmail-ps-relative gmail-d-block">
<br></div></div></div></div>