-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Is cupy.cuda.runtime
set to None too early during interpreter shutdown?
#2658
Comments
Couldn't reproduce with python 3.7.3 |
What's the Cython version that you used? I am on 0.29.14. |
0.29.13 |
Still see the error with Python |
Have you tried python 3.7.x? |
Sorry that was a typo. I tried 3.7.3. 😅 |
I still have no idea why this happened. I tested it on a DGX-2, which runs pre-installed Ubuntu 18.04 and CUDA 10.0 that come with the machine. My conda env was set up using Closing this issue as it apparently involves some unknown env conflicts, and it actually already happened on this machine since CuPy v6.1.0, so definitely not master's fault. @emcastillo Thanks for helping me test it! Let me know if you have any thought for how to diagnose. I'll also report back if I resolve it. (For the record, the last time I encountered the same error was in #2475.) |
Reopen as a dup of #2777. |
@emcastillo I confirm that #2809 fixed the error. Thanks! |
python -c 'import cupy; cupy.show_config()'
)Tested with a fresh build on the latest master in a fresh conda environment.
I don't think I've seen this error before. Looks like
runtime
is set toNone
whenstream.__del__()
is invoked, but this is unexpected because, according to PEP 442, starting at Python 3.4 the modules unloaded during interpreter shutdown are no longer set toNone
, and I'm on Python 3.6.7.Can this be reproduced? Thanks.
The text was updated successfully, but these errors were encountered: