-
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
nvmlDeviceGetName throws UnicodeDecodeError invalid start byte #53
Comments
Same error in WSL2. @rjzamora @XuehaiPan |
This repository is a wrong place. It's not where NVIDIA's pynvml lives. |
This is weird. I have reproduced this with latest pynvml, latest NVidia drivers, wsl2. I get this for the
Note the 5-byte pattern repeating itself, the length of the string is 60. On the host windows I get
I don't see the connection between the two results. Maybe a bug in the NVidia drivers v555.85 ? |
|
Right. I can confirm this also happens in
|
I posted to a NVidia forum https://forums.developer.nvidia.com/t/nvmldevicegetname-problem-in-wsl-on-windows/294491 but am not optimistic. The other postings there do not see much traffic. |
Thanks all for engaging. I'll do my best to find someone who can help - Sorry for the delay. |
Small Update: This issue has been escalated to the NVML team and the fix has been merged into the upcoming r560 driver branch. I do not believe there are plans to re-release the short-lived r555 branch. |
Running the following code on WSL2 throws the error mentioned in the title:
Stacktrace:
Whereas
nvidia-smi
command returns info without issues:If I try to decode the output of
nvmlDeviceGetName
using utf-16 codec, this is the string:'闸膠\uf88e肑要郸膐\uf889낑ꂀ釸膠\uf8a5ꂜ꾁駸膐\uf8a3ꂔꂀ雸膀\uf894낌ꂀ軸肐グ'
pynvml version 11.5.0
The text was updated successfully, but these errors were encountered: