简体   繁体   English

如何为 Mac 安装支持 GPU 的 tensorflow?

[英]How do I install tensorflow with gpu support for Mac?

My MacBook Pro doesn't have a NVIDIA gpu.我的 MacBook Pro 没有 NVIDIA GPU。 So it's not possible to run CUDA.因此无法运行 CUDA。 I'm wondering which of the earlier versions of TensorFlow have gpu support for Mac OS?我想知道哪些早期版本的 TensorFlow 支持 Mac OS 的 GPU? And how can I install on Anaconda?我如何在 Anaconda 上安装?

As stated on the official site:正如网所说:

Note: As of version 1.2, TensorFlow no longer provides GPU support on Mac OS X.注意:从 1.2 版开始,TensorFlow 不再在 Mac OS X 上提供 GPU 支持。

..so installing any earlier version should be fine. ..所以安装任何早期版本应该没问题。 But since your hardware does not have NVIDIA graphics card with CUDA support, it doesn't matter anyway.但是由于您的硬件没有支持 CUDA 的 NVIDIA 显卡,所以无论如何都无所谓。

In terms of installing TensorFlow on Mac OSX using Anaconda, you can just follow steps nicely described in the official docs在使用 Anaconda 在 Mac OSX 上安装 TensorFlow 方面,您可以按照官方文档中很好地描述的步骤进行操作

TensorFlow relies on CUDA for GPU use so you need Nvidia GPU. TensorFlow 依赖 CUDA 来使用 GPU,因此您需要 Nvidia GPU。 There's experimental work on adding OpenCL support to TensorFlow, but it's not supported on MacOS.有向 TensorFlow 添加 OpenCL 支持的实验性工作,但它在 MacOS 上不受支持。

On anecdotal note, I've heard bad things from people trying to use AMD cards for deep learning.顺便说一句,我听说过试图使用 AMD 卡进行深度学习的人的坏消息。 Basically AMD doesn't care about deep learning, they change their interfaces without notice so things break or run slower than CPU.基本上 AMD 不关心深度学习,他们会在没有通知的情况下更改接口,因此事情会中断或运行速度比 CPU 慢。

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

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