本文主要是介绍Could not load library libcudnn_cnn_infer.so.8,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错:
Could not load library libcudnn_cnn_infer.so.8. Error:
/root/miniconda3/lib/python3.10/site-packages/torch/lib/libcudnn_cnn_infer.so.8: undefined symbol:
_ZNK10cask_cudnn14BaseKernelInfo18minorCCVCompatibleENS_8SafeEnumINS_47ComputeCapabilityVersion_ENUMCLASS_SCOPEWRAPPEREEE, version libcudnn_cnn_infer.so.8
说我的libcudnn_cnn_infer.so.8
库找不到,看一下是否存在:
ldconfig -p | grep libcudnn_cnn_infer.so.8
libcudnn_cnn_infer.so.8 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8
存在,说明是没链接上,加软连接。
ls /lib/x86_64-linux-gnu/libcudnn_cnn_infer*
/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so /lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.6.0 /lib/x86_64-linux-gnu/libcudnn_cnn_infer_static_v8.a
/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8 /lib/x86_64-linux-gnu/libcudnn_cnn_infer_static.a
ln -sf /lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.6.0 /root/miniconda3/lib/python3.10/site-packages/torch/lib/libcudnn_cnn_infer.so.8
ref: https://blog.csdn.net/qq_37700257/article/details/134312228
这篇关于Could not load library libcudnn_cnn_infer.so.8的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!