Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3cb3995

Browse files
authored
Update Mac GPU setup instructions (tensorflow#3575)
1 parent 2195f43 commit 3cb3995

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tensorflow/g3doc/get_started/os_setup.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ which you can install as follows:
612612
$ sudo easy_install ipython
613613
```
614614

615+
#### Optional: Setup GPU for Mac
616+
615617
If you plan to build with GPU support you will need to make sure you have
616618
GNU coreutils installed via homebrew:
617619

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

657+
To verify the CUDA installation, you can build and run deviceQuery to make sure
658+
it passes.
659+
660+
```bash
661+
$ cp -r /usr/local/cuda/samples ~/cuda-samples
662+
$ pushd ~/cuda-samples
663+
$ make
664+
$ popd
665+
$ ~/cuda-samples/bin/x86_64/darwin/release/deviceQuery
666+
```
667+
668+
If you want to compile tensorflow and have the XCode 7.3 installed, note that
669+
Xcode 7.3 is not yet compatible with CUDA 7.5. You will need to download Xcode
670+
7.2 and select it as your default:
671+
672+
```bash
673+
$ sudo xcode-select -s /Application/Xcode-7.2/Xcode.app
674+
```
675+
676+
655677
### Configure the installation
656678

657679
Run the `configure` script at the root of the tree. The configure script

0 commit comments

Comments
 (0)