map_reduce.py example: AttributeError: 'NoneType' object has no attribute 'eventDestroy'
See original GitHub issueWhen running examples/streams/map_reduce.py, I get the following:
elapsed time 0.12984609603881836
total bytes 167778304
total bytes 167778304
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC0572E8>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057278>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057208>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057198>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057128>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC0570B8>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057048>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC04DEF0>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC04DF28>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057358>>
Traceback (most recent call last):
File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Conditions: CuPy Version : 7.2.0 CUDA Root : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0 CUDA Build Version : 10010 CUDA Driver Version : 10010 CUDA Runtime Version : 10010 cuBLAS Version : 10200 cuFFT Version : 10010 cuRAND Version : 10010 cuSOLVER Version : (10, 1, 0) cuSPARSE Version : 10010 NVRTC Version : (10, 1) cuDNN Build Version : 7605 cuDNN Version : 7605 NCCL Build Version : None NCCL Runtime Version : None
I’ve had the same results on two different computers (Windows and Linux, both cupy 7.2.0)
Code to reproduce cupy/examples/streams/map_reduce.py - no changes
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
2020年11月_weixin_39928736的博客
clover configurator_枯木逢春,用Clover让老电脑从NVME SSD启动再用叁年没问题,python format 字典_python 用字典格式化字符串,python背诵技巧_python历史背诵,devc++ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Event
did not had the fix applied …Chatted with a few colleagues and it seems we’re not alone. h5py had similar shutdown issues (see e.g., https://github.com/h5py/h5py/issues/534). I was told they resolved by holding a hard reference to the needed module/function, but for the moment I can’t find the PR/code snippet that does this. Will ask if needed.
Another ref: https://docs.python.org/3/library/weakref.html#comparing-finalizers-with-del-methods Not sure whether this is a better, permanent solution or not.