Commit 1365116
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]>
(cherry picked from commit f5f3b93)1 parent 2ba4104 commit 1365116
1 file changed
+200
-212
lines changed
0 commit comments