Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0

Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0,第1张

CUDA Toolkit 11.0 Download | NVIDIA Developer

wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
sudo sh cuda_11.0.2_450.51.05_linux.run

接下来: First, find out where the "libcudart.so.11.0" is: 
locate libcudart.so.11.0
Second, add the path to environment file:
sudo vim /etc/profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.0/targets/x86_64-linux/lib
source /etc/profile

运行成功后可以看到:

2022-03-12 07:38:34.386165: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0

参考:

https://github.com/tensorflow/tensorflow/issues/45930https://github.com/tensorflow/tensorflow/issues/45930

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/925800.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-16
下一篇 2022-05-16

发表评论

登录后才能评论

评论列表(0条)

保存