我是ML的新手。所以别对我那么苛刻。
我在项目中使用TensorFlow,每次运行代码时,都会收到以下错误消息:2023-02-23 13:17:55.003041: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:2b:00.0/numa_node Your kernel may have been built without NUMA support.
该消息在控制台中重复了几次,并且还提到内核可能没有使用NUMA支持进行构建。但是,当我检查我的/sys/bus/pci/devices目录时,我找不到错误消息中提到的目录0000:2b:00.0。相反,我看到以下目录:74fd:00:00.0 a5cb:00:00.0 c4db:00:00.0 e718:00:00.0 f908:00:00.0
我使用的是Windows 11/WSL 2,tensorflow==2.11,python3.9,cudnn==8.1.0.77,nvidia-cudnn==8.2.0.51,cudatoolkit==11.2.2,nvidia-cuda-nvrtc==11.3.58,nvidia-cuda-runtime==11.3.58
有人知道为什么我得到这个错误消息,我可以做些什么来解决它?任何帮助将不胜感激。先谢谢你了!
1条答案
按热度按时间hs1ihplo1#
正如@Dr.这些只是信息性消息,不会中断代码执行。

但是,请验证您是否正确遵循了安装tensorflow的所有步骤。
另外,请安装与Tensorflow 2.11兼容的特定版本的CUDA和cuDNN,以便在系统中启用GPU支持。
请参考此测试的构建配置。