Skip to content
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

PyNVML returns not supported error on 550 driver #982

Closed
rjzamora opened this issue Aug 23, 2023 · 0 comments · Fixed by #983
Closed

PyNVML returns not supported error on 550 driver #982

rjzamora opened this issue Aug 23, 2023 · 0 comments · Fixed by #983
Labels
bug Something isn't working

Comments

@rjzamora
Copy link
Member

Users are seeing the following error with newer (550) drivers:

 File "/home/lab/miniconda3/envs/rapids-23.06-3.9/lib/python3.9/site-packages/pynvml/nvml.py", line 765, in _nvmlCheckReturn
    raise NVMLError(ret)
pynvml.nvml.NVMLError_NotSupported: Not Supported

...

 File "/home/lab/miniconda3/envs/rapids-23.06-3.9/lib/python3.9/site-packages/ucp/__init__.py", line 68, in <module>
    bar1_total = pynvml.nvmlDeviceGetBAR1MemoryInfo(handle).bar1Total
  File "/home/lab/miniconda3/envs/rapids-23.06-3.9/lib/python3.9/site-packages/pynvml/nvml.py", line 2070, in nvmlDeviceGetBAR1MemoryInfo
    _nvmlCheckReturn(ret)

It has been confirmed offline that pynvml is correctly returning NVMLError_NotSupported for nvmlDeviceGetBAR1MemoryInfo, because this device does not support Bar1 accesss.

The ucp/__init__.py logic should be updated to account for a NVMLError_NotSupported exception.

@rjzamora rjzamora added the bug Something isn't working label Aug 23, 2023
@rapids-bot rapids-bot bot closed this as completed in #983 Aug 24, 2023
rapids-bot bot pushed a commit that referenced this issue Aug 24, 2023
Closes #982

Authors:
  - Richard (Rick) Zamora (https://github.com/rjzamora)
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Peter Andreas Entschev (https://github.com/pentschev)

URL: #983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant