<div dir="ltr">Well, this program will not compile, since MPI_Comm_dup_with_info takes three arguments. Furthermore, the info is NOT duplicated and instead the second argument is the info the user provides for the new communicator.<div><br></div><div>Hammond<br><br><br>On Mon, Feb 15, 2016 at 2:34 PM, Jeff Squyres (jsquyres) <<a href="mailto:jsquyres@cisco.com" target="_blank">jsquyres@cisco.com</a>> wrote:<br>><br>> This question has come up in the Open MPI community:<br>><br>> -----<br>> MPI_Info_set(myinfo, "use_shared_memory", "yes");<br>> MPI_Comm_set_info(comm, myinfo);<br>> MPI_Comm_get_info(comm, myinfo_returned); <br>> // Assume here that there was not enough shared memory available to use shared-memory for <br>> // communication on this comm, so MPI_Info_get() tells us that use_shared_memory is "no".<br>><br>> // ...time passes, and now assume there is more shared-memory available<br>> MPI_Comm_dup_with_info(comm, &newcom);<br>> MPI_comm_get_info(newcom, myinfo_returned);<br>> -----<br>><br>> Should newcom have "use_shared_memory" set to "yes" or "no"?<br>><br>> Arguments for "yes":<br>> - the user originally asked for "yes"<br>> - now there is shared memory available<br>><br>> Arguments for "no":<br>> - the current value for "used_shared_memory" on the parent communicator is "no"<br>><br>> Which should it be?<br>><br>> MPI-3.1 6.4.2 p238 says:<br>><br>> "...Returns in newcomer a new communicator with the same group or groups, same topology, same info hints, any copied cached information, but a new context (see Section 6.7.1)."<br>><br>> So the specific question here is: what exactly does "Same info hints" mean? The user-specific hint, or the current value of the hint?<br>><br>> --<br>> Jeff Squyres<br>> <a href="mailto:jsquyres@cisco.com" target="_blank">jsquyres@cisco.com</a><br>> For corporate legal information go to: <a href="http://www.cisco.com/web/about/doing_business/legal/cri/" target="_blank">http://www.cisco.com/web/about/doing_business/legal/cri/</a><br>> _______________________________________________<br>> mpi-forum mailing list<br>> <a href="mailto:mpi-forum@lists.mpi-forum.org" target="_blank">mpi-forum@lists.mpi-forum.org</a><br>> <a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum</a><br><br><br><br><br>--<br>Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a><br><div class="gmail_extra">
</div></div></div>