[PR #36] read_sm_rates: filter by UUID on multi-GPU hosts and probe the device minor #93

Open
opened 2026-10-31 06:56:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/36
Author: @d4mer
Created: 10/25/2026
Status: 🔄 Open

Base: main ← Head: sm-rates-multigpu


📝 Commits (1)

  • 579d25a read_sm_rates: filter by UUID on multi-GPU hosts and probe the minor

📊 Changes

1 file changed (+18 additions, -4 deletions)

View changed files

📝 tools/read_sm_rates.py (+18 -4)

📄 Description

Summary

Two assumptions in tools/read_sm_rates.py break on hosts with more than one GPU:

  1. The identity check required exactly one GPU system-wide; now it requires exactly one GPU matching the supplied UUID.
  2. /dev/nvidia0 was assumed to be the requested card. The nvidia-smi index does not always equal the /dev/nvidiaN minor, and the minor assignment need not follow PCI ascending order. The main entry point now probes minors 0–15 until the RM device allocation succeeds.

Verified live

Dual-GPU host (RTX 5060 Ti + RTX 4060 Ti): the 4060 Ti was nvidia-smi index 1 but /dev/nvidia0 minor 0 on one boot, and the Blackwell card fails the RM allocation outright (status 0x1b), so the first successful minor is unambiguously the requested Ada card. The full make test suite (29 tests, 3 skipped) passes against this branch, including the mocked SmRateProbeTests.


🔄 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/JustAResearcher/gpu-unlock-ada/pull/36 **Author:** [@d4mer](https://github.com/d4mer) **Created:** 10/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sm-rates-multigpu` --- ### 📝 Commits (1) - [`579d25a`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/579d25aaa8f1b6d8238089ee736d4e64b967d794) read_sm_rates: filter by UUID on multi-GPU hosts and probe the minor ### 📊 Changes **1 file changed** (+18 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/read_sm_rates.py` (+18 -4) </details> ### 📄 Description ## Summary Two assumptions in `tools/read_sm_rates.py` break on hosts with more than one GPU: 1. The identity check required exactly one GPU **system-wide**; now it requires exactly one GPU **matching the supplied UUID**. 2. `/dev/nvidia0` was assumed to be the requested card. The nvidia-smi index does not always equal the `/dev/nvidiaN` minor, and the minor assignment need not follow PCI ascending order. The main entry point now probes minors 0–15 until the RM device allocation succeeds. ## Verified live Dual-GPU host (RTX 5060 Ti + RTX 4060 Ti): the 4060 Ti was nvidia-smi index 1 but `/dev/nvidia0` minor 0 on one boot, and the Blackwell card fails the RM allocation outright (status `0x1b`), so the first successful minor is unambiguously the requested Ada card. The full `make test` suite (29 tests, 3 skipped) passes against this branch, including the mocked `SmRateProbeTests`. --- <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
JustAResearcher/gpu-unlock-ada#93
No description provided.