【发布时间】:2019-06-03 07:43:52
【问题描述】:
我有一个配备 NVIDIA GeForce GTX 980 Ti 的系统。我安装了 tensorflow,并使用 tf.test.gpu_device_name() 查找 gpu 设备。看起来它找到了 gpu,但随后显示“添加可见 gpu 设备:0”
>>> import tensorflow as tf
>>> tf.test.gpu_device_name()
2019-01-08 10:01:12.589000: I tensorflow/core/platform/cpu_feature_guard.cc:141]
Your CPU supports instructions that this TensorFlow binary was not compiled to
use: AVX2
2019-01-08 10:01:12.855000: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1
432] Found device 0 with properties:
name: GeForce GTX 980 Ti major: 5 minor: 2 memoryClockRate(GHz): 1.228
pciBusID: 0000:01:00.0
totalMemory: 6.00GiB freeMemory: 5.67GiB
2019-01-08 10:01:12.862000: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1
511] Adding visible gpu devices: 0
【问题讨论】:
-
设备为
0... 检测到。 -
但它没有被使用。在另一个系统(相同的 GPU)上,它以“创建的 Tensorflow 设备(/device:GPU:0 with 75MB memory)-> 物理 GPU(设备:0,名称 GeForce GTX 980 Ti,pci 总线 ID:0000:01:00.0,计算能力:5.2"
-
tensorflow.org/guide/using_gpu 这就是你在 tensorflow 中使用 gpu 所需要知道的一切
标签: tensorflow