Skip to content

Commit b9bbc49

Browse files
committed
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.
1 parent 4260427 commit b9bbc49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/osc/portals4/osc_portals4_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ ompi_osc_portals4_raccumulate(const void *origin_addr,
514514
OPAL_OUTPUT_VERBOSE((90,ompi_osc_base_framework.framework_output,
515515
"%s,%d Atomic", __FUNCTION__, __LINE__));
516516
ret = PtlAtomic(module->req_md_h,
517-
offset + sent + origin_lb,
517+
md_offset + sent + origin_lb,
518518
msg_length,
519519
PTL_ACK_REQ,
520520
peer,

0 commit comments

Comments
 (0)