Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # Installation
  2. CUDA + cuDNN Installation:
  3. - Install Cuda (2 options):
  4. - Download from NVIDIA website. Will install to `/Developer/NVIDIA/CUDA=#-#` (macOS / OS X), with symlinks in `/usr/local/cuda/`.
  5. - Alternatively, use `brew cask install cuda`.
  6. - macOS / OS X:
  7. - Add an extra softlink for tensorflow:
  8. - `sudo ln -sf /usr/local/cuda/lib/libcuda.dylib /usr/local/cuda/lib/libcuda.1.dylib`
  9. - Download CuDNN from NVIDIA website into `local_cudnn_path`, then:
  10. - `sudo mkdir /usr/local/cudnn`
  11. - `sudo cp -r local_cudnn_path/* /usr/local/cudnn/`
  12. - Setup paths in `~/.bash_profile`:
  13. - `export CUDA_HOME=/usr/local/cuda`
  14. - `export CUDNN_HOME=/usr/local/cudnn`
  15. - macOS / OS X:
  16. - `export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$CUDA_HOME/lib:$CUDNN_HOME/lib`
  17. - Linux:
  18. - `sudo apt-get install libcupti-dev`
  19. - `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_HOME/lib64:$CUDNN_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64`
  20. - Test:
  21.  
  22. ```
  23. cp -r /usr/local/cuda/samples ~/cuda-samples
  24. pushd ~/cuda-samples
  25. make
  26. popd
  27. ~/cuda-samples/bin/x86_64/darwin/release/deviceQuery
  28. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement