Skip to content

Commit

Permalink
opal/common/ofi: refactor NIC selection logic
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
wenduwan committed Aug 22, 2023
1 parent 8514e71 commit f5f3b93
Showing 1 changed file with 199 additions and 212 deletions.
Loading

0 comments on commit f5f3b93

Please sign in to comment.