Hi,
I seem to find the solution to my own problem. After changing
atexit.register(context.pop)
to
atexit.register(context.detach)
in pycuda.autoinit.py, the error message doesn't come out again.
Is there any disadvantage of using context.detach instead of context.pop?
Daniel
Ying Wai (Daniel) Fan wrote:
Hi,
No long ago I have posted on this mailing list my wrapper of CUFFT in
ctypes. The wrapper works fine with GPUArray with no problem and gives
the correct output. But whenever I exit Python, I've got the following
error message:
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuCtxDestroy failed: invalid value
I have attached a minimal example leading to this error. Basically, I
just initialize PyCUDA, create a CUFFT plan, then destroy the plan and
exit. Does anyone knows how to get rid of that error message, or is it
ok to ignore this error?
Daniel
_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net