Hi,
Now I plan to use MPI to build a solver that supports asynchronous communication. The basic idea is as follows.
Assume there are two parallel processes. Process 1 wants to send good solutions it finds periodically to process 2. and ask for good solutions from process 2 when it needs diversification. My questions is
At some point, Process 1 use MPI_send to send a solution to process2, how to guarantee there is a MPI_Rev matching this MPI_Send since this send is trigered dynamically.?
When process 1 needs a solution, how can it send a request to process 2 and process 2 will notice its request in time?
Thanks for the help.