[MPICH] MPI Question !!

Robert Latham robl at mcs.anl.gov
Thu Jan 10 14:13:13 CST 2008


On Thu, Jan 10, 2008 at 11:57:46AM -0500, koppole at aim.com wrote:
> Dear MPI-users,
> 
> I am not sure whether I am asking this question at the right place. 
> Pardon me if I am in the wrong place ...
> 
> 
> I want to break my MPI_COMM_WORLD into "x" number of groups where each 
> group runs on "y" processors. I want to let the user decide "x" and "y" 
> during run-time. Is there a way I can pass x and y from command line 
> and break the application using MPI_GROUP_INCL ?

Sounds like MPI_Comm_split might do the trick.  for each group 'x' you can
provide a color, though you'll have to do a little work to ensure that
'y' processes end up assigned to each color.

http://www.mpi-forum.org/docs/mpi-11-html/node102.html#Node102

==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA                 B29D F333 664A 4280 315B




More information about the mpich-discuss mailing list