Problem with Mpiexec

Pete Wyckoff pw at osc.edu
Sat Feb 22 09:18:27 EST 2003


j.spadavecchia at ed.ac.uk said:
> After typing make && make install
> 
> I try to use mpiexec and get the following errors:
> 
> mpiexec -n 10 /usr/local/src/mpiexec-0.68/hello
> mpiexec: Error: PBS_JOBID not set in environment.  Code must be run from a
>   PBS script, perhaps interactively using "qsub -I".

This is the best clue, but the other information does show you built it all
correctly.

The reason mpiexec exists is to run _inside_ a batch job.  It talks to
PBS to find out what nodes have been allocated to the job, and starts
your code on those nodes using PBS to do so.   Write yourself a script
(man qsub) which uses mpiexec to spawn a parallel job and submit that
script.

Or you can use "interactive-mode" PBS, man qsub for the -I option.

Does this help?

		-- Pete



More information about the mpiexec mailing list