我已经安装了tensorflow的gpu版本,但是当我尝试导入它时,我收到以下错误消息:
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:116] Couldn't open CUDA library libcuda.so.1. LD_LIBRARY_PATH: usr/local/cuda-8.0/lib64
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:165] hostname: sep-GS60-2QE
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into this program
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:193] kernel reported version is: Permission denied: could not open driver version path for reading: /proc/driver/nvidia/version
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1066] LD_LIBRARY_PATH: usr/local/cuda-8.0/lib64
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1067] failed to find libcuda.so on this system: Failed precondition: could not dlopen DSO: libcuda.so.1; dlerror: libnvidia-fatbinaryloader.so.367.57: cannot open shared object file: No such file or directory
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcurand.so.8.0 locally
我已经关注了tensorflow网站上的安装指南,并确保我已正确安装了Cuda和CudNN。
我已尝试从我在系统中找到的libcuda.so
创建sym-links,如同在nvidia网站上的其他帖子中所建议的cuda目录,但他们没有帮助。
我还将〜/ .bashrc中的参数设置为export LD_LIBRARY_PATH="usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
和export CUDA_HOME="/usr/local/cuda"
,但仍然没有运气:(。
如果有人能帮助我对它进行排序,那将是最有帮助的,因为它是我的项目中运行代码的关键部分。
答案 0 :(得分:1)
您键入的LD_LIBRARY_PATH
中存在拼写错误,并且读取张量流量。我看到您有usr/local/cuda...
而不是/usr/local/cuda
(请注意路径开头的/
)
通常,对我来说,使用nvidia的runfile安装程序安装cuda后,以下LD_LIBRARY_PATH就足够了。
export LD_LIBRARY_PATH=/usr/local/cuda:/usr/local/cuda/lib64:$LD_LIBRARY_PATH