[mpich-discuss] Comm_spawn with win_create

Jim Dinan james.dinan at gmail.com
Wed Mar 19 14:07:41 CDT 2014


An additional suggestion: The inter-communicator can be converted to an
intra-communicator using MPI_Intercomm_merge.  The communicator produced by
the merge could be used to create an RMA window.


On Mon, Mar 17, 2014 at 8:46 PM, Rajeev Thakur <thakur at mcs.anl.gov> wrote:

> The communicator passed to Win_create must be an intra-communicator, not
> inter-communicator. (MPI-3 pg 405).
>
> On Mar 17, 2014, at 5:44 PM, Ramesh Vinayagam <rvinayagam.85 at gmail.com>
> wrote:
>
> > Hi,
> >
> > Can comm_spawn be used with win_create.
> > For ex:
> > Master process:
> >   MPI_Comm_spawn(worker_program,MPI_ARGV_NULL, world_size-1,
> >                  info, 0, MPI_COMM_SELF, &everyone,
> >                  MPI_ERRCODES_IGNORE);
> >
> >   MPI_Win_create(&testval, sizeof(double), 1,
> >                  MPI_INFO_NULL, everyone,
> >                  &nwin);
> >
> > Worker process:
> >  MPI_Comm_get_parent(&parent);
> >   if (parent == MPI_COMM_NULL) error("No parent!");
> >   MPI_Comm_remote_size(parent, &size);
> >   if (size != 1) error("Something's wrong with the parent");
> >
> >   fprintf (stdout,"Size: %zd\n", size);
> >   system("echo $NUM_THREADS");
> >
> >   MPI_Win_create(MPI_BOTTOM, 0,
> >                  1, MPI_INFO_NULL,
> >                  parent, &nwin);
> >
> >
> >
> > This one fails currently. Am I doing something wrong. It would be great
> if someone could help me.
> >
> > Thanks
> > Ramesh
> > _______________________________________________
> > discuss mailing list     discuss at mpich.org
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/discuss
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140319/d7825801/attachment.html>


More information about the discuss mailing list