PyCuda in Blender

I’m trying to use PyCuda inside a blender script, but I get a segmentation fault(under Linux) every time.
The minimal failing code is very simple:


import pycuda.autoinit

I suppose this is happening due to there already being a CUDA context, which I don’t know how to get around. Maybe someone had this issue already?