我刚刚在我的windows上安装了一个Linux子系统,并且能够验证我可以在tensorflow中连接到我的GPU(请参阅我的问题:GPU unavailable tensorflow in jupyter notebook using ubuntu).我尝试运行GANs模型,但每当我预测新图像时,我的jupyter内核就会死亡(我在下面提供了终端输出)。
我正在运行Tensorflow v2.12.0和Cuda 11.3.58
2023-03-29 10:40:36.194790: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-29 10:40:36.690448: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-03-29 10:40:37.609649: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:37.625212: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:37.625255: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:37.626900: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:37.626949: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:37.626979: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:38.273806: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:38.274180: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:38.274215: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1722] Could not identify NUMA node of platform GPU id 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-03-29 10:40:38.274403: 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
Your kernel may have been built without NUMA support.
2023-03-29 10:40:38.274534: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 2042 MB memory: -> device: 0, name: Quadro T2000, pci bus id: 0000:01:00.0, compute capability: 7.5
2023-03-29 10:40:40.439728: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8600
Could not load library libcudnn_cnn_train.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
[I 10:40:43.009 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
WARNING:root:kernel a03feebf-dd7a-41b4-9a9f-0333c160f338 restarted
我试过卸载tensorflow并重新安装它。我使用anaconda安装所有内容,但我不太确定anaconda是如何工作的。所以我很确定在某个地方有一个路径搞砸了。此外,我不是开发人员,所以请随意和我交谈,就像我是5岁一样,否则我不会明白lol。
1条答案
按热度按时间7rfyedvj1#
CUDA 11.3.58
与TensorFlow 2.12.0
不兼容。请检查此测试的构建配置。请安装与
TensorFlow version 2.12
兼容的CUDA 11.8
和CuDNN 8.6
。另外,请重新验证您是否正确遵循了此链接中提到的所有步骤,以在系统中启用GPU支持。