My environment as below:
Install CUDA 11.2 and cuDNN cudnn-11.2-linux-x64-v8.1.0.77.tgz on an Ubuntu 20.04
Python3.7
Tensorflow 2.5.0
Start python and import tensorflow and run the command below to check for GPUs on your system.
import tensorflow as tf
tf.config.list_physical_devices(‘GPU’)
[PhysicalDevice(name=‘/physical_device:GPU:0’, device_type=‘GPU’)]
Error detail when running the below command:
sudo systemctl status sample.service
…
5月 18 16:38:44 ThinkStation-xxx gunicorn[9496]: 2022-05-18 16:38:44.665290: E tensorflow/stream_executor/cuda/cuda_driver.cc:328] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
…
月 18 16:38:44 ThinkStation-xxx gunicorn[9496]: 2022-05-18 16:38:44.665354: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into thi>
5月 18 16:38:44 ThinkStation-xxx gunicorn[9496]: 2022-05-18 16:38:44.665371: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 460.106.0