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

2019-08-10 Thread carlos aguni via users
Hi all, Sorry no reply. I just figured out the solution. The problem was that I had a function that would MPI_Isend a message on every call to it. Then I'd store its request pointer to a list. My MPI_Isend snippet: MPI_Request req; MPI_Isend(blabla, ) task_push(); >From time to time at the

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

2019-07-21 Thread carlos aguni via users
Hi all, I've got a code where I MPI_Isend at a time and later I get the result from MPI_Test flag to see whether it has completed or not. So the code is like: MPI_Isend() ... some stuff.. flag = 0; MPI_Test(req, , ); if (flag){ free(buffer); } After the free() i'm getting errors like:

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

2019-07-27 Thread carlos aguni via users
which I'm guessing it isn't freeing it. Is there anything I could try? Regards, C. On Mon, Jul 22, 2019 at 10:59 AM Jeff Squyres (jsquyres) wrote: > > On Jul 21, 2019, at 11:31 AM, carlos aguni via users < > users@lists.open-mpi.org> wrote: > > > > MPI_Isend() > &