How to verify CuDNN installation?

前端 未结 9 918
余生分开走
余生分开走 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
    
    0 讨论(0)
  • 2020-11-29 15:46

    When installing on ubuntu via .deb you can use sudo apt search cudnn | grep installed

    0 讨论(0)
  • 2020-11-29 15:47

    Run ./mnistCUDNN in /usr/src/cudnn_samples_v7/mnistCUDNN

    Here is an example:

    cudnnGetVersion() : 7005 , CUDNN_VERSION from cudnn.h : 7005 (7.0.5)
    Host compiler version : GCC 5.4.0
    There are 1 CUDA capable devices on your machine :
    device 0 : sms 30  Capabilities 6.1, SmClock 1645.0 Mhz, MemSize (Mb) 24446, MemClock 4513.0 Mhz, Ecc=0,    boardGroupID=0
    Using device 0
    
    0 讨论(0)
提交回复
热议问题