Skip to content

Commit 0f6a75e

Browse files
authored
Merge pull request #65 from rajatchopra/bumpnvlib
update nvlib to v0.10.0, nvml to v0.13.0-1
2 parents ddc6eae + b887bff commit 0f6a75e

15 files changed

Lines changed: 2028 additions & 475 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/NVIDIA/go-gpuallocator
33
go 1.20
44

55
require (
6-
github.com/NVIDIA/go-nvlib v0.7.3
7-
github.com/NVIDIA/go-nvml v0.12.9-0
6+
github.com/NVIDIA/go-nvlib v0.10.0
7+
github.com/NVIDIA/go-nvml v0.13.0-1
88
github.com/stretchr/testify v1.11.1
99
)
1010

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
github.com/NVIDIA/go-nvlib v0.7.3 h1:kXc8PkWUlrwedSpM4fR8xT/DAq1NKy8HqhpgteFcGAw=
2-
github.com/NVIDIA/go-nvlib v0.7.3/go.mod h1:i95Je7GinMy/+BDs++DAdbPmT2TubjNP8i8joC7DD7I=
3-
github.com/NVIDIA/go-nvml v0.12.9-0 h1:e344UK8ZkeMeeLkdQtRhmXRxNf+u532LDZPGMtkdus0=
4-
github.com/NVIDIA/go-nvml v0.12.9-0/go.mod h1:+KNA7c7gIBH7SKSJ1ntlwkfN80zdx8ovl4hrK3LmPt4=
1+
github.com/NVIDIA/go-nvlib v0.10.0 h1:2jbAFmvLBntIc/4iUChI9DzxyYNI92pohXU4kFuNrg0=
2+
github.com/NVIDIA/go-nvlib v0.10.0/go.mod h1:7mzx9FSdO9fXWP9NKuZmWkCwhkEcSWQFe2tmFwtLb9c=
3+
github.com/NVIDIA/go-nvml v0.13.0-1 h1:OLX8Jq3dONuPOQPC7rndB6+iDmDakw0XTYgzMxObkEw=
4+
github.com/NVIDIA/go-nvml v0.13.0-1/go.mod h1:+KNA7c7gIBH7SKSJ1ntlwkfN80zdx8ovl4hrK3LmPt4=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
66
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=

internal/links/pciinfo.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ type PciInfo nvml.PciInfo
3434
func (p PciInfo) BusID() string {
3535
var pbytes []byte
3636
for _, b := range p.BusId {
37-
// #nosec G115
38-
if byte(b) == '\x00' {
37+
if b <= 0 {
3938
break
4039
}
41-
// #nosec G115
42-
pbytes = append(pbytes, byte(b))
40+
pbytes = append(pbytes, byte(b)) // nolint: unconvert
4341
}
4442
id := strings.ToLower(string(pbytes))
4543

vendor/github.com/NVIDIA/go-nvlib/pkg/nvlib/device/device.go

Lines changed: 53 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/NVIDIA/go-nvlib/pkg/nvlib/device/mig_profile.go

Lines changed: 82 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)