CUDA Extension: ImportError

I want to re-write the following CUDA extension, previously written for pytorch 0.4.0 and CUDA 8, to work with pytorch 1.1.0 and CUDA 10.

At the moment I get the following error…

ImportError: dynamic module does not define module export function

I do not really know how much I have to change to get it to work.


Did you ever find out what the problem was?
I basically have the same problem and it seems to originate from Cython but I haven’t been able to solve it yet.