【发布时间】:2019-04-16 21:50:20
【问题描述】:
我按照本教程使用 conda (https://www.pugetsystems.com/labs/hpc/The-Best-Way-to-Install-TensorFlow-with-GPU-Support-on-Windows-10-Without-Installing-CUDA-1187/) 安装了 tf-gpu,它工作正常,因为我在打印的日志中看到“...gpu:0”。在我安装之前,我已经安装了CUDA驱动,所以我不确定。
在我看来 conda install tensorflow-gpu 带有 cuda 工具包和 cuDNN 等。我想知道安装 CUDA 驱动程序是否是必需的步骤。我发现的另一篇文章也没有提到驱动程序 (https://towardsdatascience.com/tensorflow-gpu-installation-made-easy-use-conda-instead-of-pip-52e5249374bc)。但是官方GPU指南说这是必需的,所以我很困惑。我在 Windows 10 上做。
【问题讨论】:
-
根据我在 linux 上的经验,
conda install cuda不会安装 GPU 驱动程序。并且需要 GPU 驱动程序才能使用 CUDA GPU。在 Windows 上,在许多情况下,Windows 会自动安装 GPU 驱动程序,例如适用于典型的 WDDM GPU,如 GeForce GPU。这个驱动与conda安装的工具包版本是否兼容可能无法保证,但我认为一般是兼容的。
标签: python tensorflow cuda deep-learning