I downloaded the nightly build of libtorch and the code is simply building a printing an Identity matrix.
I followed the tutorial to a T(had to make a small change in cuda.cmake though, changes cudnn.h to cudnn_version.h ,probably that does not matter though)
provided the CMAKE_PREFIX_PATH and everything
I downloaded and extracted it to - /home/atharva/torch/libtorch/(LIbraries here)