The sbatch command does copy the batch script.
Other files would need to be explicitly moved (e.g. "srun -n1 my.bash", does not move the file "my.bash"). You would probably want to do something like this instead:

salloc <options> bash
sbcast my.bash /tmp/my.bash
srun /tmp/my.bash
exit (the salloc spawned bash process)

Documentation for sbcast command:
http://slurm.schedmd.com/sbcast.html


Quoting James Board <jpboa...@yahoo.com>:

Hi.  I have a mid-size Linux cluster with no shared filesystem.  I'm
trying to submit jobs from arbitrary nodes, or even from machines
that aren't part of the cluster.  I can do this successfully if the jobs
are simple 'srun hostname' type jobs (no batch command file).
 
However, if I submit a job with a batch command file, then it
seems that the command file is not automatically copied to to
the machine where it will run, and this generates an error.
 
What is the common way of handling this?  I could potentially copy
the jobs to every node in the system, but this doesn't cale well once
I have hundreds of nodes.  What's the best way to handle this?

Reply via email to