openmpi/6594.patch

33 lines
1.2 KiB
Diff
Raw Normal View History

From 68c88e86f2c8ff515a4c54927077143de13516b9 Mon Sep 17 00:00:00 2001
From: Valentin Petrov <valentinp@mellanox.com>
Date: Tue, 16 Apr 2019 14:04:11 +0300
Subject: [PATCH] OSC/UCX: use correct rkey for atomic_fadd in rget/rput
Signed-off-by: Valentin Petrov <valentinp@mellanox.com>
---
ompi/mca/osc/ucx/osc_ucx_comm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ompi/mca/osc/ucx/osc_ucx_comm.c b/ompi/mca/osc/ucx/osc_ucx_comm.c
index ec760d4fda3..bc3b7f5e7ed 100644
--- a/ompi/mca/osc/ucx/osc_ucx_comm.c
+++ b/ompi/mca/osc/ucx/osc_ucx_comm.c
@@ -881,7 +881,7 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
CHECK_VALID_RKEY(module, target, target_count);
- rkey = (module->win_info_array[target]).rkey;
+ rkey = (module->state_info_array[target]).rkey;
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
assert(NULL != ucx_req);
@@ -942,7 +942,7 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
CHECK_VALID_RKEY(module, target, target_count);
- rkey = (module->win_info_array[target]).rkey;
+ rkey = (module->state_info_array[target]).rkey;
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
assert(NULL != ucx_req);