[Mpi-forum] Threading guarantees of MPI_User_function
rf at rufflewind.com
Thu May 25 11:35:40 CDT 2017
I have another question about MPI_User_function. Does MPI make any
guarantees regarding (a) whether multiple invocations of
MPI_User_function could occur simultaneously within a given process for
a given MPI_Op, and regarding (b) which thread MPI_User_function gets
The answer to (a) affects whether MPI_User_function would need any
synchronization (like mutexes or semaphores) if it mutates global state.
The answer to (b) affects whether it is possible to use thread-local
state inside MPI_User_function.
I would appreciate any clarifications. Thanks.
More information about the mpi-forum