Skip to content

Commit 084fc30

Browse files
authored
Merge pull request #1388 from NVIDIA/dependabot/go_modules/main/github.com/NVIDIA/go-nvml-0.13.0-1
Bump github.com/NVIDIA/go-nvml from 0.12.9-0 to 0.13.0-1
2 parents 15ff327 + cc86d3a commit 084fc30

File tree

13 files changed

+1211
-442
lines changed

13 files changed

+1211
-442
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ toolchain go1.24.1
66

77
require (
88
github.com/NVIDIA/go-gpuallocator v0.6.0
9-
github.com/NVIDIA/go-nvlib v0.7.4
10-
github.com/NVIDIA/go-nvml v0.12.9-0
9+
github.com/NVIDIA/go-nvlib v0.8.0
10+
github.com/NVIDIA/go-nvml v0.13.0-1
1111
github.com/NVIDIA/nvidia-container-toolkit v1.17.8
1212
github.com/fsnotify/fsnotify v1.9.0
1313
github.com/google/renameio v1.0.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
github.com/NVIDIA/go-gpuallocator v0.6.0 h1:2PA2swx59gJYREPkZNTGtyCP6Pnz3WEgnYsXlRkyvkk=
22
github.com/NVIDIA/go-gpuallocator v0.6.0/go.mod h1:c+Yspg+/QxWOmoSQeuI48Z/7nS+mMPtxyj1NYUTwewY=
3-
github.com/NVIDIA/go-nvlib v0.7.4 h1:qnXK8qhm45YfxalhZ76XwKdAMmxz1GIgzE0e/Hhhshs=
4-
github.com/NVIDIA/go-nvlib v0.7.4/go.mod h1:i95Je7GinMy/+BDs++DAdbPmT2TubjNP8i8joC7DD7I=
5-
github.com/NVIDIA/go-nvml v0.12.9-0 h1:e344UK8ZkeMeeLkdQtRhmXRxNf+u532LDZPGMtkdus0=
6-
github.com/NVIDIA/go-nvml v0.12.9-0/go.mod h1:+KNA7c7gIBH7SKSJ1ntlwkfN80zdx8ovl4hrK3LmPt4=
3+
github.com/NVIDIA/go-nvlib v0.8.0 h1:vorMvnsJYvZaxiluSXFd+fIFeQFPWSiSjNPiJyvDs0c=
4+
github.com/NVIDIA/go-nvlib v0.8.0/go.mod h1:bV+OEgjJCbFXf5T8c082mVPFuiF+gKwf9CMT7DWGUBI=
5+
github.com/NVIDIA/go-nvml v0.13.0-1 h1:OLX8Jq3dONuPOQPC7rndB6+iDmDakw0XTYgzMxObkEw=
6+
github.com/NVIDIA/go-nvml v0.13.0-1/go.mod h1:+KNA7c7gIBH7SKSJ1ntlwkfN80zdx8ovl4hrK3LmPt4=
77
github.com/NVIDIA/nvidia-container-toolkit v1.17.8 h1:ndE23TKvQBicsZT88mzZudygn6JNOe6+UsIgqk6gGvw=
88
github.com/NVIDIA/nvidia-container-toolkit v1.17.8/go.mod h1:khOgMW80+g8eX/1zPlO4demLShHht9I0YEm8ngcPgwk=
99
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=

internal/rm/helper.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616

1717
package rm
1818

19-
// int8Slice wraps an []int8 with more functions.
20-
type int8Slice []int8
19+
// uint8Slice wraps an []uint8 with more functions.
20+
type uint8Slice []uint8
2121

22-
// String turns a nil terminated int8Slice into a string
23-
func (s int8Slice) String() string {
22+
// String turns a nil terminated uint8Slice into a string
23+
func (s uint8Slice) String() string {
2424
var b []byte
2525
for _, c := range s {
2626
if c == 0 {
2727
break
2828
}
29-
b = append(b, byte(c))
29+
b = append(b, c)
3030
}
3131
return string(b)
3232
}

internal/rm/nvml_devices.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (d nvmlDevice) GetNumaNode() (bool, int, error) {
155155
}
156156

157157
// Discard leading zeros.
158-
busID := strings.ToLower(strings.TrimPrefix(int8Slice(info.BusId[:]).String(), "0000"))
158+
busID := strings.ToLower(strings.TrimPrefix(uint8Slice(info.BusId[:]).String(), "0000"))
159159

160160
b, err := os.ReadFile(fmt.Sprintf("/sys/bus/pci/devices/%s/numa_node", busID))
161161
if err != nil {

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

Lines changed: 27 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-nvml/pkg/nvml/const.go

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

0 commit comments

Comments
 (0)