initial nvml collector

This commit is contained in:
henrygd
2025-12-20 18:20:20 -05:00
parent f6ab5f2af1
commit ea354ec030
7 changed files with 326 additions and 14 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
}