You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prov/efa: fix missing mem_desc and iface initialization in non-p2p path
When p2p is not supported for CUDA/ROCR memory, the non-p2p path in
efa_rdm_mr_reg_impl() was missing two critical initializations:
efa_mr->mr_fid.mem_desc was not set (causing fi_mr_desc() to return
NULL/invalid pointers) and efa_mr_hmem_setup() was not called
(leaving efa_mr->iface uninitialized). Fix by adding the missing
mem_desc assignment, calling efa_mr_hmem_setup() in the non-p2p path,
making efa_mr_hmem_setup() non-static, and adding a unit test to
verify both fields are properly initialized when p2p is disabled.
Signed-off-by: Shi Jin <sjina@amazon.com>
0 commit comments