[mpich-discuss] Parallel Jobs

Gus Correa gus at ldeo.columbia.edu
Fri Dec 17 10:50:09 CST 2010


Pavan Balaji wrote:
> 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
> 


Thank you, Pavan!

I see, my solution is belt and suspenders. :)

Cheers,
Gus


More information about the mpich-discuss mailing list