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

Fix for bytes/str discrepancy after PyNVML update #1118

Merged
merged 2 commits into from
Feb 15, 2023

Conversation

pentschev
Copy link
Member

A PyNVML update has changed how some objects were previously returned bytes but now return str, which is now handled appropriately with this change.

@pentschev pentschev requested a review from a team as a code owner February 15, 2023 10:37
@github-actions github-actions bot added the python python code needed label Feb 15, 2023
@pentschev pentschev added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Feb 15, 2023
@pentschev
Copy link
Member Author

Requires dask/distributed#7544 to be merged first.

Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane, thanks! Will keep an eye and merge when ready.

@wence-
Copy link
Contributor

wence- commented Feb 15, 2023

/merge

@rapids-bot rapids-bot bot merged commit 8134e6b into rapidsai:branch-23.04 Feb 15, 2023
wence- added a commit to wence-/dask-cuda that referenced this pull request Feb 22, 2023
PyNVML 11.5 makes a API-breaking change to the return types of (at
least) nvmlDeviceGetName (producing str rather than bytes). On the
development branch this was fixed by rapidsai#1118. To fix in 23.02, instead
pin to the previously working version, rather than backporting.
@wence- wence- mentioned this pull request Feb 22, 2023
raydouglass pushed a commit that referenced this pull request Feb 22, 2023
PyNVML 11.5 makes a API-breaking change to the return types of (at least) nvmlDeviceGetName (producing str rather than bytes). On the development branch this was fixed by #1118. To fix in 23.02, instead pin to the previously working version, rather than backporting.

Authors:
   - Lawrence Mitchell (https://github.com/wence-)

Approvers:
   - Ray Douglass (https://github.com/raydouglass)
wence- added a commit to wence-/dask-cuda that referenced this pull request Feb 24, 2023
Handling the str vs. bytes discrepancy should have been covered by
the changes in rapidsai#1118.
@pentschev pentschev deleted the fix-nvml-str branch February 28, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants