vllm - 💡(How to fix) Fix [BUG]: Detect presence of p2p enable gpus/driver, not just nvlink, to enable direct connection [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#39368Fetched 2026-04-09 07:51:32
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×1renamed ×1

Fix Action

Fix / Workaround

Using the patched driver from here https://github.com/aikitoria/open-gpu-kernel-modules on 4x 3090 gives me a free ~+10% performance.

should be a simple patch in def is_fully_connected(cls, physical_device_ids: list[int]) -> bool:

RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

with nvidia-smi topo -p2p r you can check if the gpus can talk to each other directly. as mentioned in this post, vllm does not check for this: https://www.reddit.com/r/LocalLLaMA/comments/1r66jyp/vllm_maximum_performance_on_multi3090/

Using the patched driver from here https://github.com/aikitoria/open-gpu-kernel-modules on 4x 3090 gives me a free ~+10% performance.

should be a simple patch in def is_fully_connected(cls, physical_device_ids: list[int]) -> bool:

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

Modify the is_fully_connected function to check for direct GPU communication using nvidia-smi topo -p2p r to potentially improve performance on multi-GPU setups.

Guidance

  • Investigate the nvidia-smi topo -p2p r command to understand its output and how it can be used to verify direct GPU communication.
  • Review the patched driver from the provided GitHub repository to understand the changes made to enable better performance on multi-GPU setups.
  • Consider modifying the is_fully_connected function to incorporate the nvidia-smi topo -p2p r check, potentially using the subprocess module to execute the command and parse its output.
  • Test the modified function with the patched driver to verify the performance improvement.

Example

import subprocess

def is_fully_connected(cls, physical_device_ids: list[int]) -> bool:
    # ... existing code ...
    # Execute nvidia-smi topo -p2p r and parse output to verify direct GPU communication
    output = subprocess.check_output(["nvidia-smi", "topo", "-p2p", "r"]).decode("utf-8")
    # ... parse output and update function logic ...

Notes

The provided information suggests that the current implementation of is_fully_connected does not account for direct GPU communication, which can impact performance on multi-GPU setups. However, the exact modifications required to the function are not specified and may require further investigation.

Recommendation

Apply workaround by modifying the is_fully_connected function to incorporate the nvidia-smi topo -p2p r check, as this may provide a performance improvement on multi-GPU setups.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING