mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1270] [CLOSED] [TE/topology]Implement PCIe Root Complex detection for optimal GPU-InfiniBand pairing #2122
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#2122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1270
Author: @luketong777
Created: 12/24/2025
Status: ❌ Closed
Base:
main← Head:add_pcie_root📝 Commits (4)
4711f93Add PCIe root complex aware HCA selectionffad9d0fix func getCommonParent081fe99fix func discoverCudaTopologyfc13492Format: Adjust code formatting for clang-format compliance📊 Changes
1 file changed (+79 additions, -2 deletions)
View changed files
📝
mooncake-transfer-engine/src/topology.cpp(+79 -2)📄 Description
Description
This feature identifies and determines whether GPU devices and InfiniBand (IB) devices are located under the same PCIe Root Complex.
The isSamePcieRootComplex function determines whether two PCI devices are under the same root complex
Uses getCommonParent and isPciRootComplex functions for path analysis
In the discoverCudaTopology function, prioritizes IB devices that share the same PCIe root with the GPU
Establishes mapping relationships from GPUs to optimal IB devices to optimize data transfer paths
Type of Change
How Has This Been Tested?
I have tested the PCIe root identification functionality using simulated parameters, covering basic functional scenarios and edge cases. However, this feature still requires validation testing in a real hardware environment where GPU and IB devices are located under the same PCIe root complex.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.