Advertisement
AvantiShri

Contents of my Makefile.config

Dec 6th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. # Refer to http://caffe.berkeleyvision.org/installation.html
  2. # Contributions simplifying and improving our build system are welcome!
  3.  
  4. # cuDNN acceleration switch (uncomment to build with cuDNN).
  5. # USE_CUDNN := 1
  6.  
  7. # CPU-only switch (uncomment to build without GPU support).
  8. # CPU_ONLY := 1
  9.  
  10. # To customize your choice of compiler, uncomment and set the following.
  11. # N.B. the default for Linux is g++ and the default for OSX is clang++
  12. # CUSTOM_CXX := g++
  13.  
  14. # CUDA directory contains bin/ and lib/ directories that we need.
  15. CUDA_DIR := /usr/local/cuda
  16. # On Ubuntu 14.04, if cuda tools are installed via
  17. # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
  18. # CUDA_DIR := /usr
  19.  
  20. # CUDA architecture setting: going with all of them (up to CUDA 5.5 compatible).
  21. # For the latest architecture, you need to install CUDA >= 6.0 and uncomment
  22. # the *_50 lines below.
  23. CUDA_ARCH := -gencode arch=compute_52,code=sm_52
  24.  
  25. # BLAS choice:
  26. # atlas for ATLAS (default)
  27. # mkl for MKL
  28. # open for OpenBlas
  29. BLAS := open
  30. # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
  31. # Leave commented to accept the defaults for your choice of BLAS
  32. # (which should work)!
  33. BLAS_INCLUDE := /usr/local/Cellar/openblas/0.2.14_1/include
  34. BLAS_LIB := /usr/local/Cellar/openblas/0.2.14_1/lib
  35.  
  36. # This is required only if you will compile the matlab interface.
  37. # MATLAB directory should contain the mex binary in /bin.
  38. # MATLAB_DIR := /usr/local
  39. # MATLAB_DIR := /Applications/MATLAB_R2012b.app
  40.  
  41. # NOTE: this is required only if you will compile the python interface.
  42. # We need to be able to find Python.h and numpy/arrayobject.h.
  43. #PYTHON_INCLUDE := /usr/include/python2.7 \
  44. # /usr/lib/python2.7/dist-packages/numpy/core/include
  45. # Anaconda Python distribution is quite popular. Include path:
  46. #PYTHON_INCLUDE := /usr/local/anaconda/include \
  47. # /usr/local/anaconda/include/python2.7 \
  48. # /usr/local/anaconda/lib/python2.7/site-packages/numpy/core/include
  49. # I removed /usr/local/anaconda/include since that contains a clash for HDF5 headers (@csfoo).
  50. PYTHON_INCLUDE := /Users/avantishrikumar/anaconda/include/python2.7 \
  51. /Users/avantishrikumar/anaconda/lib/python2.7/site-packages/numpy/core/include
  52.  
  53. # We need to be able to find libpythonX.X.so or .dylib.
  54. # PYTHON_LIB := /usr/lib
  55. PYTHON_LIB := /Users/avantishrikumar/anaconda/lib
  56.  
  57. # Whatever else you find you need goes here.
  58. # I reversed the order here to ensure that the system libraries get searched
  59. # before anaconda's, which avoids problems at runtime (@csfoo).
  60. INCLUDE_DIRS := /usr/local/include $(PYTHON_INCLUDE)
  61. LIBRARY_DIRS := /usr/lib/x86_64-linux-gnu /usr/local/lib /usr/lib $(PYTHON_LIB)
  62.  
  63. BUILD_DIR := build
  64. DISTRIBUTE_DIR := distribute
  65.  
  66. WITH_PYTHON_LAYER := 1
  67. # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
  68. # DEBUG := 1
  69.  
  70. # The ID of the GPU that 'make runtest' will use to run unit tests.
  71. TEST_GPUID := 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement