Re: [OMPI users] When is it save to free the buffer after MPI_Isend?

2019-07-27 Thread Gilles Gouaillardet via users
Carlos, MPI_Isend() does not automatically frees the buffer after it sends the message. (it simply cannot do it since the buffer might be pointing to a global variable or to the stack). Can you please extract a reproducer from your program ? Out of curiosity, what if you insert an (useless)

Re: [OMPI users] When is it save to free the buffer after MPI_Isend?

2019-07-27 Thread carlos aguni via users
Hi Jeff, Thank you for your reply. If i don't free the program completes but I'm not sure whether MPI_Isend automatically frees the buffer after it sends the message. Does it? I put a long sleep at the end to check the memory used using pmap. The pmap command reported I'm using around 2GB