Discussion:
Can I stop slurm from copying a script to execution node
Thomas Johnson
2014-07-10 02:31:43 UTC
Permalink
I am submitting a job with sbatch /somepath/test.sh

test.sh looks for a config files and other scripts in the same path e.g.
/somepath/
/somepath/ is available to all submit and compute nodes.

but slurm copies the script to /var/lib/slurm-llnl/slurmd/etc/ before
executing it. Thus it test.sh can't find the required config and scripts.

I'm changing over from sge where adding the -b y flag to qsub would stop
sge from copying the script to the execution host.

Is there a similar solution for slurm?
Eckert, Phil
2014-07-10 14:21:35 UTC
Permalink
If you don’t wish to do the submission from the “somepath” directory you can use the following sbatch option to achieve what you are looking for.

-D, --workdir=<directory>
Set the working directory of the batch script to directory before it is executed.

Phil Eckert
LLNL


From: Thomas Johnson <thomas-+iC4Jn8VyzNd4BHZnuJtp8oUMAV/***@public.gmane.org<mailto:***@outdoorsnewzealand.co.nz>>
Reply-To: slurm-dev <slurm-dev-***@public.gmane.org<mailto:slurm-dev-***@public.gmane.org>>
Date: Wednesday, July 9, 2014 at 7:31 PM
To: slurm-dev <slurm-dev-***@public.gmane.org<mailto:slurm-dev-***@public.gmane.org>>
Subject: [slurm-dev] Fwd: Can I stop slurm from copying a script to execution node




I am submitting a job with sbatch /somepath/test.sh

test.sh looks for a config files and other scripts in the same path e.g. /somepath/
/somepath/ is available to all submit and compute nodes.

but slurm copies the script to /var/lib/slurm-llnl/slurmd/etc/ before executing it. Thus it test.sh can't find the required config and scripts.

I'm changing over from sge where adding the -b y flag to qsub would stop sge from copying the script to the execution host.

Is there a similar solution for slurm?

Loading...