Skip to content

Commit 6ca73d9

Browse files
elezarclaude
andcommitted
Default to nvml strategy when platform cannot be detected
When the device discovery strategy is "auto" but no supported platform is detected, default to "nvml" instead of returning the unresolved "auto" value. Log a warning so that the fallback is visible in the device plugin output. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Evan Lezar <[email protected]>
1 parent 22499fe commit 6ca73d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/nvidia-device-plugin/plugin-manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,6 @@ func resolveStrategy(strategy string, infolib info.Interface) string {
104104
case info.PlatformTegra:
105105
return "tegra"
106106
}
107-
return strategy
107+
klog.Warning("Unsupported platform detected; defaulting to nvml")
108+
return "nvml"
108109
}

0 commit comments

Comments
 (0)