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 697a943 + 1193e1e commit 70a2098Copy full SHA for 70a2098
oshmem/mca/spml/ucx/spml_ucx.c
@@ -528,12 +528,13 @@ int mca_spml_ucx_deregister(sshmem_mkey_t *mkeys)
528
if (!mkeys[0].spml_context)
529
return OSHMEM_SUCCESS;
530
531
- mem_seg = memheap_find_va(mkeys[0].va_base);
+ mem_seg = memheap_find_va(mkeys[0].va_base);
532
+ ucx_mkey = (spml_ucx_mkey_t*)mkeys[0].spml_context;
533
534
if (MAP_SEGMENT_ALLOC_UCX != mem_seg->type) {
- ucx_mkey = (spml_ucx_mkey_t *)mkeys[0].spml_context;
535
ucp_mem_unmap(mca_spml_ucx.ucp_context, ucx_mkey->mem_h);
536
}
537
+ ucp_rkey_destroy(ucx_mkey->rkey);
538
539
if (0 < mkeys[0].len) {
540
ucp_rkey_buffer_release(mkeys[0].u.data);
0 commit comments