From 3e793c4231ce5cca7d97c0dd15fbaf9b738d0fde Mon Sep 17 00:00:00 2001 From: Yifei Feng Date: Fri, 29 Jul 2016 14:31:30 -0700 Subject: [PATCH] Update Mac GPU setup instructions --- tensorflow/g3doc/get_started/os_setup.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tensorflow/g3doc/get_started/os_setup.md b/tensorflow/g3doc/get_started/os_setup.md index 92f77b27b07e14..e4269a742bd524 100644 --- a/tensorflow/g3doc/get_started/os_setup.md +++ b/tensorflow/g3doc/get_started/os_setup.md @@ -594,6 +594,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: @@ -634,6 +636,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