Boost logo

Boost Users :

Subject: Re: [Boost-users] [MPI] lifetime of data sent through communicator::isend()
From: Belcourt, K. Noel (kbelco_at_[hidden])
Date: 2010-11-20 16:07:38


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net