Chainerインストール

16
Chainerのインストールについて 野健太 [email protected] 2015/7/6 本神経回学会主催セミナー Deep Learningを使ってみよう!」

Transcript of Chainerインストール

1. Chainer [email protected] 2015/7/6 Deep Learning 2. 2015/7/6 3. 201591Deep Learning http://www.jnns.org/DeepSeminar2/home.html Chainer $ ls $ 4. OS:Ubuntu14.04 + CUDA7.0 Chainer 77v1.1.0 5. 6. 7. Chainer 8. (CPU) pippython $ pip install -U six (optional) $ pip install chainer sixPython2Python3 2/3 2 * 3 = 6six 9. (GPU) CUDACaffeCUDA ChainerGPU chainer-cuda-depspip ChainerCPU $ pip install chainer-cuda-deps $ pip install -U six (optional) $ pip install chainer 10. example examplepip CPU $ pip install scikit-learn scipy # example $ git clone https://github.com/pfnet/chainer.git $ python chainer/examples/mnist/train_mnist.py GPU GPUIDnvidia-smi0 $ python chainer/examples/mnist/train_mnist.py -g 11. 12. LIBRARY_PATH / LD_LIBRARY_PATH LIBRARY_PATHgccor LD_LIBRARY_PATH.so LD_LIBRARY_PATHLIBRARY_PATH http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path LIBRARY_PATH LD_LIBRARY_PATH 13. ldd/ldconfig ldd : ldd /usr/bin/ls ldconfig : /etc/ld.so.conf /lib/usr/lib /etc/ld.so.cache http://www.linuxmaster.jp/linux_skill/2011/03/22linux.html 14. (A)(B) A: error while loading shared libraries: libBB.so.X: cannot open shared object file: No such file or directory 0. lddAB 1. /etc/ld.so.cacheldconfig 2. B(C) 2-12-2 3-1. LD_LIBRARY_PATHC 3-2. /etc/ld.so.confCldconfig 15. Python Python Pythonimport pipPython or PyPIPerlCPAN pip install < > pippip install -U pip -U PYTHONPATHPythonimport http://docs.python.jp/2/tutorial/modules.html#tut-searchpath 16. GPU CUDANVIDIAGPU NVCCCUDAC++ cuBLAS, cuDNNCUDA, Host/Device GPUHost = CPU, Device = GPU