Skip to content

Commit

Permalink
Update Mac GPU setup instructions (#3575)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifeif committed Jul 29, 2016
1 parent 2195f43 commit 3cb3995
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tensorflow/g3doc/get_started/os_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ which you can install as follows:
$ sudo easy_install ipython
```

#### Optional: Setup GPU for Mac

If you plan to build with GPU support you will need to make sure you have
GNU coreutils installed via homebrew:

Expand Down Expand Up @@ -652,6 +654,26 @@ $ sudo mv lib/libcudnn* /Developer/NVIDIA/CUDA-7.5/lib
$ sudo ln -s /Developer/NVIDIA/CUDA-7.5/lib/libcudnn* /usr/local/cuda/lib/
```

To verify the CUDA installation, you can build and run deviceQuery to make sure
it passes.

```bash
$ cp -r /usr/local/cuda/samples ~/cuda-samples
$ pushd ~/cuda-samples
$ make
$ popd
$ ~/cuda-samples/bin/x86_64/darwin/release/deviceQuery
```

If you want to compile tensorflow and have the XCode 7.3 installed, note that
Xcode 7.3 is not yet compatible with CUDA 7.5. You will need to download Xcode
7.2 and select it as your default:

```bash
$ sudo xcode-select -s /Application/Xcode-7.2/Xcode.app
```


### Configure the installation

Run the `configure` script at the root of the tree. The configure script
Expand Down

0 comments on commit 3cb3995

Please sign in to comment.