Skip to content

Commit

Permalink
wip: do not use _v2 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Aug 20, 2024
1 parent 8328766 commit 6c243c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvml/driver_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (n *nvmlDriver) DeviceInfoByUUID(uuid string) (*DeviceInfo, error) {
return nil, decode("failed to get device name", code)
}

memory, code := nvml.DeviceGetMemoryInfo_v2(device)
memory, code := nvml.DeviceGetMemoryInfo(device)
if code != nvml.SUCCESS {
return nil, decode("failed to get device memory info", code)
}
Expand Down Expand Up @@ -238,7 +238,7 @@ func (n *nvmlDriver) DeviceInfoAndStatusByUUID(uuid string) (*DeviceInfo, *Devic
return nil, nil, decode("failed to get device info", code)
}

mem, code := nvml.DeviceGetMemoryInfo_v2(device)
mem, code := nvml.DeviceGetMemoryInfo(device)
if code != nvml.SUCCESS {
return nil, nil, decode("failed to get device memory utilization", code)
}
Expand Down

0 comments on commit 6c243c3

Please sign in to comment.