title: Tensorflow: Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file
body: <p>I've been trying to run tensorflow in my gpu for some long days but I've been not able to accomplish it.</p>
  <p>I know that there are several questions with similar questions but I've tried everything I found and it didn't work, so that is why I'm writting this question:</p>
  <p><a href="https://stackoverflow.com/questions/63199164/how-to-install-libcusolver-so-11">How to install libcusolver.so.11</a></p>
  <p><a href="https://stackoverflow.com/a/67642774/15098668">https://stackoverflow.com/a/67642774/15098668</a></p>
  <p>I've installed the drivers 460.106.00 and cuda 11.2 for the Nvidia GeForce RTX 3090:</p>
  <pre><code>+-----------------------------------------------------------------------------+
  | NVIDIA-SMI 460.106.00   Driver Version: 460.106.00   CUDA Version: 11.2     |
  |-------------------------------+----------------------+----------------------+
  | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
  | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
  |                               |                      |               MIG M. |
  |===============================+======================+======================|
  |   0  GeForce RTX 3090    On   | 00000000:08:00.0  On |                  N/A |
  | 33%   26C    P8    22W / 350W |    282MiB / 24260MiB |      2%      Default |
  |                               |                      |                  N/A |
  +-------------------------------+----------------------+----------------------+
                                                                                 
  +-----------------------------------------------------------------------------+
  | Processes:                                                                  |
  |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
  |        ID   ID                                                   Usage      |
  |=============================================================================|
  |    0   N/A  N/A      1264      G   /usr/lib/xorg/Xorg                 59MiB |
  |    0   N/A  N/A      3349      G   /usr/lib/xorg/Xorg                124MiB |
  |    0   N/A  N/A      3508      G   /usr/bin/gnome-shell               77MiB |
  |    0   N/A  N/A      6384      G   /usr/lib/firefox/firefox            4MiB |
  +-----------------------------------------------------------------------------+
  </code></pre>
  <p>The cudnn:</p>
  <pre><code>cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
  #define CUDNN_MAJOR 8
  #define CUDNN_MINOR 1
  #define CUDNN_PATCHLEVEL 1
  
  </code></pre>
  <p>And the GCC compiler:</p>
  <pre><code>gcc --version
  gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
  </code></pre>
  <p>I've also added the LD_LIRARY_PATH to ./bashrc</p>
  <pre><code># Nvidia cuda toolkit
  export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}
  export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
  export CUDA_HOME=/usr/local/cuda
  </code></pre>
  <p>I've tried several tensorflow and tensorflow-gpu versions, from 2.4 to 2.7, but in everyone fails with:</p>
  <pre><code>2022-01-24 21:28:43.206834: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
  </code></pre>
  <p>or</p>
  <pre><code>2022-01-24 21:28:44.087779: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087827: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcublas.so.11'; dlerror: libcublas.so.11: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087858: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcublasLt.so.11'; dlerror: libcublasLt.so.11: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087891: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcufft.so.10'; dlerror: libcufft.so.10: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087921: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcurand.so.10'; dlerror: libcurand.so.10: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087947: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file or directory
  2022-01-24 21:28:44.087975: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusparse.so.11'; dlerror: libcusparse.so.11: cannot open shared object file: No such file or directory
  </code></pre>
  <p>Thanks in advance, I dont know what more to try...</p>