[torqueusers] multiple commands in one qsub script
chwilk at rice.edu
Thu Jun 27 11:11:59 MDT 2013
If you would like commands in a qsub script to run in parallel, you can
employ a useful trick we've been recommending to some of our users.
Basically, you allocate multiple cores for your job (on a single node),
then run a process per core backgrounded (with the & symbol) then put a
wait statement at the end of your script.
#PBS -l nodes=1:ppn=4
This will run the four programs in parallel and wait for all of them to
finish before exiting the job.
On 6/27/13 8:23 AM, Mahmood Naderan wrote:
> Assume I put more than one command in a typical qsub script. Are these
> commands executed sequentially or in parallel? For example, the script
> looks like
> #PBS -N temporal
> #PBS -V
> #PBS -q tigerq
> #PBS -l nodes=1
> cd $PBS_O_WORKDIR
> I want to know if 'ls' and 'env' executes in parallel or sequential.
> torqueusers mailing list
> torqueusers at supercluster.org
More information about the torqueusers