Notes from installing CUDA and TensorFlow on a MacBook Pro 15" 2013 with GeForce 650M
- Download CUDA and run installer (see notes)
- Go to System Preferences > CUDA and update driver version if prompted.
- Make sure
deviceQuery
lists your GPU - Add cuda to syspath
export PATH=$PATH:/usr/local/cuda/bin
- Download CuDNN (TF on pip currently compiled for version 5.x), unpack and move to
/usr/local/cuda
pip install tensorflow tensorflow-gpu
- Make sure TF can see the GPU
$ python >>> from tensorflow.python.client import device_lib >>> print device_lib.list_local_devices()