fix nvmlDeviceGetMemClkMinMaxVfOffset

This commit is contained in:
clore 2024-05-23 12:44:26 +00:00
parent 19561d95ce
commit 04dc283681
1 changed files with 5 additions and 3 deletions

View File

@ -4300,11 +4300,13 @@ def nvmlDeviceSetMemClkVfOffset(device, offset):
_nvmlCheckReturn(ret) _nvmlCheckReturn(ret)
return ret return ret
def nvmlDeviceGetMemClkMinMaxVfOffset(device, minOffset, maxOffset): def nvmlDeviceGetMemClkMinMaxVfOffset(device):
min_offset = c_uint32()
max_offset = c_uint32()
fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset") fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset")
ret = fn(device, minOffset, maxOffset) ret = fn(device, byref(min_offset), byref(max_offset))
_nvmlCheckReturn(ret) _nvmlCheckReturn(ret)
return ret return min_offset.value, max_offset.value
## GPM ## ## GPM ##
######### #########