Yeah would be interested! For the moment I

Compile a shared library with my pytorch stuff (nicely in CMAKE)
have a quick and dirty solution for compiling the mex files via direct compiler command but that’s super ugly.

Do you have an example?
Forwarding works for me. if I can help, let me know.