Skip to content

Commit

Permalink
Merge pull request #9717 from brminich/uct/cuda_ipc_fix_rkey_unpack
Browse files Browse the repository at this point in the history
UCT/CUDA: Return unreachable from rkey unpack in case of error - v1.16.x
  • Loading branch information
yosefe authored Mar 10, 2024
2 parents 6ec84a7 + 9cdac44 commit 10d785d
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 10d785d

Please sign in to comment.