From d3874bda618f034e8cb05853ec869ac2249e8591 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jan 2024 13:07:41 +0000 Subject: [PATCH] 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] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go | 2 +- vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go | 2 +- vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go | 7 +------ vendor/modules.txt | 2 +- 6 files changed, 7 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index f8f048f..a38ffd8 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/NVIDIA/go-nvlib go 1.20 require ( - github.com/NVIDIA/go-nvml v0.12.0-1.0.20231020145430-e06766c5e74f + github.com/NVIDIA/go-nvml v0.12.0-2 github.com/google/uuid v1.5.0 github.com/stretchr/testify v1.8.4 ) diff --git a/go.sum b/go.sum index 5ce2d76..8330e37 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/NVIDIA/go-nvml v0.12.0-1.0.20231020145430-e06766c5e74f h1:FTblgO87K1vPB8tcwM5EOFpFf6UpsrlDpErPm25mFWE= -github.com/NVIDIA/go-nvml v0.12.0-1.0.20231020145430-e06766c5e74f/go.mod h1:7ruy85eOM73muOc/I37euONSwEyFqZsv5ED9AogD4G0= +github.com/NVIDIA/go-nvml v0.12.0-2 h1:Sg239yy7jmopu/cuvYauoMj9fOpcGMngxVxxS1EBXeY= +github.com/NVIDIA/go-nvml v0.12.0-2/go.mod h1:7ruy85eOM73muOc/I37euONSwEyFqZsv5ED9AogD4G0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go b/vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go index 1ae0bf6..34948a7 100644 --- a/vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go +++ b/vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go @@ -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()) diff --git a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go index f1489fb..4885e8e 100644 --- a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go +++ b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go @@ -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 } diff --git a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go index 6e7737c..4d5eb8e 100644 --- a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go +++ b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go @@ -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 diff --git a/vendor/modules.txt b/vendor/modules.txt index 28c9165..2fae8be 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/NVIDIA/go-nvml v0.12.0-1.0.20231020145430-e06766c5e74f +# github.com/NVIDIA/go-nvml v0.12.0-2 ## explicit; go 1.15 github.com/NVIDIA/go-nvml/pkg/dl github.com/NVIDIA/go-nvml/pkg/nvml