fix nvmlDeviceGetGpcClkMinMaxVfOffset

This commit is contained in:
clore 2024-04-30 13:35:13 +00:00
parent 4712ff518f
commit c36dca841b
1 changed files with 5 additions and 3 deletions

View File

@ -4278,11 +4278,13 @@ def nvmlDeviceSetGpcClkVfOffset(device, offset):
_nvmlCheckReturn(ret)
return ret
def nvmlDeviceGetGpcClkMinMaxVfOffset(device, minOffset, maxOffset):
def nvmlDeviceGetGpcClkMinMaxVfOffset(device):
min_offset = c_uint32()
max_offset = c_uint32()
fn = _nvmlGetFunctionPointer("nvmlDeviceGetGpcClkMinMaxVfOffset")
ret = fn(device, minOffset, maxOffset)
ret = fn(device, byref(min_offset), byref(max_offset))
_nvmlCheckReturn(ret)
return ret
return min_offset.value, max_offset.value
def nvmlDeviceGetMemClkVfOffset(device):
offset = c_int32()