Reputation: 959
I would like to have 5 nodes running a same job for my 5 samples respectively at once. Instead of writing and submitting 5 pbs files manually, what would be the common way to handle it in one pbs file please?
some updates 05/12/16:https://wikis.nyu.edu/display/NYUHPC/PBSDSH
http://hpc-uit.readthedocs.io/en/latest/help/faq.html#how-can-i-run-in-parallel-without-using-mpi
http://arc-ts.umich.edu/software/torque/job-arrays/
An existing post about similar issues: PBS/TORQUE: how do I submit a parallel job on multiple nodes?
Upvotes: 0
Views: 2165
Reputation: 7203
The really basic way to handle this in Torque (assuming pbs is Torque in this case) if you want to run hostname on each node you could have a script dash.sh:
#!/bin/bash
/usr/local/bin/pbsdsh hostname # change path if you have a non-default installation
Then:
qsub dash.sh -l nodes=5
pbsdsh with no arguments will launch one instance of hostname for each execution slot in the job on the hosts specified in the job's $PBS_NODEFILE. There are different arguments to control its behavior and these can be found in the manpage for pbsdsh.
Upvotes: 1