gpt4 book ai didi

docker - Tensorflow应用程序卡住在Docker容器中

转载 作者:行者123 更新时间:2023-12-02 19:36:06 25 4
gpt4 key购买 nike

我有一个tensorflow应用程序,可以在ubuntu 16.04中正常运行,但是当我尝试在带有nvidia-docker的tensorflow / tensorflow docker镜像中运行它时,它到了这一点然后冻结:

2017-07-12 22:06:10.917255: W 
tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow
library wasn't compiled to use SSE4.1 instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-12 22:06:10.917289: W
tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow
library wasn't compiled to use SSE4.2 instructions, but these are
available on your machine and could speed up CPU computations.
2017-07-12 22:06:11.023765: I
tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:901] successful
NUMA node read from SysFS had negative value (-1), but there must be
at least one NUMA node, so returning NUMA node zero
2017-07-12 22:06:11.024133: I
tensorflow/core/common_runtime/gpu/gpu_device.cc:887] Found device 0
with properties:
name: Quadro M4000
major: 5 minor: 2 memoryClockRate (GHz) 0.7725
pciBusID 0000:00:05.0
Total memory: 7.93GiB
Free memory: 7.87GiB
2017-07-12 22:06:11.024159: I
tensorflow/core/common_runtime/gpu/gpu_device.cc:908] DMA: 0
2017-07-12 22:06:11.024168: I
tensorflow/core/common_runtime/gpu/gpu_device.cc:918] 0: Y
2017-07-12 22:06:11.024190: I
tensorflow/core/common_runtime/gpu/gpu_device.cc:977] Creating
TensorFlow device (/gpu:0) -> (device: 0, name: Quadro M4000, pci
bus id: 0000:00:05.0)

由于它没有输出错误消息,所以我不知道从哪里开始。对我可能缺少的任何建议或进一步解决此问题的步骤?

我验证了我的nvidia-docker安装是否正常运行。

最佳答案

事实证明该应用程序正在运行,它似乎已冻结,因为在Docker容器中运行的python应用程序的输出往往会卡在缓冲区中,而永远不会显示在docker日志中。为了解决这个问题,我将-u传递给python-我现在可以在docker日志中看到应用程序的输出,一切都很好。

关于docker - Tensorflow应用程序卡住在Docker容器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45068455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com