title: cudnn error :: CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED
body: <p>I am trying to install a open-source software "openpose" for which I needed to install cuda, cudnn and nvidia drivers. Output of nvidia-smi is :</p>
  
  <pre><code>+-----------------------------------------------------------------------------+
  | NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
  |-------------------------------+----------------------+----------------------+
  | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
  | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
  |===============================+======================+======================|
  |   0  GeForce 940MX       Off  | 00000000:01:00.0 Off |                  N/A |
  | N/A   47C    P8    N/A /  N/A |    107MiB /  2004MiB |      7%      Default |
  +-------------------------------+----------------------+----------------------+
  
  +-----------------------------------------------------------------------------+
  | Processes:                                                       GPU Memory |
  |  GPU       PID   Type   Process name                             Usage      |
  |=============================================================================|
  |    0      1513      G   /usr/lib/xorg/Xorg                            63MiB |
  |    0      1698      G   /usr/bin/gnome-shell                          41MiB |
  +-----------------------------------------------------------------------------+
  
  </code></pre>
  
  <p>And output of <code>cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2</code> gives:</p>
  
  <pre><code>#define CUDNN_MAJOR 7
  #define CUDNN_MINOR 6
  #define CUDNN_PATCHLEVEL 5
  </code></pre>
  
  <p>After successfull installations of all the above softwares and libraries, I finally ran openpose
  with:</p>
  
  <pre><code>./build/examples/openpose/openpose.bin --video examples/media/video.avi
  </code></pre>
  
  <p>But the output was:</p>
  
  <pre><code>Starting OpenPose demo...
  Configuring OpenPose...
  Starting thread(s)...
  Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
  F0214 01:02:35.327615  3433 cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0)  CUDNN_STATUS_NOT_INITIALIZED
  *** Check failure stack trace: ***
      @     0x7fabb8f390cd  google::LogMessage::Fail()
      @     0x7fabb8f3af33  google::LogMessage::SendToLog()
      @     0x7fabb8f38c28  google::LogMessage::Flush()
      @     0x7fabb8f3b999  google::LogMessageFatal::~LogMessageFatal()
      @     0x7fabb89459d3  caffe::CuDNNConvolutionLayer&lt;&gt;::LayerSetUp()
      @     0x7fabb8a42308  caffe::Net&lt;&gt;::Init()
      @     0x7fabb8a441e0  caffe::Net&lt;&gt;::Net()
      @     0x7fabbaa2ccaa  op::NetCaffe::initializationOnThread()
      @     0x7fabbaa500a1  op::addCaffeNetOnThread()
      @     0x7fabbaa51518  op::PoseExtractorCaffe::netInitializationOnThread()
      @     0x7fabbaa57163  op::PoseExtractorNet::initializationOnThread()
      @     0x7fabbaa4be61  op::PoseExtractor::initializationOnThread()
      @     0x7fabbaa46a51  op::WPoseExtractor&lt;&gt;::initializationOnThread()
      @     0x7fabbaa8aff1  op::Worker&lt;&gt;::initializationOnThreadNoException()
      @     0x7fabbaa8b120  op::SubThread&lt;&gt;::initializationOnThread()
      @     0x7fabbaa8d2d8  op::Thread&lt;&gt;::initializationOnThread()
      @     0x7fabbaa8d4a7  op::Thread&lt;&gt;::threadFunction()
      @     0x7fabba32566f  (unknown)
      @     0x7fabb9a476db  start_thread
      @     0x7fabb9d8088f  clone
  Aborted
  
  </code></pre>
  
  <p>I have gone through a lot of online discussions but could not figure out how to resolve this.</p>