Skip to content

Make GPU Feature Discovery more robust to device failures - #1561

Closed
elezar wants to merge 6 commits into
NVIDIA:mainfrom
elezar:skip-errors-in-gfd
Closed

Make GPU Feature Discovery more robust to device failures#1561
elezar wants to merge 6 commits into
NVIDIA:mainfrom
elezar:skip-errors-in-gfd

Conversation

@elezar

@elezar elezar commented Dec 10, 2025

Copy link
Copy Markdown
Member

When enumerating devices, a single device that has errors causes GFD to fail -- skipping any remaining devices. This manifests as errors similar to:

E1105 17:45:39.017442       1 main.go:110] error creating labeler: error getting devices: error getting device handle for index '0': Unknown Error

This change pulls in changes from go-nvlib (vendored in locally) (see NVIDIA/go-nvlib#80), that allow errors in enumerating devices to be ignored and ensures that the device lib is constructed with the required option. A simple unit test demonstrates how these errors are handled to ensure that labels are still generated.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar force-pushed the skip-errors-in-gfd branch from 04b8a45 to 74b7cb7 Compare December 10, 2025 14:16
func newGFDRunner(cfg *Config, nvmllib nvml.Interface, vgpul vgpu.Interface, config *spec.Config) (*gfd, error) {
devicelib := device.New(nvmllib)
devicelib := device.New(nvmllib,
// TODO: Do we want to expose this as a config option?

@klueska klueska Dec 12, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You mean as a flag / envvar to the CLI / in the config file?

@rajatchopra

Copy link
Copy Markdown
Contributor

@elezar This PR needs to be rebased. And is it ready to move out from Draft state?
The use of WithIgnoreVisitDevicesErrors seems prudent. PR looks good to me as is.

@elezar

elezar commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

Closing this. Feel free to reopen / restore if required.

@elezar elezar closed this Jul 20, 2026
@elezar
elezar deleted the skip-errors-in-gfd branch July 20, 2026 13:25
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