[Seek Help] 显卡驱动,510驱动安装成功,cuda 10.1也安装成功,gpu测试出错
Tofloor
poster avatar
nobody
deepin
2022-08-26 23:22
Author
import tensorflow as tf
2022-08-26 14:46:22.302129: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
physical_devices = tf.config.experimental.list_physical_devices("GPU")
2022-08-26 14:46:24.941863: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib
2022-08-26 14:46:24.941892: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
2022-08-26 14:46:24.941914: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: uos-PC
2022-08-26 14:46:24.941919: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: uos-PC
2022-08-26 14:46:24.941974: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into this program
2022-08-26 14:46:24.942007: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 510.60.2

没有 libcuda.so.1 ,求助

Reply Favorite View the author
All Replies
Ziggy
deepin
2022-08-27 01:55
#1

cuda要装对应驱动版本的,去nvidia官网查

Reply View the author
littlebat
deepin
2022-08-27 19:22
#2

搜索一下 libcuda.so.1 所在的目录,把目录加入环境变量 LD_LIBRARY_PATH

Reply View the author