isntall all library here
http://caffe.berkeleyvision.org/installation.html
BLAS: OpenBLAS for Gentoo
modify Makefile.config
(read the commented explanation well, and modify as it need to be
note: PYTHON_INCLUDE & PYTHON_LIBRARIES
PYTHON_LIBRARIES=the name of boost_python-x.x.so or just boost_python something
build caffe
export LD_LIBRARY_PATH=/opt/OpenBLAS/lib
add LD_LIBRARY_PATH="/opt/OpenBLAS/lib:${LD_LIBRARY_PATH}" in bash configuration file
for gtk 550 ti CUDA version must be 8
and CUDA driver must be downloaded through NVIDIA homepage, not the package manager (e.g. portage)
and need to change gcc version to 5
gcc-config 1 (select the number version 5)
env-update && source /etc/profile && PS1=$PS1
emerge --ask libtool
gcc version later than 5 are not supported
check gcc version
gcc-config -l
gcc-config number
env-update && source /etc/profile
install pycaffe
on Gentoo, install boost-numpy is necessary
export PYTHONPATH=/CAFFE/ROOT/python:$PYTHONPATH
export CAFFE_ROOT=/CAFFE/ROOT
export LD_LIBRARY_PATH=/opt/cuda/lib64:$LD_LIBRARY_PATH
add all export to /etc/environment or bash configuration file (e.g. .zshrc)
and
in /CAFFE/ROOT/
make pycaffe
'linux' 카테고리의 다른 글
zybo boot image (0) | 2018.07.02 |
---|---|
device tree (0) | 2018.06.19 |
turn off beep sound on linux (0) | 2018.03.22 |
vivado GUI xserver permission error (0) | 2018.03.22 |
printing duplex problem on linux (0) | 2018.03.15 |