{"id":170,"date":"2011-06-01T17:39:58","date_gmt":"2011-06-01T08:39:58","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=170"},"modified":"2011-06-05T14:12:24","modified_gmt":"2011-06-05T05:12:24","slug":"ubuntu-10-10x86%e3%81%abcuda-4-0%e3%82%92%e5%85%a5%e3%82%8c%e3%81%a6%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99%e3%81%be%e3%81%a7","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=170","title":{"rendered":"Ubuntu 10.10(x86)\u306bCUDA 4.0\u3092\u5165\u308c\u3066\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059\u307e\u3067"},"content":{"rendered":"<p>\u5099\u5fd8\u9332\u4ee5\u4e0a\u306e\u4f55\u3082\u306e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3067\u3059\uff0e<\/p>\n<p>CUDA4.0\u306fUbuntu\u306b\u95a2\u3057\u306610.10\u3092\u6b63\u5f0f\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61\u3068\u3057\u3066\u308b\u306e\u3082\u3042\u3063\u3066\uff0c\u30cf\u30c3\u30ad\u30ea\u8a00\u3063\u3066\uff0c\u5c0e\u5165\u306b\u8e93\u304f\u8981\u7d20\u306f\u306a\u3044\u3067\u3059\uff0e<\/p>\n<p>\u3061\u306a\u307f\u306b\u50d5\u306e\u30e1\u30a4\u30f3\u30de\u30b7\u30f3\u306f\u30e2\u30d0\u30a4\u30eb\u30ce\u30fc\u30c8(ThinkPad X201s)\u306a\u3093\u3067\u3059\u304c\uff0c\u7814\u7a76\u5ba4\u306e\u30de\u30b7\u30f3\u304ci7-920\u306b9500 GT\u306a\u306e\u3067\uff0c\u57fa\u672c\u7684\u306bCUDA\u306f(\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3058\u3083\u306a\u304f)\u3053\u3063\u3061\u3067\u3084\u3063\u3066\u307e\u3059\uff0e<\/p>\n<p><!--more--><\/p>\n<p>*\u307e\u305a\u306f\u5fc5\u8981\u306a\u3082\u306e\u3092\u843d\u3068\u3057\u3066\u304d\u307e\u3057\u3087\u3046<\/p>\n<p>[http:\/\/developer.nvidia.com\/cuda-toolkit-40:title=http:\/\/developer.nvidia.com\/cuda-toolkit-40]<\/p>\n<p>\u3053\u3053\u304b\u3089\uff0c<br \/>\n-Developer Drivers for Linux (2011.6.1\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f270.41.19)<br \/>\n-CUDA Toolkit for Ubuntu Linux 10.10<br \/>\n-CUDA Tools SDK<br \/>\n-GPU Computing SDK code samples<br \/>\n\u3092\u843d\u3068\u3057\u307e\u3059\uff0e<\/p>\n<p>*\u307e\u305a\u30c9\u30e9\u30a4\u30d0\u3092\u5165\u308c\u307e\u3059<\/p>\n<p>\u307e\u305a\u306fCUDA\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u5165\u308c\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\uff0e<br \/>\n\u3067\uff0c\u3053\u306e\u3068\u304dX\u30b5\u30fc\u30d0\u3092\u6bba\u3055\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\uff0e\u305d\u306e\u6642\u30d6\u30e9\u30a6\u30b6\u3082\u6b7b\u306b\u307e\u3059\uff0e<br \/>\n\u306a\u306e\u3067\uff0c\u3053\u306e\u30da\u30fc\u30b8\u3092\u898b\u306a\u304c\u3089\u5c0e\u5165\u3057\u3066\u3044\u308b\u65b9\u306f\u30e1\u30e2\u3092\u53d6\u308b\u306a\u308a\u4f55\u306a\u308a\uff0e<\/p>\n<p>\u3053\u3053\u3067\uff0cCtrl+Alt+F1\u3092\u62bc\u3057\u307e\u3059\uff0eF1\u306f\uff0cF1\u301cF6\u306a\u3089\u306a\u3093\u3067\u3082\u3044\u3044\u3067\u3059\uff0e<br \/>\n\u3053\u3046\u3059\u308b\u3068\uff0c\u7aef\u672b\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\uff0eCtrl+Alt+F7\u3067X\u306b\u623b\u308a\u307e\u3059\uff0e<br \/>\n\u7aef\u672b\u30e2\u30fc\u30c9\u306b\u5165\u308b\u3068\uff0c\u30ed\u30b0\u30a4\u30f3\u3092\u8981\u6c42\u3055\u308c\u308b\u306e\u3067\uff0c\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\uff0e<br \/>\n\u305d\u306e\u5f8c\uff0c \u5148\u307b\u3069\u843d\u3068\u3057\u3066\u304d\u305fDeveloper Drivers for Linux\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u3053\u308d\u306b\u884c\u304d\u307e\u3059\uff0e<\/p>\n<p>\u3053\u3053\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\uff0e\u306a\u304a#\u306froot\u6a29\u9650\u3067\u306d\uff0c\u3068\u3044\u3046\u610f\u5473\u3067\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# stop gdm\r\n# .\/devdriver_4.0_linux_32_270.41.19.run\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\uff0e\u6a29\u9650\u304c\u7121\u3044\u5834\u5408\u306f\uff0c\u3061\u3083\u3093\u3068chmod u+x\u3057\u307e\u3057\u3087\u3046\uff0e<\/p>\n<p>\u3053\u308c\u3067\u6b63\u5e38\u306b\u7d42\u308f\u3063\u305f\u3089OK\u3067\u3059\uff0e\u4f55\u304b\u805e\u304b\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u5927\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<p>\u3042\u3068\u306fX\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\uff0eOS\u81ea\u4f53\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u3044\u3044\u3057\uff0cstartx\u30b3\u30de\u30f3\u30c9\u3067\u3084\u3063\u3066\u3082OK\u3067\u3059\uff0e<\/p>\n<p>*SDK\u3084\u30c4\u30fc\u30eb\u3092\u5165\u308c\u3088\u3046<\/p>\n<p>\u3042\u3068\u306f\u666e\u901a\u306b(X\u306e\u3082\u3068\u3067)\uff0c\u30b7\u30a7\u30eb\u4e0a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u8d70\u3089\u305b\u308b\u3060\u3051\u3067\u3059\uff0e<br \/>\n-cudatoolkit_4.0.17_linux_32_ubuntu10.10.run<br \/>\n-cudatools_4.0.17_linux_32.run<br \/>\n-gpucomputingsdk_4.0.17_linux.run<br \/>\n\u3092\u9806\u306b\u5165\u308c\u307e\u3057\u305f\uff0e<\/p>\n<p>*\u30d1\u30b9\u3092\u901a\u3057\u307e\u3057\u3087\u3046<\/p>\n<p>.bashrc\u306a\u308a.zshrc\u306a\u308a\u306b\u2026<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nexport PATH=\/usr\/local\/cuda\/bin:$PATH\r\nexport LD_LIBRARY_PATH=\/usr\/local\/lib:$LD_LIBRARY_PATH\r\nexport LD_LIBRARY_PATH=\/usr\/local\/cuda\/lib:$LD_LIBRARY_PATH\r\n<\/pre>\n<p>*\u30b5\u30f3\u30d7\u30eb\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3057\u3087\u3046<\/p>\n<p>\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u70b9\u3067\uff0c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n~\/NVIDIA_GPU_Computing_SDK\/\r\n<\/pre>\n<p>\u306b\u30b5\u30f3\u30d7\u30eb\u3068\u304b\u304c\u3042\u308a\u307e\u3059\uff0e\u305d\u306e\u4e2d\u306b\u3059\u3050Makefile\u304c\u3042\u308a\u307e\u3059\u306e\u3067\uff0c\u305d\u3053\u3067\u83ef\u9e97\u306bmake\u3057\u307e\u3057\u3087\u3046\uff0e<br \/>\n\u79c1\u306e\u74b0\u5883\u306710\u5206\u304b\u305d\u3053\u3089\u306f\u304b\u304b\u308a\u307e\u3057\u305f\uff0e\u4e26\u5217\u5316\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5fd8\u308c\u3066\u305f\u3051\u3069\uff0e<\/p>\n<p>*\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<\/p>\n<p>\u30d3\u30eb\u30c9\u3057\u7d42\u308f\u3063\u305f\u3089\uff0c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n~\/NVIDIA_GPU_Computing_SDK\/C\/bin\/linux\/release\r\n<\/pre>\n<p>\u4f8b\u3048\u3070\u3053\u3053\u306bC\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u304c\u305f\u304f\u3055\u3093\u5165\u3063\u3066\u307e\u3059\uff0e<\/p>\n<p>\u50d5\u306e\u30de\u30b7\u30f3\u3067\uff0c\u30b5\u30f3\u30d7\u30ebmatrixMul\u3092\u8d70\u3089\u305b\u3066\u307f\u305f\uff0e<\/p>\n<pre class=\"brush: plain; highlight: [12,14]; title: ; notranslate\" title=\"\">\r\n% .\/matrixMul\r\n&#x5B;matrixMul] starting...\r\n&#x5B; matrixMul ]\r\n.\/matrixMul Starting (CUDA and CUBLAS tests)...\r\n\r\nDevice 0: &quot;GeForce 9500 GT&quot; with Compute 1.1 capability\r\n\r\nUsing Matrix Sizes: A(160 x 320), B(160 x 320), C(160 x 320)\r\n\r\nRuning Kernels...\r\n\r\n&gt; CUBLAS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Throughput = 25.0597 GFlop\/s, Time = 0.00065 s, Size = 16384000 Ops\r\n\r\n&gt; CUDA matrixMul Throughput = 20.2856 GFlop\/s, Time = 0.00081 s, Size = 16384000 Ops, NumDevsUsed = 1, Workgroup = 256\r\n\r\nComparing GPU results with Host computation...\r\n\r\nComparing CUBLAS &amp; Host results\r\nCUBLAS compares OK\r\n\r\nComparing CUDA matrixMul &amp; Host results\r\nCUDA matrixMul compares OK\r\n\r\n&#x5B;matrixMul] test results...\r\nPASSED\r\n\r\nPress ENTER to exit...\r\n\r\n<\/pre>\n<p>\u3064\u3044\u3067\u306b\uff0cTesla C2050\u3092\u4e8c\u3064\u7a4d\u3093\u3060\u9b3c\u306e\u3088\u3046\u306a\u30de\u30b7\u30f3\u3067\u540c\u3058\u30b5\u30f3\u30d7\u30eb\u3092\u8d70\u3089\u305b\u3066\u307f\u305f\uff0e<\/p>\n<pre class=\"brush: plain; highlight: [12,14]; title: ; notranslate\" title=\"\">\r\n$ .\/matrixMul\r\n&#x5B;matrixMul] starting...\r\n&#x5B; matrixMul ]\r\n.\/matrixMul Starting (CUDA and CUBLAS tests)...\r\n\r\nDevice 0: &quot;Tesla C2050 \/ C2070&quot; with Compute 2.0 capability\r\n\r\nUsing Matrix Sizes: A(640 x 960), B(640 x 640), C(640 x 960)\r\n\r\nRuning Kernels...\r\n\r\n&gt; CUBLAS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Throughput = 425.5354 GFlop\/s, Time = 0.00185 s, Size = 786432000 Ops\r\n\r\n&gt; CUDA matrixMul Throughput = 186.7655 GFlop\/s, Time = 0.00421 s, Size = 786432000 Ops, NumDevsUsed = 1, Workgroup = 1024\r\n\r\nComparing GPU results with Host computation...\r\n\r\nComparing CUBLAS &amp; Host results\r\nCUBLAS compares OK\r\n\r\nComparing CUDA matrixMul &amp; Host results\r\nCUDA matrixMul compares OK\r\n\r\n&#x5B;matrixMul] test results...\r\nPASSED\r\n\r\nPress ENTER to exit...\r\n\r\n<\/pre>\n<p>\uff08 \uff9f\u0434\uff9f\uff09\uff8e\uff9f\uff76\uff70\uff9d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5099\u5fd8\u9332\u4ee5\u4e0a\u306e\u4f55\u3082\u306e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3067\u3059\uff0e CUDA4.0\u306fUbuntu\u306b\u95a2\u3057\u306610.10\u3092\u6b63\u5f0f\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61\u3068\u3057\u3066\u308b\u306e\u3082\u3042\u3063\u3066\uff0c\u30cf\u30c3\u30ad\u30ea\u8a00\u3063\u3066\uff0c\u5c0e\u5165\u306b\u8e93\u304f\u8981\u7d20\u306f\u306a\u3044\u3067\u3059\uff0e \u3061\u306a\u307f\u306b\u50d5\u306e\u30e1\u30a4\u30f3\u30de\u30b7\u30f3\u306f\u30e2\u30d0\u30a4\u30eb\u30ce\u30fc\u30c8(Think [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13,7,10],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-1","tag-cuda","tag-linux","tag-10"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}