Skip to content

Commit 9b73e8a

Browse files
authored
Merge pull request #6600 from vspetrov/v4.0.x_osc_ucx_no_op_null_addr_handling
OSC/UCX: correctly handle NULL origin addr and MPI_NO_OP
2 parents 9f7b41f + 2947ab2 commit 9b73e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ int ompi_osc_ucx_fetch_and_op(const void *origin_addr, void *result_addr,
673673
ucp_ep_h ep = OSC_UCX_GET_EP(module->comm, target);
674674
uint64_t remote_addr = (module->win_info_array[target]).addr + target_disp * OSC_UCX_GET_DISP(module, target);
675675
ucp_rkey_h rkey;
676-
uint64_t value = *(uint64_t *)origin_addr;
676+
uint64_t value = origin_addr ? *(uint64_t *)origin_addr : 0;
677677
ucp_atomic_fetch_op_t opcode;
678678
size_t dt_bytes;
679679
ompi_osc_ucx_internal_request_t *req = NULL;

0 commit comments

Comments
 (0)