Commit f5f3b93
committed
opal/common/ofi: refactor NIC selection logic
This patch refactors the OFI NIC selection logic. It foremost improves
the NIC search algorithm. Instead of searching for the closest NICs on
the system, this patch directly compares the distances of the given
providers and selects the nearest NIC.
This change also makes it explicit that if the process is unbound, or
the distance cannot be reliably calculated, a provider will be selected
in round-robin fashion.
Signed-off-by: Wenduo Wang <[email protected]>1 parent 8514e71 commit f5f3b93
1 file changed
+199
-212
lines changed
0 commit comments