how do I update cuDNN to a newer version?
<p>the cuDNN installation manual says</p>

<blockquote>
  <p>ALL PLATFORMS</p>
  
  <p>Extract the cuDNN archive to a directory of your choice, referred to below as .
      Then follow the platform-specific instructions as follows.</p>
  
  <p>LINUX</p>
  
  <p>cd 
      export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH</p>
  
  <p>Add  to your build and link process by adding -I to your compile
      line and -L -lcudnn to your link line.</p>
</blockquote>

<p>It seems that it simply adds <code>pwd</code> to <code>LD_LIBRARY_PATH</code>, so I guess just replacing the files in <code>pwd</code> will do the update. </p>

<p>But it seems not that simple as after I've done this I got a complaint from Theano saying</p>

<blockquote>
  <p>cuDNN Version is too old. Update to v5, was 3007.</p>
</blockquote>