[PR #740] fix: get_nvlink_gbs may return 0 as a divisor #745

Open
opened 2026-10-27 21:05:49 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepEP/pull/740
Author: @cxxlink
Created: 8/27/2026
Status: 🔄 Open

Base: main ← Head: fix_div_0


📝 Commits (1)

  • 7f6280c fix: get_nvlink_gbs may return 0 as a divisor

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 deep_ep/buffers/elastic.py (+9 -1)

📄 Description

Problem

Function get_nvlink_gbs returns zero and unprotected is used as a divisor.

Root cause

The result of command "nvidia-smi nvlink -s" execution is empty, if the environment does not support nvink.

Fix

Add protection before division.

Validation

Protection takes effect before division.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepEP/pull/740 **Author:** [@cxxlink](https://github.com/cxxlink) **Created:** 8/27/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix_div_0` --- ### 📝 Commits (1) - [`7f6280c`](https://github.com/deepseek-ai/DeepEP/commit/7f6280c845ccfb50af7d2a6c966f6d1d1c52fdef) fix: get_nvlink_gbs may return 0 as a divisor ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `deep_ep/buffers/elastic.py` (+9 -1) </details> ### 📄 Description # Problem Function get_nvlink_gbs returns zero and unprotected is used as a divisor. # Root cause The result of command "**nvidia-smi nvlink -s**" execution is empty, if the environment does not support nvink. # Fix Add protection before division. # Validation Protection takes effect before division. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#745
No description provided.