add experimental nvml gpu collector (#1522)

This commit is contained in:
henrygd
2025-12-21 17:10:42 -05:00
parent f6ab5f2af1
commit 2bd85e04fc
7 changed files with 341 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
//go:build !linux && !windows
package agent
import "fmt"
func openLibrary(name string) (uintptr, error) {
return 0, fmt.Errorf("nvml not supported on this platform")
}
func getNVMLPath() string {
return ""
}
func hasSymbol(lib uintptr, symbol string) bool {
return false
}
func (c *nvmlCollector) isGPUActive(bdf string) bool {
return true
}