Guest User

Untitled

a guest
Oct 12th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.63 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. # uncomment to disable IO dependencies and corresponding data layers
  11. # USE_OPENCV := 0
  12. # USE_LEVELDB := 0
  13. # USE_LMDB := 0
  14.  
  15. # uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
  16. #       You should not set this flag if you will be reading LMDBs with any
  17. #       possibility of simultaneous read and write
  18. # ALLOW_LMDB_NOLOCK := 1
  19.  
  20. # Uncomment if you're using OpenCV 3
  21. # OPENCV_VERSION := 3
  22.  
  23. # To customize your choice of compiler, uncomment and set the following.
  24. # N.B. the default for Linux is g++ and the default for OSX is clang++
  25. # CUSTOM_CXX := g++
  26.  
  27. # CUDA directory contains bin/ and lib/ directories that we need.
  28. #CUDA_DIR := /usr/local/cuda
  29. CUDA_DIR := /usr/local/Cluster-Apps/cuda/8.0
  30. # On Ubuntu 14.04, if cuda tools are installed via
  31. # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
  32. # CUDA_DIR := /usr
  33.  
  34. # CUDA architecture setting: going with all of them.
  35. # For CUDA < 6.0, comment the *_50 lines for compatibility.
  36. CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
  37.                 -gencode arch=compute_20,code=sm_21 \
  38.                 -gencode arch=compute_30,code=sm_30 \
  39.                 -gencode arch=compute_35,code=sm_35 \
  40.                 -gencode arch=compute_50,code=sm_50 \
  41.                 -gencode arch=compute_50,code=compute_50
  42.  
  43. # BLAS choice:
  44. # atlas for ATLAS (default)
  45. # mkl for MKL
  46. # open for OpenBlas
  47. #BLAS := atlas
  48. BLAS := mkl
  49. # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
  50. # Leave commented to accept the defaults for your choice of BLAS
  51. # (which should work)!
  52. # BLAS_INCLUDE := /path/to/your/blas
  53. # BLAS_LIB := /path/to/your/blas
  54.  
  55. # Homebrew puts openblas in a directory that is not on the standard search path
  56. # BLAS_INCLUDE := $(shell brew --prefix openblas)/include
  57. # BLAS_LIB := $(shell brew --prefix openblas)/lib
  58.  
  59. # This is required only if you will compile the matlab interface.
  60. # MATLAB directory should contain the mex binary in /bin.
  61. MATLAB_DIR := /usr/local/Cluster-Apps/matlab/R2015b
  62. # MATLAB_DIR := /Applications/MATLAB_R2012b.app
  63.  
  64. # NOTE: this is required only if you will compile the python interface.
  65. # We need to be able to find Python.h and numpy/arrayobject.h.
  66. PYTHON_INCLUDE := /usr/local/Cluster-Apps/python/2.7.10/include/python2.7 \
  67.                 /usr/local/Cluster-Apps/python/2.7.10/lib/python2.7/dist-packages/numpy/core/include
  68. # Anaconda Python distribution is quite popular. Include path:
  69. # Verify anaconda location, sometimes it's in root.
  70. # ANACONDA_HOME := $(HOME)/anaconda
  71. # PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
  72.                 # $(ANACONDA_HOME)/include/python2.7 \
  73.                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
  74.  
  75. # Uncomment to use Python 3 (default is Python 2)
  76. # PYTHON_LIBRARIES := boost_python3 python3.5m
  77. # PYTHON_INCLUDE := /usr/include/python3.5m \
  78. #                 /usr/lib/python3.5/dist-packages/numpy/core/include
  79.  
  80. # We need to be able to find libpythonX.X.so or .dylib
  81. PYTHON_LIB := /usr/local/Cluster-Apps/python/2.7.10/lib
  82. # PYTHON_LIB := $(ANACONDA_HOME)/lib
  83.  
  84. # Homebrew installs numpy in a non standard path (keg only)
  85. # PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
  86. # PYTHON_LIB += $(shell brew --prefix numpy)/lib
  87.  
  88. # Uncomment to support layers written in Python (will link against Python libs)
  89. # WITH_PYTHON_LAYER := 1
  90.  
  91. # Whatever else you find you need goes here.
  92. INCLUDE_DIRS := $(PYTHON_INCLUDE) /home/USER/.local/include $(subst :, ,$(CPATH)) /usr/local/include
  93. LIBRARY_DIRS := $(PYTHON_LIB) /home/USER/.local/lib $(subst :, ,$(LD_LIBRARY_PATH)) /usr/local/lib64 /usr/lib64
  94.  
  95. # If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
  96. # INCLUDE_DIRS += $(shell brew --prefix)/include
  97. # LIBRARY_DIRS += $(shell brew --prefix)/lib
  98.  
  99. # Uncomment to use `pkg-config` to specify OpenCV library paths.
  100. # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
  101. # USE_PKG_CONFIG := 1
  102.  
  103. BUILD_DIR := build
  104. DISTRIBUTE_DIR := distribute
  105.  
  106. # Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
  107. #DEBUG := 1
  108.  
  109. # The ID of the GPU that 'make runtest' will use to run unit tests.
  110. TEST_GPUID := 0
  111.  
  112. # enable pretty build (comment to see full commands)
  113. Q ?= @
Advertisement
Add Comment
Please, Sign In to add comment