WSL环境下TensorFlow无法加载libcudnn_cnn_infer.so.8求助
WSL环境下TensorFlow GPU训练报错求助
我按照TensorFlow官方pip安装指南在WSL环境完成安装,过程顺利且系统已识别到GPU,但运行基于Keras构建的简单卷积神经网络时出现问题:
加载TensorFlow时的警告
2023-04-14 16:49:19.416633: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
我理解TensorRT只是优化工具,并非TensorFlow GPU加速的必需组件,但不确定该理解是否正确。
NUMA相关提示
Your kernel may have been built without NUMA support. 2023-04-14 16:49:20.660159: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
训练时的错误
网络能完成编译,但开始训练时出现以下错误:
2023-04-14 16:49:23.948656: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8600 Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory Aborted
已尝试的解决方案
我尝试了论坛上找到的以下操作:
/usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link Firstly, cd /usr/lib/wsl/lib/ backup "libcuda.so.1" and "libcuda.so", and rm -r libcuda.so.1 rm -r libcuda.so Then, ln -s libcuda.so.1.1 libcuda.so.1 ln -s libcuda.so.1.1 libcuda.so sudo ldconfig done.
但执行后反而引发更多错误,恳请提供帮助。
内容的提问来源于stack exchange,提问作者jmannhei
相关产品推荐
相关产品推荐

