简体   繁体   English

在 python 中安装 tensorflow-gpu 所需的最低硬件组件

[英]Minimum required hardware component to install tensorflow-gpu in python

I'm tried many PC with different hardware capability to install tensorflow on gpu, they are either un-compatible or compatible but stuck in some point.我尝试了许多具有不同硬件功能的 PC 在 gpu 上安装 tensorflow,它们要么不兼容,要么兼容,但在某些方面卡住了。 I would like to know the minimum hardware required to install tensorflow-gpu.我想知道安装 tensorflow-gpu 所需的最低硬件。 And also I would like to ask about some hardware, Is they are allowed or not: Can I use core i5 instead of core i7 ??另外我想问一些硬件,它们是否被允许:我可以使用核心 i5 而不是核心 i7 吗?? Is 4 GB gpu enough for training the dataset?? 4 GB gpu 足以训练数据集吗?? Is 8 GB ram enough for training and evaluating the dataset ?? 8 GB 内存足以训练和评估数据集吗?? with most thanks.非常感谢。

TensorFlow (TF) GPU 1.6 and above requires cuda compute capability (ccc) of 3.5 or higher and requires AVX instruction support. TensorFlow (TF) GPU 1.6 及更高版本需要 3.5 或更高的 cuda 计算能力 (ccc) 并需要 AVX 指令支持。
https://www.tensorflow.org/install/gpu#hardware_requirements .https://www.tensorflow.org/install/gpu#hardware_requirementshttps://www.tensorflow.org/install/pip#hardware-requirements .https://www.tensorflow.org/install/pip#hardware-requirements

Therefore you would want to buy a graphics card that has ccc above 3.5.因此,您会想要购买 ccc 高于 3.5 的显卡。 Here's a link that shows ccc for various nvidia graphic cards https://developer.nvidia.com/cuda-gpus .这是一个链接,显示了各种 nvidia 显卡的 ccc https://developer.nvidia.com/cuda-gpus

However if your cuda compute capability is below 3.5 you have to compile TF from sources yourself.但是,如果您的 cuda 计算能力低于 3.5,您必须自己从源代码编译 TF。 This procedure may or may not work depending on the build flags you choose while compiling and is not straightforward.此过程可能会或可能不会起作用,具体取决于您在编译时选择的构建标志,并且并不简单。 In my humble opinion, The simplest way is to use TF-GPU pre-built binaries to install TF GPU.以我的拙见,最简单的方法是使用 TF-GPU 预构建的二进制文件来安装 TF GPU。

To answer your questions.回答你的问题。 Yes you can use TF comfortably on i5 with 4gb of graphics card and 8gb ram.是的,您可以在具有 4GB 显卡和 8GB 内存的 i5 上舒适地使用 TF。 The training time may take longer though, depending on task at hand.不过,培训时间可能需要更长的时间,具体取决于手头的任务。

In summary, the main hardware requirement to install TF GPU is getting a Nvidia graphics card with cuda compute capability more than 3.5, more the merrier.总之,安装TF GPU的主要硬件要求是获得cuda计算能力超过3.5的Nvidia显卡,更多更好。 Note that TF officially supports only NVIDIA graphics card.请注意,TF 官方仅支持 NVIDIA 显卡。

You should find your answers here:您应该在这里找到答案:

https://www.nvidia.com/en-gb/data-center/gpu-accelerated-applications/tensorflow/ https://www.nvidia.com/en-gb/data-center/gpu-accelerated-applications/tensorflow/

From the link:从链接:

The GPU-enabled version of TensorFlow has the following requirements:支持 GPU 的 TensorFlow 版本有以下要求:

  • 64-bit Linux 64 位 Linux
  • Python 2.7蟒蛇 2.7
  • CUDA 7.5 (CUDA 8.0 required for Pascal GPUs) CUDA 7.5(Pascal GPU 需要 CUDA 8.0)
  • cuDNN v5.1 (cuDNN v6 if on TF v1.3) cuDNN v5.1(如果使用 TF v1.3,则为 cuDNN v6)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM