Commit 33337436 authored by Huiwei Lu's avatar Huiwei Lu
Browse files

Fixes inconsistent definition of parameters



In MPID_Win_allocate and MPID_Win_allocate_shared, baseptr are defined
as void * and void ** separately, while in MPIDI_Win_fns, both
MPID_Win_allocate and MPID_Win_allocate_shared are registered as
MPIDI_CH3U_Win_allocate, where baseptr is defined as void *.

Fixes #1995
Signed-off-by: default avatarJunchao Zhang <jczhang@mcs.anl.gov>
parent 0d61a103
......@@ -3360,7 +3360,7 @@ int MPID_Win_unlock(int dest, MPID_Win *win_ptr);
int MPID_Win_allocate(MPI_Aint size, int disp_unit, MPID_Info *info,
MPID_Comm *comm, void *baseptr, MPID_Win **win);
int MPID_Win_allocate_shared(MPI_Aint size, int disp_unit, MPID_Info *info_ptr, MPID_Comm *comm_ptr,
void **base_ptr, MPID_Win **win_ptr);
void *base_ptr, MPID_Win **win_ptr);
int MPID_Win_shared_query(MPID_Win *win, int rank, MPI_Aint *size, int *disp_unit,
void *baseptr);
int MPID_Win_create_dynamic(MPID_Info *info, MPID_Comm *comm, MPID_Win **win);
......
......@@ -205,7 +205,7 @@ int MPID_Free_mem( void *ptr )
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPID_Win_allocate_shared(MPI_Aint size, int disp_unit, MPID_Info *info, MPID_Comm *comm_ptr,
void **base_ptr, MPID_Win **win_ptr)
void *base_ptr, MPID_Win **win_ptr)
{
int mpi_errno=MPI_SUCCESS;
......
......@@ -374,7 +374,7 @@ MPID_Win_allocate_shared(MPI_Aint size,
int disp_unit,
MPID_Info * info,
MPID_Comm * comm_ptr,
void **base_ptr,
void *base_ptr,
MPID_Win ** win_ptr)
{
int mpi_errno = MPI_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment