diff --git a/pynvml/nvml.py b/pynvml/nvml.py index 6174672..e0f6183 100644 --- a/pynvml/nvml.py +++ b/pynvml/nvml.py @@ -4300,11 +4300,13 @@ def nvmlDeviceSetMemClkVfOffset(device, offset): _nvmlCheckReturn(ret) return ret -def nvmlDeviceGetMemClkMinMaxVfOffset(device, minOffset, maxOffset): +def nvmlDeviceGetMemClkMinMaxVfOffset(device): + min_offset = c_uint32() + max_offset = c_uint32() fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset") - 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 ## GPM ## #########