add SKIP_GPU=true (#1203)

This commit is contained in:
henrygd
2025-09-25 14:10:28 -04:00
parent c790d76211
commit 4b43d68da6

View File

@@ -358,6 +358,9 @@ func (gm *GPUManager) startCollector(command string) {
// NewGPUManager creates and initializes a new GPUManager
func NewGPUManager() (*GPUManager, error) {
if skipGPU, _ := GetEnv("SKIP_GPU"); skipGPU == "true" {
return nil, nil
}
var gm GPUManager
if err := gm.detectGPUs(); err != nil {
return nil, err