Bump github.com/NVIDIA/go-nvml

Bumps [github.com/NVIDIA/go-nvml](https://github.com/NVIDIA/go-nvml) from 0.12.0-1.0.20231020145430-e06766c5e74f to 0.12.0-2.
- [Commits](https://github.com/NVIDIA/go-nvml/commits/v0.12.0-2)

---
updated-dependencies:
- dependency-name: github.com/NVIDIA/go-nvml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2024-01-23 13:07:41 +00:00
committed by GitHub
parent 2e452cae6a
commit d3874bda61
6 changed files with 7 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ func (dl *DynamicLibrary) Lookup(symbol string) error {
var pointer unsafe.Pointer
if err := withOSLock(func() error {
// Call dlError() to clear out any previous errors.
dlError()
_ = dlError()
pointer = C.dlsym(dl.handle, sym)
if pointer == nil {
return fmt.Errorf("symbol %q not found: %w", symbol, dlError())

View File

@@ -31,7 +31,7 @@ type dynamicLibrary interface {
Close() error
}
// Interface represents the interace for the NVML library.
// Interface represents the interface for the NVML library.
type Interface interface {
GetLibrary() Library
}

View File

@@ -160,12 +160,7 @@ func (pis ProcessInfo_v1Slice) ToProcessInfoSlice() []ProcessInfo {
func (pis ProcessInfo_v2Slice) ToProcessInfoSlice() []ProcessInfo {
var newInfos []ProcessInfo
for _, pi := range pis {
info := ProcessInfo{
Pid: pi.Pid,
UsedGpuMemory: pi.UsedGpuMemory,
GpuInstanceId: pi.GpuInstanceId,
ComputeInstanceId: pi.ComputeInstanceId,
}
info := ProcessInfo(pi)
newInfos = append(newInfos, info)
}
return newInfos