How to verify CuDNN installation?

前端 未结 9 934
余生分开走
余生分开走 2020-11-29 15:02

I have searched many places but ALL I get is HOW to install it, not how to verify that it is installed. I can verify my NVIDIA driver is installed, and that CUDA is installe

9条回答
  •  抹茶落季
    2020-11-29 15:37

    Getting cuDNN Version [Linux]

    Use following to find path for cuDNN:

    cat $(whereis cudnn.h) | grep CUDNN_MAJOR -A 2
    

    If above doesn't work try this:

    cat $(whereis cuda)/include/cudnn.h | grep CUDNN_MAJOR -A 2
    

    Getting cuDNN Version [Windows]

    Use following to find path for cuDNN:

    C:\>where cudnn*
    C:\Program Files\cuDNN6\cuda\bin\cudnn64_6.dll
    

    Then use this to dump version from header file,

    type "%PROGRAMFILES%\cuDNN6\cuda\include\cudnn.h" | findstr "CUDNN_MAJOR CUDNN_MINOR CUDNN_PATCHLEVEL"
    

    Getting CUDA Version

    This works on Linux as well as Windows:

    nvcc --version
    

提交回复
热议问题