fix nvmlDeviceGetGpcClkMinMaxVfOffset
This commit is contained in:
parent
4712ff518f
commit
c36dca841b
|
@ -4278,11 +4278,13 @@ def nvmlDeviceSetGpcClkVfOffset(device, offset):
|
||||||
_nvmlCheckReturn(ret)
|
_nvmlCheckReturn(ret)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def nvmlDeviceGetGpcClkMinMaxVfOffset(device, minOffset, maxOffset):
|
def nvmlDeviceGetGpcClkMinMaxVfOffset(device):
|
||||||
|
min_offset = c_uint32()
|
||||||
|
max_offset = c_uint32()
|
||||||
fn = _nvmlGetFunctionPointer("nvmlDeviceGetGpcClkMinMaxVfOffset")
|
fn = _nvmlGetFunctionPointer("nvmlDeviceGetGpcClkMinMaxVfOffset")
|
||||||
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
|
||||||
|
|
||||||
def nvmlDeviceGetMemClkVfOffset(device):
|
def nvmlDeviceGetMemClkVfOffset(device):
|
||||||
offset = c_int32()
|
offset = c_int32()
|
||||||
|
|
Loading…
Reference in New Issue