Quick Retrieve on Google     Quick Retrieve on Bing

Combine Art and Sciences

Blogs transfered from: blog.csdn.net/sonictl

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

【GPU】Install CUDA on Mac

This blog is out of date. Check out my new blog holder: sonictl.github.io

本网站上的博文已经停止维护/更新了。 请移步到新的博客空间:sonictl.github.io

Install CUDA on Mac

This instruction is following the Online Documentation for CUDA Toolkit.

Some notifications for tf-gpu installation:

  • After tf 1.2, the source code building becomes the only way of installation of TensorFlow-GPU in Mac OSX. link And tensorFlow nolonger support GPU on OSX. 这带来了很多安装的不确定性和难度。
  • 从源码安装是可能的途径,但是有人制作whl放在网上供下载。github link
  • python=3.6.5 CUDA=9.2.148 cuDNN=7.1.4 tf-gpu=1.9 可参考的一个配置选项,来自pyTorch社区

1.1 系统要求:

Cuda 兼容的 GPU
OSX 10.13
Clang 编译器 和 toolchain 安装自Xcode
CUDA Toolkit: https://developer.nvidia.com/cuda-toolkit-archive Guided by: Online Documentation

Xcode版本 9.2, Apple LLVM版本9.0.0, 如何检查:

/usr/bin/cc --version

如何下载:https://developer.apple.com/download/more/

1.2 步骤总览

​ 1.2.1 check the requirements.
​ 1.2.2 Download and Install
​ 1.2.3 Verification
​ 1.2.4 Install CuDNN: CuDNN Archieve
​ 1.2.5 Install tf-gpu

1.3 Check the requirements

1.4 Download and Install

- CUDA Driver
- CUDA Toolkit
- CUDA Samples

1.5 Verification for installing of CUDA Toolkit

1.6 Install CuDNN

Download cuDNN v7.1.4 (May 16, 2018), for CUDA 9.2

cuDNN v7.1.4 Library for OSX

1.7 Install tf-gpu

More References:

https://darienmt.com/self-driving-cars/2017/06/07/tensorflow-with-gpu-on-your-mac.html

posted on 2019-10-23 21:23  sonictl  阅读(51)  评论(0)    收藏  举报