Hi Renat,

On Thu, Nov 09, 2017 at 03:09:17PM +0100, Yakupov, Renat /DZNE wrote:
> I would like some suggestions on how to spread out in time the start
> of multiple parallel jobs with srun.

I would use:

sbatch --array=...

As far as I know srun doesn't support arrays.

> Is there a way to get a task number? I know there is
> SLURM_ARRAY_TASK_ID variable, but all job array related variables dont
> work for me. I guess, job array capabilities arent enable on our
> SLURM.

environment variables should work under sbatch, so you can use something
like:

sleep $((SLURM_ARRAY_TASK_ID*5))

where array index ranges from 0 to n-1.
Regards
-- 
Gennaro Oliva

Reply via email to