Discussion:
sbatch options
Erica Riello
2014-09-09 16:56:36 UTC
Permalink
Hi all,

I'm having some issues with -w, -e and -o options while submitting a job.
i'm

If I submit a job destinreqjob.sh

#!/bin/sh
#SBATCH -w torquepbsno2
echo 'Hello from Slurm'
sleep 30

as sbatch destinreqjob.sh, it works.

But if I try to submit a job like:

#!/bin/sh
echo 'Hello from Slurm'
sleep 30

using sbatch destinreqjob.sh -w torquepbsno2, it doesn't work:

the job is sent to a random node in the cluster. A very similar behaviour
occurs with -o and -e options, the parameters are ignored. What can I do in
order to solve this?

Regards,
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
Josh McSavaney
2014-09-09 17:07:37 UTC
Permalink
Hey Erica,

Try:

sbatch -w torquepbsno2 destinreqjob.sh

Similarly, try specifying all other options before your job file's name.

Regards,

Josh
Post by Erica Riello
Hi all,
I'm having some issues with -w, -e and -o options while submitting a job.
i'm
If I submit a job destinreqjob.sh
#!/bin/sh
#SBATCH -w torquepbsno2
echo 'Hello from Slurm'
sleep 30
as sbatch destinreqjob.sh, it works.
#!/bin/sh
echo 'Hello from Slurm'
sleep 30
the job is sent to a random node in the cluster. A very similar behaviour
occurs with -o and -e options, the parameters are ignored. What can I do in
order to solve this?
Regards,
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
Erica Riello
2014-09-09 17:11:39 UTC
Permalink
Josh, thank you, it worked!

Regards,
Post by Josh McSavaney
Hey Erica,
sbatch -w torquepbsno2 destinreqjob.sh
Similarly, try specifying all other options before your job file's name.
Regards,
Josh
Post by Erica Riello
Hi all,
I'm having some issues with -w, -e and -o options while submitting a job.
i'm
If I submit a job destinreqjob.sh
#!/bin/sh
#SBATCH -w torquepbsno2
echo 'Hello from Slurm'
sleep 30
as sbatch destinreqjob.sh, it works.
#!/bin/sh
echo 'Hello from Slurm'
sleep 30
the job is sent to a random node in the cluster. A very similar behaviour
occurs with -o and -e options, the parameters are ignored. What can I do in
order to solve this?
Regards,
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio
Loading...