## Refer to http://caffe.berkeleyvision.org/installation.html# Contributions simplifying and improving our build system are welcome!# cuDNN acceleration switch (uncomment to build with cuDNN).# USE_CUDNN := 1# CPU-only switch (uncomment to build without GPU support).# CPU_ONLY := 1
以下のように変更します。
1
CPU_ONLY := 1
CUDAとcuDNNを使う場合
CPUオンリーでCaffeを使う場合ここの作業は必要ありません。
5行目のコメントアウトを外す.
12
# cuDNN acceleration switch (uncomment to build with cuDNN).USE_CUDNN := 1
15行目のコメントアウトを外す。CUDA 7.0を上のリンクで入れた場合、ここを外しました。
12
# CUDA directory contains bin/ and lib/ directories that we need.CUDA_DIR := /usr/local/cuda
# NOTE: this is required only if you will compile the python interface.# We need to be able to find Python.h and numpy/arrayobject.h.PYTHON_INCLUDE := /usr/include/python2.7 \ /usr/lib/python2.7/dist-packages/numpy/core/include
以下に変更。 /localを追加。
1234
# NOTE: this is required only if you will compile the python interface.# We need to be able to find Python.h and numpy/arrayobject.h.PYTHON_INCLUDE := /usr/include/python2.7 \ /usr/local/lib/python2.7/dist-packages/numpy/core/include