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

Brian Andrus toomuchit at gmail.com
Tue Jul 30 04:17:59 UTC 2019


Yeah, you can't do that in that fashion.

If you want to do that, I'd suggest you put the option in the sbatch 
command you use to submit the script so:

sbatch --job-name=`basename $PWD` /path/to/script.sh


Brian Andrus


On 7/28/2019 10:51 PM, Verzelloni Fabio wrote:
> 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