<html><head></head><body><div dir="auto">thank you very much Carlos for the info,<br></div>
<div dir="auto">regards<br></div>
<div dir="auto">Alfredo<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Enviado desde <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=14063"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >En 19 de diciembre de 2018, en 13:36, Carlos Fenoy <<a href="mailto:minibit@gmail.com" target="_blank">minibit@gmail.com</a>> escribió:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">
<div dir="ltr">
Hi Alfredo,
<div>
<br>
</div>
<div>
You can have a look at using
<a href="https://github.com/eth-cscs/GREASY">https://github.com/eth-cscs/GREASY</a> . It was developed before array-jobs were supported in slurm and it will do exactly what you want.
</div>
<div>
<br>
</div>
<div>
Regards,
<br>Carlos
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">
On Wed, Dec 19, 2018 at 3:33 PM Alfredo Quevedo <
<a href="mailto:maquevedo.unc@gmail.com">maquevedo.unc@gmail.com</a>> wrote:
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
thank you Michael for the feedback, my scenario is the following: I want
<br> to run a job array of (lets say) 30 jobs. So I setted the slurm input as
<br> follows:
<br>
<br> #SBATCH --array=1-104%30
<br> #SBATCH --ntasks=1
<br>
<br> however only 4 jobs within the array are launched at a time due to the
<br> allowed max number of jobs as setted in the slurm configuration (4). As
<br> a workaround to the issued, the sysadmin suggested me to request the
<br> resources, and afterwards distribute the resources asigned into a
<br> multiple set of single CPU task. I believe that with the solution you
<br> mentioned only 30 (out of the 104) jobs will be finished?
<br>
<br> thanks
<br>
<br> Alfredo
<br>
<br>
<br> El 19/12/2018 a las 11:15, Renfro, Michael escribió:
<br> > Literal job arrays are built into Slurm:
<a href="https://slurm.schedmd.com/job_array.html" rel="noreferrer" target="_blank">https://slurm.schedmd.com/job_array.html</a>
<br> >
<br> > Alternatively, if you wanted to allocate a set of CPUs for a parallel task, and then run a set of single-CPU tasks in the same job, something like:
<br> >
<br> > #!/bin/bash
<br> > #SBATCH --ntasks=30
<br> > srun --ntasks=${SLURM_NTASKS} hostname
<br> >
<br> > is one way of doing it. If that’s not what you’re looking for, some other details would be needed.
<br> >
<br>
<br>
</blockquote>
</div>
<br clear="all">
<div>
<br>
</div>--
<br>
<div dir="ltr" class="gmail_signature">
--
<br>Carles Fenoy
<br>
</div></blockquote></div></body></html>