From c536e11cf38ef66f2d2b2d9138186f689a3bbd70 Mon Sep 17 00:00:00 2001 From: Todd Kordenbrock Date: Tue, 4 Oct 2016 09:07:35 -0500 Subject: [PATCH] osc-portals4: fix offset bug in raccumulate() This commit fixes a bug where the remote offset was used as both the local and remote offset. Thanks to @PDeveze for the patch. --- ompi/mca/osc/portals4/osc_portals4_comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/osc/portals4/osc_portals4_comm.c b/ompi/mca/osc/portals4/osc_portals4_comm.c index 0e23804298..c8b13cb2ce 100644 --- a/ompi/mca/osc/portals4/osc_portals4_comm.c +++ b/ompi/mca/osc/portals4/osc_portals4_comm.c @@ -514,7 +514,7 @@ ompi_osc_portals4_raccumulate(const void *origin_addr, OPAL_OUTPUT_VERBOSE((90,ompi_osc_base_framework.framework_output, "%s,%d Atomic", __FUNCTION__, __LINE__)); ret = PtlAtomic(module->req_md_h, - offset + sent + origin_lb, + md_offset + sent + origin_lb, msg_length, PTL_ACK_REQ, peer,