Skip to content

Commit

Permalink
UCT/CUDA: Return unreachable from rkey unpack in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
brminich committed Mar 6, 2024
1 parent 4f4a5e1 commit 9cdac44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/uct/cuda/cuda_ipc/cuda_ipc_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,12 @@ static ucs_status_t uct_cuda_ipc_is_peer_accessible(uct_cuda_ipc_component_t *md
* stream sequentialization */
rkey->dev_num = peer_idx;

UCT_CUDA_IPC_GET_DEVICE(this_device);
UCT_CUDA_IPC_DEVICE_GET_COUNT(num_devices);
if (UCT_CUDADRV_FUNC_LOG_DEBUG(cuCtxGetDevice(&this_device)) != UCS_OK) {
status = UCS_ERR_UNREACHABLE;
goto err;
}


accessible = &mdc->md->peer_accessible_cache[peer_idx * num_devices + this_device];
if (*accessible == UCS_TRY) { /* unchecked, add to cache */
Expand Down

0 comments on commit 9cdac44

Please sign in to comment.