【发布时间】:2019-04-30 17:20:53
【问题描述】:
我的笔记本电脑是 Thinkpad T470P,它似乎有双 GPU——一个是集成英特尔高清显卡 630,另一个是 GeForce 940MX。
我安装了 CUDA 版本。 10.1 在这台机器上成功了,现在我想在 Tensorflow 中运行一个培训。我想知道训练使用的是哪个 GPU,所以我尝试了这个:
from tensorflow.python.client import device_lib
device_lib.list_local_devices()
这就是我得到的:
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 17770480900406893487, name: "/device:GPU:0"
device_type: "GPU"
memory_limit: 1462163865
locality {
bus_id: 1
links {
}
}
incarnation: 5306128727345722238
physical_device_desc: "device: 0, name: GeForce 940MX, pci bus id: 0000:02:00.0, compute capability: 5.0"]
我只是好奇为什么会有两个化身?一个名称为/device:GPU:0,另一个名称为GeForce 940MX。
据我所知,CUDA 和 tensorflow 是否真的只能在 GeForce 上运行,因为 CUDA 甚至不支持集成 GPU?
在这种情况下,如何指定要在 GeForce 940MX 上运行的 tensorflow?由于有两个名称,我不确定它们是否指的是不同的 GPU。非常感谢您的意见!
【问题讨论】:
标签: tensorflow keras gpu