[mpich-discuss] Parallel Jobs
Pavan Balaji
balaji at mcs.anl.gov
Thu Dec 16 22:35:05 CST 2010
Gus,
On 12/16/2010 03:36 PM, Gus Correa wrote:
> 5) Write a job submission script for it.
> Here is one for Torque:
>
> #PBS -N cpi
> #PBS -q default
> #PBS -l nodes=2:ppn=4 #example asking for 2 nodes with 4 cores each
>
> mpiexec.hydra -f $PBS_NODEFILE -np 8 cpi
The following is sufficient:
% mpiexec ./cpi
It'll automatically find the values for "-f" and "-np" since it's within
the PBS job script.
> 6) Alternatively, if you don't want to use Torque or SGE, create a
> "mynodefile" according to the MPICH2, and launch the job
> directly on the command line:
>
> mpiexec.hydra -f mynodefile -np 8 cpi
Again, the following is sufficient:
% mpiexec ./cpi
-- Pavan
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list