Skip to content

Fix GPU device discovery failed error#214

Merged
JeniferC99 merged 1 commit intorocm7.2_internal_testingfrom
fix-gpu-discovery-error
Feb 12, 2026
Merged

Fix GPU device discovery failed error#214
JeniferC99 merged 1 commit intorocm7.2_internal_testingfrom
fix-gpu-discovery-error

Conversation

@ahsan-ca
Copy link
Collaborator

Description

Skip non-PCI DRM card entries in DetectGpuSysfsPaths by checking
for the existence of device/vendor in sysfs before including a card
in the discovery results.
This fixes errors similar to the following error:
GPU device discovery failed:
Failed to open file: "/sys/class/drm/card26/device/vendor"

Motivation and Context

@ahsan-ca ahsan-ca requested a review from apwojcik February 11, 2026 05:14
@ahsan-ca ahsan-ca self-assigned this Feb 11, 2026
Copy link
Collaborator

@apwojcik apwojcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an ONNXRuntime Core change. Please submit a separate PR for the official repository. Microsoft may have additional requests regarding this PR.

@JeniferC99 JeniferC99 merged commit 1472efb into rocm7.2_internal_testing Feb 12, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants