FWIW, I had the same problem as @elmarculino but I could solve it by installing my own MAGMA library.
Installing PyTorch with DEBUG=1 and running under gdb revealed that there was a problem with a MAGMA-related function (see https://pastebin.com/tpb28w7V 4 ). So I removed the conda package magma-cuda92, installed MAGMA 7.3.0 from source, recompiled and it worked.