Expand description
ibverbs-specific device selection: pairs a MemoryLocation with the
RDMA NIC(s) that have the best PCIe path to it.
Enums§
- IbvDevice
Target - What an
IbvConfigtargets: a memory location (whose best NIC is auto-selected) or an explicit NIC by name. - Peer
Device Affinity Policy - Which of a peer’s NICs a local NIC is allowed to pair with for a transfer.
Functions§
- get_
cuda_ device_ to_ ibv_ devices - The NICs of backend
Ifor each CUDA runtime ordinal, indexed by ordinal. - get_
pci_ address - The PCI address of an RDMA NIC, resolved from its sysfs device link
(
/sys/class/infiniband/<name>/device). - resolve_
target - Resolves an
IbvDeviceTargetto a single NIC of backendI: the named device forIbvDeviceTarget::Nic, or the best NIC for a memory location. Both arms are scoped to backendI, so a name belonging to a different backend resolves toOk(None). - select_
optimal_ ibv_ devices - The NIC(s) of backend
Iwith the best path tolocation, ranked byPciPath::is_better_than(most local, then highest port-capped bandwidth) and returning all that tie for best.