File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ //go:build (linux || windows) && (amd64 || arm64)
2+
13package agent
24
35import (
Original file line number Diff line number Diff line change 1- //go:build linux
1+ //go:build linux && (amd64 || arm64)
22
33package agent
44
55import (
6+ "log/slog"
67 "os"
78 "path/filepath"
89 "strings"
910
1011 "github.com/ebitengine/purego"
11- "log/slog"
1212)
1313
1414func openLibrary (name string ) (uintptr , error ) {
Original file line number Diff line number Diff line change 1- //go:build !linux && !windows
1+ //go:build ( !linux && !windows) || (!amd64 && !arm64)
22
33package agent
44
55import "fmt"
66
7+ type nvmlCollector struct {
8+ gm * GPUManager
9+ }
10+
11+ func (c * nvmlCollector ) init () error {
12+ return fmt .Errorf ("nvml not supported on this platform" )
13+ }
14+
15+ func (c * nvmlCollector ) start () {}
16+
17+ func (c * nvmlCollector ) collect () {}
18+
719func openLibrary (name string ) (uintptr , error ) {
820 return 0 , fmt .Errorf ("nvml not supported on this platform" )
921}
Original file line number Diff line number Diff line change 1- //go:build windows
1+ //go:build windows && (amd64 || arm64)
22
33package agent
44
You can’t perform that action at this time.
0 commit comments