We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ec84a7 + 9cdac44 commit 10d785dCopy full SHA for 10d785d
src/uct/cuda/cuda_ipc/cuda_ipc_md.c
@@ -209,8 +209,12 @@ static ucs_status_t uct_cuda_ipc_is_peer_accessible(uct_cuda_ipc_component_t *md
209
* stream sequentialization */
210
rkey->dev_num = peer_idx;
211
212
- UCT_CUDA_IPC_GET_DEVICE(this_device);
213
UCT_CUDA_IPC_DEVICE_GET_COUNT(num_devices);
+ if (UCT_CUDADRV_FUNC_LOG_DEBUG(cuCtxGetDevice(&this_device)) != UCS_OK) {
214
+ status = UCS_ERR_UNREACHABLE;
215
+ goto err;
216
+ }
217
+
218
219
accessible = &mdc->md->peer_accessible_cache[peer_idx * num_devices + this_device];
220
if (*accessible == UCS_TRY) { /* unchecked, add to cache */
0 commit comments