-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When failing on NVMLError exception, bug in handling #37
Comments
Thanks for raising an issue @qwertAsc - Can you provide a full reproducer here? How are you getting the handle? For example, here is how I would expect someone to use In [1]: import pynvml
In [2]: pynvml.nvmlInit()
In [3]: handle = pynvml.nvmlDeviceGetHandleByIndex(0)
In [4]: pynvml.nvmlDeviceGetSupportedMemoryClocks(handle)
Out[4]: [7001, 6501, 5001, 810, 405] |
Thanks @rjzamora when runnning your example I get the following |
Thanks for the info! Are you passing a query string to Also, can you specify the version of CUDA you are using and wheter you happen to be using MIG support? |
No, i am not passing any query string |
have the same issue while running nvidia_smi.getInstance().DeviceQuery()
|
When failing on this line in smi.py with exception
nvmlDeviceGetSupportedMemoryClocks(handle)
following line fails with this error - "TypeError: list indices must be integers or slices, not str"
except NVMLError as err:
supportedClocks['Error'] = nvidia_smi.__handleError(err)
because supportedClocks defines as list
The text was updated successfully, but these errors were encountered: