Hi Fabio, are you sure that command substition works in the #SBATCH part of the jobscript? I don't think that slurm actally evaluates that, though I might be wrong.
It seems like the #SBATCH after the --job-name line are not evaluated anymore, therefore you can't start srun with two tasks (since slurm only allocates one). Best regards, Marcus On 19-07-29 05:51, 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 > > -- Marcus Vincent Boden, M.Sc. Arbeitsgruppe eScience Tel.: +49 (0)551 201-2191 E-Mail: mbo...@gwdg.de --------------------------------------- Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH Goettingen (GWDG) Am Fassberg 11, 37077 Goettingen URL: http://www.gwdg.de E-Mail: g...@gwdg.de Tel.: +49 (0)551 201-1510 Fax: +49 (0)551 201-2150 Geschaeftsfuehrer: Prof. Dr. Ramin Yahyapour Aufsichtsratsvorsitzender: Prof. Dr. Christian Griesinger Sitz der Gesellschaft: Goettingen Registergericht: Goettingen Handelsregister-Nr. B 598 ---------------------------------------
smime.p7s
Description: S/MIME cryptographic signature