There was an error while loading. Please reload this page.
1 parent 0681732 commit 5b47670Copy full SHA for 5b47670
1 file changed
lib/resources/gpu.go
@@ -22,8 +22,9 @@ type GPUResourceStatus struct {
22
func GetGPUStatus(ctx context.Context) *GPUResourceStatus {
23
framework, vfs, err := devices.DiscoverVGPU()
24
if err != nil {
25
+ // A failed vGPU probe must not hide passthrough GPUs from status reporting.
26
logger.FromContext(ctx).WarnContext(ctx, "failed to discover vGPU state", "error", err)
- return nil
27
+ return getPassthroughStatus()
28
}
29
if framework != devices.VGPUFrameworkNone {
30
return getVGPUStatus(ctx, framework, vfs)
0 commit comments