Skip to content

Instantly share code, notes, and snippets.

@matteocrippa
Last active October 26, 2017 13:50
Show Gist options
  • Save matteocrippa/33897f410467c7180c89c4eea890f553 to your computer and use it in GitHub Desktop.
Save matteocrippa/33897f410467c7180c89c4eea890f553 to your computer and use it in GitHub Desktop.
How to use CUDA on macOS High Sierra 10.13
cd ~/Downloads/cuda
sudo cp include/* /usr/local/cuda/include/
sudo cp lib/* /usr/local/cuda/lib/

setup machine

conda create -n egpu python=3
source activate egpu

install tensorflow pip install tensorflow-gpu==1.0.0

install openCV conda install -c menpo opencv3

install PIL / Pillow pip install pillow

setup env variables

export CUDA_HOME=/usr/local/cuda
export DYLD_LIBRARY_PATH="$CUDA_HOME/lib:$CUDA_HOME:$CUDA_HOME/extras/CUPTI/lib"
export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment