ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory
From the template it looks like you are installing **TensorFlow** (TF) prebuilt binaries:
   * For TF-GPU - See point 1
   * For TF-CPU - See point 2
-----------------------------------------------------------------------------------------------
**1. Installing **TensorFlow-GPU** (TF) prebuilt binaries**

Make sure you are using compatible TF and CUDA versions. Please refer following TF version and CUDA version compatibility table.
| TF  | CUDA |
| :-------------: | :-------------: |
| 2.5.0  | 11.2 |
| 2.4.0  | 11.0 |
| 2.1.0 - 2.3.0  | 10.1 |
| 1.13.1 - 2.0  | 10.0  |
| 1.5.0 - 1.12.0 | 9.0 |

  * If you have above configuration and using _**Windows**_ platform -
    * Try adding the CUDA, CUPTI, and cuDNN installation directories to the %PATH% environment variable.
    * Refer [windows setup guide](https://www.tensorflow.org/install/gpu#windows_setup).
  * If you have above configuration and using _**Ubuntu/Linux**_ platform -
    * Try adding the CUDA, CUPTI, and cuDNN installation directories to the $LD_LIBRARY_PATH environment variable.
    * Refer [linux setup guide](https://www.tensorflow.org/install/gpu#linux_setup).
  * If error still persists then, apparently your CPU model does not support AVX instruction sets.
    * Refer [hardware requirements](https://www.tensorflow.org/install/pip#hardware-requirements).

-----------------------------------------------------------------------------------------------
**2. Installing **TensorFlow** (TF) CPU prebuilt binaries**

*TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets.*

Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
Apparently, your CPU model does not support AVX instruction sets. You can still use TensorFlow with the alternatives given below:

   * Try Google Colab to use TensorFlow.
      * The easiest way to use TF will be to switch to [google colab](https://colab.sandbox.google.com/notebooks/welcome.ipynb#recent=true). You get pre-installed latest stable TF version. Also you can use ```pip install```  to install any other preferred TF version.
      * It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task.
      * All you need is a good internet connection and you are all set.
   * Try to build TF from sources by changing CPU optimization flags.

*Please let us know if this helps.*
 Hi @KaushalNaresh ,

Could you please confirm the TF version you are using? 

Could you please refer to the similar issues attached here [#5344](https://github.com/tensorflow/tensorflow/issues/5343) and [#4944](https://github.com/BVLC/caffe/issues/4944).

If you are using TF1.0.* supported CUDA version is CUDA-8 and it seems you have installed CUDA 12.2 which is not compatible. Please refer to tested configurations [here](https://www.tensorflow.org/install/source#gpu).



tensorflow_gpu-1.0.0 | 2.7, 3.3-3.6 | GCC 4.8 | Bazel 0.4.2 | 5.1 | 8
-- | -- | -- | -- | -- | --


Also 1.x versions not supported now and hence request you to use latest versions of Tf2.x.

Thanks!


 Hi I was using tf-gpu 1.0.1 because I was trying to replicate one old repository.

I will try to install compatible TF for my CUDA but the link you have provided doesn't have CUDA 12.2 so can you point me out the correct version of tf-gpu that goes well with my CUDA??

Thanks Hi @KaushalNaresh ,

For the tf-gpu 1.0.1 version required CUDA version has to be CUDA 8 and cuDNN 5.1 versions.

Because TF documentation instruction updates and keep them for latest stable release only.

You may refer to [Nvidia](https://developer.nvidia.com/cuda-80-ga2-download-archive) website for this or can search in internet for same.Since the version is too old I am not sure of official instructions at that time.

Thanks!

 Hi,

I am not asking the CUDA version for tf-gpu 1.0.1. 

I have a CUDA version 12.2 but the link that you have provided doesnt list tf for CUDA version 12.2 Can you point me out the correct version of tf that goes well with my CUDA (12.2)? Hi @KaushalNaresh ,

Tensorflow users has to follow tested [configurations](https://www.tensorflow.org/install/source#gpu) mentioned in documentation. Each version of TF will be tested with some CUDA and cuDNN versions and users has to install those versions only as other advanced versions are yet to test with TF and may raise compatibility issues.

For latest version(TF2.13) CUDA 11.8 is the tested version hence CUDA>11.8 may raise compatibility issues.Hence you have to stick to the tested configurations only. In future versions TF might be tested with CUDA 12.2 also but for now you need to use tested configurations only.

Thanks!

 This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61250">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61250">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

1.0.1

### Custom code

Yes

### OS platform and distribution

Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.6

### Bazel version

_No response_

### GCC/compiler version

9.4.0

### CUDA/cuDNN version

nvcc --version gives 10.1 nvidia-smi gives CUDA Version: 12.2 

### GPU model and memory

_No response_

### Current behavior?

ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory

### Standalone code to reproduce the issue

```shell
This error occured when I imported tensorflow
import tensorflow as tf

To resolve this issue I have set my $CUDA_HOME=/usr/lib/cuda/
and $LD_LIBRARY_PATH=usr/lib/cuda/lib64

But surprisingly usr/lib/cuda/lib64 is empty. I dont have cuda folder in usr/local directory.
```


### Relevant log output

```shell
Traceback (most recent call last):
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 72, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/nkaushal/anaconda3/envs/lipnet3.6/lib/python3.6/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory


Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
```
