[PR #287] [MERGED] fix: get CUDA device index in ascending order based on PCI addresses #402

Closed
opened 2026-10-15 13:00:18 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/wolf/pull/287
Author: @zexi
Created: 11/7/2025
Status: ✅ Merged
Merged: 11/16/2025
Merged by: @ABeltramo

Base: wolf-ui ← Head: get-cuda-id-by-render


📝 Commits (1)

  • 602a0f9 fix: get CUDA device index in ascending order based on PCI addresses

📊 Changes

1 file changed (+43 additions, -31 deletions)

View changed files

📝 src/gst-video-context/gst-video-context/gst-video-context.cpp (+43 -31)

📄 Description

Fix the issue: https://github.com/games-on-whales/wolf/issues/233#issuecomment-3471903432

I discovered that Wolf retrieves the cuda_device_id by reading the 'Device Minor' number, which appears to be the source of the problem. On my system, cuda_device_id shoud return in ascending order based on PCI addresses.

image image

🔄 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/games-on-whales/wolf/pull/287 **Author:** [@zexi](https://github.com/zexi) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/16/2025 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `wolf-ui` ← **Head:** `get-cuda-id-by-render` --- ### 📝 Commits (1) - [`602a0f9`](https://github.com/games-on-whales/wolf/commit/602a0f96dee4acef38aa9fcbc366e8e90cffae5d) fix: get CUDA device index in ascending order based on PCI addresses ### 📊 Changes **1 file changed** (+43 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `src/gst-video-context/gst-video-context/gst-video-context.cpp` (+43 -31) </details> ### 📄 Description Fix the issue: https://github.com/games-on-whales/wolf/issues/233#issuecomment-3471903432 I discovered that Wolf retrieves the cuda_device_id by reading the 'Device Minor' number, which appears to be the source of the problem. On my system, cuda_device_id shoud return in ascending order based on PCI addresses. <img width="920" height="385" alt="image" src="https://github.com/user-attachments/assets/79b30baf-76e8-4334-9462-7d0b9745caaf" /> <img width="965" height="167" alt="image" src="https://github.com/user-attachments/assets/eb70cbdd-5dba-42d0-aef2-be14ea3637df" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 13:00:18 +00:00
Sign in to join this conversation.
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
games-on-whales/wolf#402
No description provided.