I am following the official instructions from http://caffe.berkeleyvision.org/install_osx.html
A couple of things are unclear. Instructions say "CUDA: Install via the NVIDIA package that includes both CUDA and the bundled driver." I do not have an Nvidia GPU (am on MacBook Pro 2016 which has amd gpu instead) and plan to use caffe with CPU only.
a) do I have to install CUDA in order to install caffe?
b) inside Makefile.config it have uncommented code that asks to set CUDA directory, saying the following:
# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
Seems to suggest that I should have CUDA. It was my impression that I can't have CUDA without Nvidia gpu. (My ultimate goal is to install and work with OpenPose from Spyder.) Why do I need CUDA uncommented when I am specifying that it will be CPU only
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
So far I have left CUDA commands uncommented as they were and proceeded with make all
caffe compilation from terminal. I am encountering the following error and not sure how to solve it. Anyone managed please?
LD -o .build_release/lib/libcaffe.so.1.0.0
ld: framework not found vecLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
I have tried uninstalling and re-installing Xcode command line tools but that did not help. Now I am trying to find the file from which a call to search for vecLib.framework is made, so that I can edit that file and set the vecLib path correctly. I have found it under Library/Developer section. Does anyone know which file is being used to search for vecLib path?
Next problem:
LD -o .build_release/lib/libcaffe.so.1.0.0
ld: library not found for -lboost_python3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
I uncommented this line in Makefile.config as per instructions I was following
PYTHON_LIBRARIES := boost_python3 python3.7m
Not sure how to resolve the missing -lboost_python3. I found and can see the directory of boost_python3 but don't know how/where I shall use it?