mirror of
https://github.com/clearml/go-nvlib
synced 2025-04-05 13:24:57 +00:00
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:
parent
2e452cae6a
commit
d3874bda61
2
go.mod
2
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
|
||||
)
|
||||
|
4
go.sum
4
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=
|
||||
|
2
vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go
generated
vendored
2
vendor/github.com/NVIDIA/go-nvml/pkg/dl/dl.go
generated
vendored
@ -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())
|
||||
|
2
vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go
generated
vendored
2
vendor/github.com/NVIDIA/go-nvml/pkg/nvml/api.go
generated
vendored
@ -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
|
||||
}
|
||||
|
7
vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go
generated
vendored
7
vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go
generated
vendored
@ -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
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user