Skip to content

Commit 5b47670

Browse files
committed
Fall back to passthrough status when vGPU discovery fails
1 parent 0681732 commit 5b47670

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/resources/gpu.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ type GPUResourceStatus struct {
2222
func GetGPUStatus(ctx context.Context) *GPUResourceStatus {
2323
framework, vfs, err := devices.DiscoverVGPU()
2424
if err != nil {
25+
// A failed vGPU probe must not hide passthrough GPUs from status reporting.
2526
logger.FromContext(ctx).WarnContext(ctx, "failed to discover vGPU state", "error", err)
26-
return nil
27+
return getPassthroughStatus()
2728
}
2829
if framework != devices.VGPUFrameworkNone {
2930
return getVGPUStatus(ctx, framework, vfs)

0 commit comments

Comments
 (0)