Commit f94e850c authored by Norio Yamaguchi's avatar Norio Yamaguchi Committed by Pavan Balaji
Browse files

Fix the buffer address for send/recv

The data format to transmit or receive may be contiguous and have the
nonzero lower bound.
parent 44f70528
......@@ -256,7 +256,7 @@ int MPID_nem_tofu_recv_posted(struct MPIDI_VC *vc, struct MPID_Request *req)
void *write_to_buf;
if (dt_contig) {
write_to_buf = (void *) ((char *) req->dev.user_buf /*+ REQ_FIELD(req, lmt_dt_true_lb) */);
write_to_buf = (void *) ((char *) req->dev.user_buf + dt_true_lb);
}
else {
REQ_FIELD(req, pack_buf) = MPIU_Malloc(data_sz);
......
......@@ -86,7 +86,7 @@ int MPID_nem_tofu_isend(struct MPIDI_VC *vc, const void *buf, int count, MPI_Dat
const void *write_from_buf;
if (dt_contig) {
write_from_buf = buf;
write_from_buf = buf + dt_true_lb;
}
else {
/* See MPIDI_CH3_EagerNoncontigSend (in ch3u_eager.c) */
......
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