<div dir="ltr">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.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 8:46 PM, Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The communicator passed to Win_create must be an intra-communicator, not inter-communicator. (MPI-3 pg 405).<br>
<div class="im HOEnZb"><br>
On Mar 17, 2014, at 5:44 PM, Ramesh Vinayagam <<a href="mailto:rvinayagam.85@gmail.com">rvinayagam.85@gmail.com</a>> wrote:<br>
<br>
</div><div class="HOEnZb"><div class="h5">> Hi,<br>
><br>
> Can comm_spawn be used with win_create.<br>
> For ex:<br>
> Master process:<br>
> MPI_Comm_spawn(worker_program,MPI_ARGV_NULL, world_size-1,<br>
> info, 0, MPI_COMM_SELF, &everyone,<br>
> MPI_ERRCODES_IGNORE);<br>
><br>
> MPI_Win_create(&testval, sizeof(double), 1,<br>
> MPI_INFO_NULL, everyone,<br>
> &nwin);<br>
><br>
> Worker process:<br>
> MPI_Comm_get_parent(&parent);<br>
> if (parent == MPI_COMM_NULL) error("No parent!");<br>
> MPI_Comm_remote_size(parent, &size);<br>
> if (size != 1) error("Something's wrong with the parent");<br>
><br>
> fprintf (stdout,"Size: %zd\n", size);<br>
> system("echo $NUM_THREADS");<br>
><br>
> MPI_Win_create(MPI_BOTTOM, 0,<br>
> 1, MPI_INFO_NULL,<br>
> parent, &nwin);<br>
><br>
><br>
><br>
> This one fails currently. Am I doing something wrong. It would be great if someone could help me.<br>
><br>
> Thanks<br>
> Ramesh<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br></div>