title: Nvidia NVML Driver/library version mismatch
body: <p>When I run <code>nvidia-smi</code>, I get the following message:</p>
  <blockquote>
  <p>Failed to initialize NVML: Driver/library version mismatch</p>
  </blockquote>
  <p>An hour ago I received the same message and uninstalled my CUDA library and I was able to run <code>nvidia-smi</code>, getting the following result:</p>
  <p><a href="https://i.stack.imgur.com/RyAeQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RyAeQ.png" alt="nvidia-smi-result" /></a></p>
  <p>After this I downloaded <code>cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb</code> from <a href="https://developer.nvidia.com/cuda-downloads" rel="noreferrer">the official NVIDIA page</a> and then simply:</p>
  <pre class="lang-none prettyprint-override"><code>sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
  sudo apt-get update
  sudo apt-get install cuda
  export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
  </code></pre>
  <p>Now I have CUDA installed, but I get the mentioned mismatch error.</p>
  <hr />
  <p>Some potentially useful information:</p>
  <p>Running <code>cat /proc/driver/nvidia/version</code> I get:</p>
  <pre class="lang-none prettyprint-override"><code>NVRM version: NVIDIA UNIX x86_64 Kernel Module  378.13  Tue Feb  7 20:10:06 PST 2017
  GCC version:  gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
  </code></pre>
  <p>I'm running Ubuntu 16.04.2 LTS (Xenial Xerus).</p>
  <p>The kernel release is 4.4.0-66-generic.</p>