[mvapich-discuss] Issue with MPI_WAITSOME and MPI_IRECV

Rajeev.c.p rajeevcp at yahoo.com
Mon Apr 6 08:24:14 EDT 2015


 
hi mvapich team,I am posting this againI have one question on the usage of MPI_WAITSOME and MPI_IRECV .I am posting a set of MPI_IRECV in a main thread and then i wait using MPI_WAITSOME in the main thread. once the MPI_WAITSOME signals completion of the recv requests i fork threads to process each of the completed receive handle and then inside the child  threads i then post the next set of MPI_IRECV for the specific receive slot.
So the way it works is main thread does the waitsome and the child thread does the processing of completed recv and  posts the next set of MPI_IRECV .This posting of MPI_WAITSOME and forking threads to process the completed requests happens in a do while loop.Will this cause any issue since i post the completed recv to different threads for processing and post the next recv inside the child thread  but the control immediately returns to the main thread to immediately wait on the MPI_WAITSOME. So there could be a case where MPI_WAITSOME and MPI_IRECV are happening in parallel for the same recv slots.Will MPI synchronise itself between the two calls for the same recv slots. will this cause deadlock issues or data corruption or missing data?
Thanks and Regards,Rajeev  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20150406/1b56efb6/attachment.html>


More information about the mvapich-discuss mailing list