ucx
ucx copied to clipboard
UCP/CORE: Check result md_map inside ucp_mem_map()
What
Check result md_map inside ucp_mem_map() and report an error if it is empty.
Why ?
Memory handle registration/allocation should be considered as invalid, if no Memory Domains could be used to register memory.
How ?
- Combine
ucp_memh_create()anducp_memh_init_uct_reg()toucp_memh_reg()function. - After calling
ucp_mem_alloc()/ucp_memh_reg()checkmemh->md_map == 0. If it is true, report an error and deallocate a created memory handle.
@Artemy-Mellanox @brminich could you review pls?
will be combined with #8552, because need to check md_map only for imported memhs