[Mpi3-rma] Fwd: [Mpi-comments] Freeing memory allocated in MPI_WIN_ALLOCATE_SHARED

Jim Dinan dinan at mcs.anl.gov
Tue Sep 4 16:47:11 CDT 2012


MPI_Win_free also frees memory allocated by MPI_Win_allocate.

  ~Jim.

On 9/4/12 4:22 PM, Jeff Hammond wrote:
> Shouldn't that be a new call (MPI_Win_free_shared) to keep the usage
> of MPI_Win_free uniform?  MPI_Win_free doesn't deallocate the buffers
> in any other situation, does it?
>
> Jeff
>
> On Tue, Sep 4, 2012 at 4:07 PM, Jim Dinan <dinan at mcs.anl.gov> wrote:
>> Hi All,
>>
>> It looks like we forgot to include the text specifying that
>> MPI_Win_allocate_shared memory is freed along with the window.
>>
>>   ~Jim.
>>
>>
>> -------- Original Message --------
>> Subject:        [Mpi-comments] Freeing memory allocated in
>> MPI_WIN_ALLOCATE_SHARED
>> Date:   Tue, 4 Sep 2012 12:49:10 +0000
>> From:   Hubert Ritzdorf <Hubert.Ritzdorf at emea.nec.com>
>> Reply-To:       Comments on the MPI Standard
>> <mpi-comments at lists.mpi-forum.org>
>> To:     mpi-comments at lists.mpi-forum.org <mpi-comments at lists.mpi-forum.org>
>>
>>
>>
>> Hi,
>>
>> is it correct that MPI_Win_free should free the memory allocated in
>> MPI_Win_allocate_shared ?
>>
>> MPI_Win_free (Page 416, Line 5-6) specifies this only for
>> memory allocated by MPI_Win_allocate.
>> I think that an additional reference to MPI_Win_allocate_shared is
>> missing also on Page 420, Line 31, Page 448 Line 25, Page 609 Line 31,
>> Page 613 Line 1, Page 614 Line 9, Page 614 Line 31.
>>
>> Hubert
>>
>>
>>
>>
>>
>> _______________________________________________
>> mpi3-rma mailing list
>> mpi3-rma at lists.mpi-forum.org
>> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-rma
>
>
>



More information about the mpiwg-rma mailing list