[slurm-users] Job error when using --job-name=`basename $PWD`

Verzelloni Fabio fverzell at cscs.ch
Mon Jul 29 05:51:23 UTC 2019


Hi Everyone, 
I'm experiencing a weird issue, when submitting a job like that:
-------------------------
#!/bin/bash
#SBATCH --job-name=`basename $PWD`
#SBATCH --ntasks=2
srun -n 2 hostname
-------------------------
Output:
srun: error: Unable to create step for job 15387: More processors requested than permitted

If I submit a job like that:
-------------------------
#!/bin/bash
#SBATCH --job-name=myjob
#SBATCH --ntasks=2
srun -n 2 hostname
-------------------------
Output:
Mynode-001
Mynode-001

If I decrease the number of task it works fine:
-------------------------
#!/bin/bash
#SBATCH --job-name=`basename $PWD`
#SBATCH --ntasks=1
srun -n 1 hostname
-------------------------
Output:
Mynode-001

The slurm version is 18.08.8, is that a bug in slurm?

Thanks
Fabio

--
- Fabio Verzelloni - CSCS - Swiss National Supercomputing Centre
via Trevano 131 - 6900 Lugano, Switzerland
Tel: +41 (0)91 610 82 04
 



More information about the slurm-users mailing list