On 6/19/13 8:58 AM, "Jim Dinan" <james.dinan@gmail.com> wrote:I think we're in agreement that iflush needs to be defined separately. I was thinking out loud (without really thinking that hard about it) that win_test might be usable to achieve iunlock or ifence, but this is nonsensical because the arguments are different across these functions. Win_test also only covers win_wait. To be complete, we should also consider MPI_Win_icomplete, and a few others. Here's a more exhaustive list:MPI_Win_iflushMPI_Win_iflush_allMPI_Win_iflush_localMPI_Win_iflush_local_allMPI_Win_iunlockMPI_Win_iunlock_allMPI_Win_ifenceMPI_Win_icompleteMPI_Win_iwait (to replace win_test, for completeness?)This is a whole other can of worms, but in some cases, the functions that start an epoch can block (e.g. a lock operation when load/store is possible for the target). I don't know to what extent we want to look into nonblocking variants of those routines. We already have nonblocking fence in the list, which initiates an epoch.I think MPI_WIN_IWAIT would have very different semantics than MPI_WIN_TEST. Again, I think the only sane way to define non-blocking synchronization functions is to say essentially that the non-blocking function starts the synchronization (ends the epoch from the programmers standpoint) and the successfully completed request ends the synchronization (starts the next epoch or allows new epochs to be started, depending on the synchronization). Anything else is nightmarish from either a programmer's standpoint (non-blocking can block) or an implementor's standpoint (must suddenly track requests much more fine-grained than today, killing performance).Brian--Brian W. BarrettScalable System Software GroupSandia National Laboratories
_______________________________________________
mpi3-rma mailing list
mpi3-rma@lists.mpi-forum.org
http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-rma