1
1

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
Этот коммит содержится в:
Howard Pritchard 2019-04-18 15:36:13 -06:00 коммит произвёл GitHub
родитель 9f7b41f588 2947ab2dbc
Коммит 9b73e8a7c0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -673,7 +673,7 @@ int ompi_osc_ucx_fetch_and_op(const void *origin_addr, void *result_addr,
ucp_ep_h ep = OSC_UCX_GET_EP(module->comm, target); ucp_ep_h ep = OSC_UCX_GET_EP(module->comm, target);
uint64_t remote_addr = (module->win_info_array[target]).addr + target_disp * OSC_UCX_GET_DISP(module, target); uint64_t remote_addr = (module->win_info_array[target]).addr + target_disp * OSC_UCX_GET_DISP(module, target);
ucp_rkey_h rkey; ucp_rkey_h rkey;
uint64_t value = *(uint64_t *)origin_addr; uint64_t value = origin_addr ? *(uint64_t *)origin_addr : 0;
ucp_atomic_fetch_op_t opcode; ucp_atomic_fetch_op_t opcode;
size_t dt_bytes; size_t dt_bytes;
ompi_osc_ucx_internal_request_t *req = NULL; ompi_osc_ucx_internal_request_t *req = NULL;