
20 Nov
2010
20 Nov
'10
9:07 p.m.
Hi Riccardo, On Nov 20, 2010, at 11:50 AM, Riccardo Murri wrote:
I'm using mpi::communicator::isend where the payload data comes from a pointer (e.g., "req = comm_.isend(dest, tag. *data)"). When am I free to "delete" the pointer? Immediately after isend() returns? Or should I wait until the request is completed?
According to the documentation, isend is non-blocking and returns immediately. I think you'll need to query the returned request object to determine when you can safely delete the pointer (after the message has been delivered).
Does setting BOOST_MPI_HOMOGENEOUS have any influence on this?
I'm not sure about this. -- Noel