For example, I have a script called myScript
that processes one input file, and I have a list of filenames. That is, I need to run
$ myScript <filename>
for a list of filenames stored in a filenames.txt
.
The only way to distribute my jobs I found in Slurm is to specify -n
parameter, which duplicates your command or batch script. But notice that I need to pass in a variable parameter into each run. Is it possible to do so in Slurm?
My current solution is to fire a lot of sbatch
scripts, each with a specified <filename>
. However, this way squeue
will show a whole lot of my jobs and I'm afraid this is frown upon by other users.