Skip to content

Commit b006f0f

Browse files
committed
convert busId to int8 instead of uint8
The PciInfo struct has been updated to use int8 for BusId as opposed to uint8 as part of the sync of go-nvml with CUDA 13.1 Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent 969fff0 commit b006f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/nvlib/device/device_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
func pciInfoWithBusID(busID string) nvml.PciInfo {
2929
var info nvml.PciInfo
3030
for i := 0; i < len(busID) && i < len(info.BusId); i++ {
31-
info.BusId[i] = uint8(busID[i])
31+
info.BusId[i] = int8(busID[i])
3232
}
3333
return info
3434
}

0 commit comments

Comments
 (0)