Skip to content

Commit 8ee80d8

Browse files
committed
osc/rdma: fix bug in attach for non-debug builds
This commit fixes an issue with non-debug builds where adding an attachment to the attachment list doesn't actually happen. This causes all MPI_Win_detach calls to fail. The call was within an assert which is optimized out in optimized builds. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 0276679 commit 8ee80d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_dynamic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ int ompi_osc_rdma_attach (struct ompi_win_t *win, void *base, size_t len)
261261
rdma_region_handle->btl_handle = NULL;
262262
}
263263

264-
assert(OMPI_SUCCESS == ompi_osc_rdma_add_attachment (rdma_region_handle, (intptr_t) base, len));
265-
264+
ret = ompi_osc_rdma_add_attachment (rdma_region_handle, (intptr_t) base, len);
265+
assert(OMPI_SUCCESS == ret);
266266
module->dynamic_handles[region_index] = rdma_region_handle;
267267

268268
#if OPAL_ENABLE_DEBUG

0 commit comments

Comments
 (0)