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
nvrtc.nvrtcCompileProgram is changing the preferred encoding from UTF-8 to ANSI_X3.4-1968 #29
Comments
This sounds like an issue of NVRTC rather than CUDA Python. The issue was also reproducible in CuPy built without CUDA Python. >>> import locale, cupy
>>> locale.getpreferredencoding()
'UTF-8'
>>> cupy.arange(10)
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> locale.getpreferredencoding()
'ANSI_X3.4-1968' Env: CUDA 11.8 / Ubuntu 20.04 |
Good to know, I have filed a bug to Nvidia now, let's see. |
Just to give a small update. By discussing the issue with Nvidia we found out that it is possible to The causes of the bug are still unknown and I will report when I have any other news. |
Since this is a bug outside of CUDA Python, I'll close this issue. Thanks for sharing that workaround. If there's a link you can share for where this bug is being tracked, I'm sure folks would appreciate it. |
Here is the link to the bug report: https://developer.nvidia.com/nvidia_bug/3833924 Thank you again for your help |
Any updates here? It is indeed a bug in NVRTC, specifically
Compile with
I'm a bit confused about the statement " |
Dear developers,
I found out that calling the NVRTC for compilation is changing the preferred encoding for the current Python instance.
For more details and to reproduce the issue, please refer to this StackOverflow question.
Do you have an idea on why this happens, and how it is possible to revert the preferred encoding to its original setting?
Thank you in advance
The text was updated successfully, but these errors were encountered: