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
ch4/spawn: enter lock in ch4-layer for dynamic apis
The dynamic exchange takes a few rounds of dynamic send/recv and it is
susceptible to get interleaved when multiple threads are concurrently
trying to establish dynamic connections. The use of tag may not be
sufficient. Entering lock at ch4-level for the entire leader exchange
stage ensures the thread-safety.
To make the rules simpler, we require all netmod functions defined in
ofi_spawn.c and ucx_spawn.c to lock by caller at ch4-layer.
* add MPID_THREAD_ASSERT_IN_CS in all netmod spawn functions to ensure
we don't neglect the lock.
* replace and remove MPIDI_OFI_VCI_CALL macro.
* replace and remove MPIDIU_upids_to_lpids by directly call
MPIDI_NM_upids_to_lpids.
0 commit comments