Pytorch C++ - Inverse not working - MAGMA

Posted on Github but no responses

I compiled Magma 2.3.0 from source successfully, and compiled Pytorch 1.1 from source successfully where it used Magma.

When I run my code with the Python API, torch.pinverse(Tensor) seems to work, but when I run it with the C++ Pytorch API torch::inverse(Tensor). it fails with

Error in magma_getdevice_arch: MAGMA not initialized (call magma_init() first) or bad device