Commit 4fc5c205 authored by Michael Blocksome's avatar Michael Blocksome Committed by Pavan Balaji
Browse files

fix missing const for MPID_Accumulate and MPID_Put functions.


Signed-off-by: default avatarSu Huang <suhuang@us.ibm.com>
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@mcs.anl.gov>
parent 2ce5a7e2
......@@ -3338,11 +3338,11 @@ int MPID_Win_create(void *, MPI_Aint, int, MPID_Info *, MPID_Comm *,
MPID_Win **);
int MPID_Win_free(MPID_Win **);
int MPID_Put(void *, int, MPI_Datatype, int, MPI_Aint, int,
int MPID_Put(const void *, int, MPI_Datatype, int, MPI_Aint, int,
MPI_Datatype, MPID_Win *);
int MPID_Get(void *, int, MPI_Datatype, int, MPI_Aint, int,
MPI_Datatype, MPID_Win *);
int MPID_Accumulate(void *, int, MPI_Datatype, int, MPI_Aint, int,
int MPID_Accumulate(const void *, int, MPI_Datatype, int, MPI_Aint, int,
MPI_Datatype, MPI_Op, MPID_Win *);
int MPID_Win_fence(int, MPID_Win *);
......
......@@ -159,7 +159,7 @@ MPIDI_Accumulate(pami_context_t context,
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
int
MPID_Accumulate(void *origin_addr,
MPID_Accumulate(const void *origin_addr,
int origin_count,
MPI_Datatype origin_datatype,
int target_rank,
......@@ -265,7 +265,7 @@ MPID_Accumulate(void *origin_addr,
if (req->origin.dt.contig)
{
req->buffer_free = 0;
req->buffer = origin_addr + req->origin.dt.true_lb;
req->buffer = (void *) ((uintptr_t) origin_addr + req->origin.dt.true_lb);
}
else
{
......
......@@ -216,7 +216,7 @@ MPIDI_Put_use_pami_put(pami_context_t context, MPIDI_Win_request * req,int *fr
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
int
MPID_Put(void *origin_addr,
MPID_Put(const void *origin_addr,
int origin_count,
MPI_Datatype origin_datatype,
int target_rank,
......@@ -303,7 +303,7 @@ MPID_Put(void *origin_addr,
if (req->origin.dt.contig)
{
req->buffer_free = 0;
req->buffer = origin_addr + req->origin.dt.true_lb;
req->buffer = (void *) ((uintptr_t) origin_addr + req->origin.dt.true_lb);
}
else
{
......
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