I am using CUDA from python via python’s ctypes interface. Strangely, when I upgraded to 3.2 I get a segmentation fault when any of my programs end. This also seems to occur in 3.1 but not in 3.0. A minimal example to replicate the behaviour is as follows:
I am using CUDA from python via python’s ctypes interface. Strangely, when I upgraded to 3.2 I get a segmentation fault when any of my programs end. This also seems to occur in 3.1 but not in 3.0. A minimal example to replicate the behaviour is as follows:
Did you ever find the solution to this problem? I am having the same problem with python 2.6.4. All the code executed just fine, but when python exits, there is a segmentation fault. this is a simple test case that triggers it:
Well I’m not really sure why this happened, but it seems to have something to do with python cleaning up after the CUDA C call. If you use pycuda to do some initialization it works, at least for me. Again, I’m not really sure why.