{"id":2548,"date":"2016-04-17T22:14:28","date_gmt":"2016-04-17T13:14:28","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2548"},"modified":"2016-04-18T00:42:01","modified_gmt":"2016-04-17T15:42:01","slug":"gpu%e3%81%aa%e3%81%97%e3%81%aedigits","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2548","title":{"rendered":"GPU\u306a\u3057\u306eDIGITS"},"content":{"rendered":"<p><strong>\u6700\u7d42\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u305f\u306e\u3060\u304c\u3001\u5099\u5fd8\u306e\u305f\u3081\u306b\u6b8b\u3059<\/strong><\/p>\n<h1>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h1>\n<p><a href=\"http:\/\/qiita.com\/kumadasu\/items\/bf26cd2824eaef8f2bf8\">GPU\u306a\u3057\u306eNVIDIA DIGITS3\u3067\u59cb\u3081\u308bDeepLearning<\/a>\u3092\u3068\u3066\u3082\u53c2\u8003\u306b\u3057\u305f<br \/>\n<a href=\"http:\/\/tech.akat.info\/?p=2513\">Caffe\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f<\/a>\u306e\u305f\u3081\u3001DIGITS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068Caffe\u3068\u306e\u9023\u643a\u3092\u8a2d\u5b9a\u3057\u305f<br \/>\nGPU\u306e\u5229\u7528\u306f<a href=\"http:\/\/tech.akat.info\/?p=2541\">\u8ae6\u3081\u3066\u3044\u308b<\/a><\/p>\n<h2>DIGITS<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu1404:\/usr\/local\/src# cat digits.sh\r\n#!\/bin\/bash\r\n\r\nCUDA_REPO_PKG=cuda-repo-ubuntu1404_7.5-18_amd64.deb &amp;&amp;\r\n    wget http:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu1404\/x86_64\/$CUDA_REPO_PKG &amp;&amp;\r\n    sudo dpkg -i $CUDA_REPO_PKG\r\n\r\nML_REPO_PKG=nvidia-machine-learning-repo_4.0-2_amd64.deb &amp;&amp;\r\n    wget http:\/\/developer.download.nvidia.com\/compute\/machine-learning\/repos\/ubuntu1404\/x86_64\/$ML_REPO_PKG &amp;&amp;\r\n    sudo dpkg -i $ML_REPO_PKG\r\n\r\nroot@ubuntu1404:\/usr\/local\/src# .\/digits.sh\r\n...\r\n\r\nroot@ubuntu1404:\/usr\/local\/src# aptitude update\r\n...\r\n\r\nroot@ubuntu1404:\/usr\/local\/src# aptitude install digits\r\n...\r\n\r\n<\/pre>\n<h2>DIGITS\u3068Caffe\u306e\u9023\u643a<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu1404:\/usr\/local\/src# cd \/usr\/share\/digits\/\r\nroot@ubuntu1404:\/usr\/share\/digits# python -m digits.config.edit -v\r\n...\r\n==================================== Caffe =====================================\r\nWhere is caffe installed?\r\n\r\n        Suggested values:\r\n        (U*) &#x5B;unset]\r\n        (P)  &#x5B;PATH\/PYTHONPATH] &lt;PATHS&gt;\r\n&gt;&gt; \/usr\/local\/src\/caffe\r\nERROR: Library at &quot;libcaffe.so.1.0.0-rc3&quot; does not have expected suffix &quot;-nv&quot;. Are you using the NVIDIA\/caffe fork?\r\nInvalid input\r\n...\r\n<\/pre>\n<p>Caffe\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u554f\u984c\u304c\u5408\u3063\u305f\u306e\u304b\u4e0d\u660e\u3060\u304c\u3001\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f<br \/>\n\u3053\u306e\u307e\u307e\u9032\u3080\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u305f\u3081\u3001\u5f37\u5f15\u3067\u306f\u3042\u308b\u304c\/usr\/bin \u914d\u4e0b\u3092\u5909\u66f4\u3057\u305f<br \/>\n(\u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\u306e\u969b\u306b\u6d88\u3048\u308b\u306f\u305a)<\/p>\n<h3>\u30a8\u30e9\u30fc\u5185\u5bb9<\/h3>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210825.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210825.png\" alt=\"2016-04-17_210825\" width=\"912\" height=\"589\" class=\"alignnone size-full wp-image-2549\" \/><\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nERROR: Check failed: error == cudaSuccess (35 vs. 0) \r\nCUDA driver version is insufficient for CUDA runtime version\r\n<\/pre>\n<h3>\/usr\/bin \u914d\u4e0b\u3092\u5909\u66f4<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu1404:\/usr\/bin# which caffe\r\n\/usr\/bin\/caffe\r\nroot@ubuntu1404:\/usr\/bin# mv caffe caffe.default\r\nroot@ubuntu1404:\/usr\/bin# ln -s \/usr\/local\/src\/caffe\/build\/tools\/caffe\r\n<\/pre>\n<h1>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3059\u308b<\/h1>\n<h2>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu1404:\/usr\/local\/src\/data# \/usr\/share\/digits\/tools\/download_data\/main.py mnist mnist\r\n...\r\n<\/pre>\n<h2>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u767b\u9332\u3057\u3001\u5b66\u7fd2\u3055\u305b\u308b<\/h2>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_205646.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_205646.png\" alt=\"2016-04-17_205646\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2556\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_205914.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_205914.png\" alt=\"2016-04-17_205914\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2555\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210001.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210001.png\" alt=\"2016-04-17_210001\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2554\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210311.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210311.png\" alt=\"2016-04-17_210311\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2553\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210414.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210414.png\" alt=\"2016-04-17_210414\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2552\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210653.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_210653.png\" alt=\"2016-04-17_210653\" width=\"892\" height=\"632\" class=\"alignnone size-medium wp-image-2551\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-17_220548.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-\ncontent\/uploads\/2016\/04\/2016-04-17_220548.png\" alt=\"2016-04-17_220548\" width=\"892\" height=\"632\" class=\"alignnone size-full wp-image-2550\" \/><\/a><\/p>\n<h1>\u6025\u306b\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u305forz\u3002\u518d\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u306b<\/h1>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-18_003000.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/04\/2016-04-18_003000.png\" alt=\"2016-04-18_003000\" width=\"902\" height=\"208\" class=\"alignnone size-full wp-image-2574\" \/><\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu1404:\/usr\/local\/src\/caffe# tail -f \/var\/log\/digits\/digits.log\r\n...\r\n2016-04-18 00:26:09 &#x5B;2314] &#x5B;INFO] Starting gunicorn 17.5\r\ncudaRuntimeGetVersion() failed with error #35\r\nDefault value for caffe_root &quot;&lt;PATHS&gt;&quot; invalid:\r\n        Library at &quot;not&quot; does not have expected suffix &quot;-nv&quot;. Are you using the NVIDIA\/caffe fork?\r\n\r\nError: No valid default value found for configuration option &quot;caffe_root&quot;\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u7d42\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u305f\u306e\u3060\u304c\u3001\u5099\u5fd8\u306e\u305f\u3081\u306b\u6b8b\u3059 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5 GPU\u306a\u3057\u306eNVIDIA DIGITS3\u3067\u59cb\u3081\u308bDeepLearning\u3092\u3068\u3066\u3082\u53c2\u8003\u306b\u3057\u305f Caffe\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u305f\u3081\u3001DIGITS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[94],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2548"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2548"}],"version-history":[{"count":5,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2548\/revisions"}],"predecessor-version":[{"id":2575,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2548\/revisions\/2575"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}