Open leofang opened 2 weeks ago
Possible solutions include using weakref.finalize() (as you also suggested) cythonize everything, make all classes cdef'd, and switch from __del__ to __dealloc__ using a lightweight shutdown detection hack (see, e.g., https://github.com/numba/numba/issues/9731#issuecomment-2383856159 and https://github.com/numba/llvmlite/commit/7347d77e5a5494a96fe188108c52ceb8fe39f02c)
Possible solutions include
weakref.finalize()
cdef
__del__
__dealloc__
_Originally posted by @leofang in https://github.com/NVIDIA/cuda-python/pull/87#discussion_r1792740313_
See also https://github.com/NVIDIA/cuda-python/pull/87#discussion_r1793660730. This doesn't seem trivial to me by a curtesy look at the Python atexit docs...
atexit
Moving this to beta 2 and bumping to P0
_Originally posted by @leofang in https://github.com/NVIDIA/cuda-python/pull/87#discussion_r1792740313_