Hey I just upgraded to libtorch 2.0, but it says that it compiles with USE_CUDNN = 0, and will compile without cudnn support. I did not change anything on my codebase including CMAKEFile. I am wondering anyone else experiencing this?
Could you describe your workflow a bit more?
Are you trying to build
libtorch or an application based on
export USE_CUDNN=1 work?
I directly downloaded the Libtorch from Pytorch front page: https://pytorch.org/ .
Then libtorch is integrated into my C++ codebase via CMake
Cuda can be found, but the configuration stage of building tells that build using USE_CUDNN=0, and
exporting USE_CUDNN=1 does not work
Same error message after upgrading to libtorch2.0:
USE_CUDNN is set to 0. Compiling without cuDNN support
although it does not seem to change anything in practice since cuda is available, and libtorch does run on the GPU.
In my case, I still have cuda 11.5 and cudnn8.4 so it may be the cause if the error message
I encountered the same issue after upgrading to pytorch 2.0
CAFFE2_USE_CUDNN=1 solved it for me.
The relevant cmake code where pytorch searchs for cudnn is located here: https://github.com/pytorch/pytorch/blob/87f9160b6727ba554520bbd9f8905c7cf3c8654a/cmake/public/cuda.cmake#LL239C21-L239C21