์ฌ์ฉ, ์ค์น, ๋ชจ๋ธ๋ง ๊ด๋ จ ์ง๋ฌธ์ด๋ ๊ธฐํ ๋์ ์์ฒญ์ caffe-users ๋ชฉ๋ก ์ ์ฌ์ฉํ์ญ์์ค.
_์ด์์ ๊ทธ๋ฐ ์์ฒญ์ ๊ฒ์ํ์ง ๋ง์ญ์์ค._ ๊ทธ๋ ๊ฒ ํ๋ฉด Caffe์ ๊ฐ๋ฐ์ ๋ฐฉํด๊ฐ ๋ฉ๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ์ ์ถํ๊ธฐ ์ ์ ๊ธฐ์ฌ ์ง์นจ์ ์ฝ์ผ์ญ์์ค.
Caffe๋ฅผ ๊ตฌ์ถํ๊ฑฐ๋ ๋ชจ๋ธ์ ํ๋ จํ๋ ๋ฐ ์ด๋ ค์์ด ์๋ค๋ฉด caffe-users ๋ฉ์ผ๋ง ๋ฆฌ์คํธ์ ๋ฌธ์ํ์ญ์์ค. Caffe์ ๋ฒ๊ทธ๋ก ์ธํ ๋น๋ ์ค๋ฅ๋ฅผ ๋ณด๊ณ ํ๋ ๊ฒฝ์ฐ ๋น๋ ๊ตฌ์ฑ(Makefile.config ๋๋ CMakeCache.txt)๊ณผ make(๋๋ cmake) ๋ช ๋ น์ ์ถ๋ ฅ์ ์ฒจ๋ถํ์ธ์.
์ด์ ์ฒด์ :
์ปดํ์ผ๋ฌ:
CUDA ๋ฒ์ (ํด๋น๋๋ ๊ฒฝ์ฐ):
CUDNN ๋ฒ์ (ํด๋น๋๋ ๊ฒฝ์ฐ):
๋ธ๋ผ์ค:
Python ๋๋ MATLAB ๋ฒ์ (๊ฐ๊ฐ pycaffe ๋ฐ matcaffe์ฉ):
์ด์ ๋ฒ์ ์ cuda ํดํท์ด ์ฌ๊ธฐ์ ์์ต๋๋ค.
https://developer.nvidia.com/cuda-toolkit-archive
์ฐ๋ถํฌ์์ 9.0์ผ๋ก ์ปดํ์ผํ ๋ ์ผ๋ถ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
์ง์๋์ง ์๋ GPU ์ํคํ
์ฒ 'compute_20'
@zuo1188 cuda9.0 ์์๋ "์ง์๋์ง ์๋ GPU ์ํคํ ์ฒ 'compute_20'" ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. ํด๊ฒฐํ์๊ฒ ์ต๋๊น?
@autocyz @zuo1188 Makefile.config์์ ๊ตฌ์ฑ์ ๋ณ๊ฒฝํ์ฌ ํด๋น ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค. "-gencode arch=compute_20,code=sm_20"์ ์ ๊ฑฐํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค.
@ShaggO 'make runtest'์์ ์คํจํฉ๋๋ค.
๋ํ CUDA 9 ์ง์์ ์ฐพ๊ณ ์์ต๋๋ค.
Caffe๋ CUDA 9์ ํธํ๋ฉ๋๋ค. #6079์ ์ถ๊ฐ๋ ์ฃผ์์ ๋ณด์ธ์.
protobuf ๋ฌธ์ ์ ์ง๋ฉดํ์ฌ compute_20์ ์ ๊ฑฐํ์ต๋๋ค. ์ด๋ค ๋ฆฌ๋??
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
.build_release/src/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
make: *** [Makefile:589: .build_release/src/caffe/proto/caffe.pb.o] Error 1
(caffe_p27) ubuntu@ip-172-31-42-215:~/src/caffe_python_2$
.build_release/src/caffe/proto/caffe.pb.cc:4:0์ ํฌํจ๋ ํ์ผ:
.build_release/src/caffe/proto/caffe.pb.h:23:35: ์น๋ช ์ ์ธ ์ค๋ฅ: google/protobuf/arena.h: ํด๋น ํ์ผ์ด๋ ๋๋ ํ ๋ฆฌ๊ฐ ์์ต๋๋ค.
์ปดํ์ผ์ด ์ข ๋ฃ๋์์ต๋๋ค.
@kalyc ์ด๊ฒ์ด CUDA 9.0 ํธํ์ฑ๊ณผ ๊ด๋ จ์ด ์๋์ง ์์ฌ๋ฉ๋๋ค. protobuf-devel ๋๋ libgflags-dev libgoogle-glog-dev๋ฅผ ์ค์นํ์ต๋๊น?
Caffe ์ค์น ๊ฐ์ด๋ ์๋ Ubuntu 14.04์๋ง ํ์ํ๋ค๊ณ ๋์ ์์ง๋ง 16.04์๋ ํ์ํ๋ค๋ ๊ฒ์ ์์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@autocyz @zuo1188 Makefile.config์์ ๊ตฌ์ฑ์ ๋ณ๊ฒฝํ์ฌ ํด๋น ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค. "-gencode arch=compute_20,code=sm_20"์ ์ ๊ฑฐํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค.