{"id":2954,"date":"2020-03-21T22:58:44","date_gmt":"2020-03-21T13:58:44","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=2954"},"modified":"2023-08-26T10:46:35","modified_gmt":"2023-08-26T01:46:35","slug":"ubuntu-18-04-lts-desktop%e3%81%abcuda-10-2%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/2954","title":{"rendered":"Ubuntu Desktop 18.04\u306bCUDA 10.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001\u672c\u6821\u57f7\u7b46\u6642\u306e\u6700\u65b0\u7248\u306eCUDA 10.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u4f7f\u7528\u3057\u305f\u74b0\u5883<\/h2>\n<ul>\n<li>Intel\u00ae Core\u2122 i5-7500<\/li>\n<li>GeForce GTX 1050 Ti<\/li>\n<li>Ubuntu 18.04 LTS Desktop (18.04.3)<\/li>\n<li>CUDA 10.2<\/li>\n<\/ul>\n<h2>CUDA 10.2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0a\u306e\u6ce8\u610f\u70b9<\/h2>\n<p>Ubuntu 18.04 LTS Desktop\u3092\u6700\u65b0\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066CUDA\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u305f\u3081\u3001Ubuntu 18.04.3\u306e\u521d\u671f\u72b6\u614b\u304b\u3089\u30d1\u30c3\u30c1\u3092\u9069\u7528\u305b\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u203bCUDA\u3067\u306f\u3001\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5fc5\u8981\u3068\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get -y install cuda\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nSome packages could not be installed. This may mean that you have\r\nrequested an impossible situation or if you are using the unstable\r\ndistribution that some required packages have not yet been created\r\nor been moved out of Incoming.\r\nThe following information may help to resolve the situation:\r\n\r\nThe following packages have unmet dependencies:\r\n cuda : Depends: cuda-10-2 (&gt;= 10.2.89) but it is not going to be installed\r\nE: Unable to correct problems, you have held broken packages.\r\n<\/pre>\n<h2>CUDA 10.2\u3092\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>CUDA 10.2\u3092NVIDIA\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u8a18\u8f09\u306e\u901a\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u56fa\u5b9a\u3067\u306f\u306a\u304f\u3001CUDA\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002\u203bCUDA\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30682GB\u8fd1\u304f\u306b\u306a\u308a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu1804\/x86_64\/cuda-ubuntu1804.pin\r\n$ sudo mv cuda-ubuntu1804.pin \/etc\/apt\/preferences.d\/cuda-repository-pin-600\r\n$ sudo apt-key adv --fetch-keys https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu1804\/x86_64\/7fa2af80.pub\r\n$ sudo add-apt-repository &quot;deb http:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu1804\/x86_64\/ \/&quot;\r\n$ sudo apt-get update\r\n$ sudo apt-get -y install cuda\r\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30de\u30b7\u30f3\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h2>CUDA 10.2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u78ba\u8a8d<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u306e\u78ba\u8a8d\u3068\u3057\u3066\u3001NVIDIA\u306e\u30c9\u30e9\u30a4\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ nvidia-smi\r\nSat Mar 21 23:35:49 2020       \r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 440.64.00    Driver Version: 440.64.00    CUDA Version: 10.2     |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n| Fan  Temp  Perf  Pwr:Usage\/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n|===============================+======================+======================|\r\n|   0  GeForce GTX 105...  On   | 00000000:01:00.0 Off |                  N\/A |\r\n| 35%   34C    P0    N\/A \/  75W |    407MiB \/  4040MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n                                                                               \r\n+-----------------------------------------------------------------------------+\r\n| Processes:                                                       GPU Memory |\r\n|  GPU       PID   Type   Process name                             Usage      |\r\n|=============================================================================|\r\n|    0      1336      G   \/usr\/lib\/xorg\/Xorg                           287MiB |\r\n|    0      1467      G   \/usr\/bin\/gnome-shell                         116MiB |\r\n+-----------------------------------------------------------------------------+\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>CUDA\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3068\u306e\u30de\u30c3\u30c1\u30f3\u30b0\u304c\u53b3\u3057\u304f\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u306e\u5224\u65ad\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001\u672c\u6821\u57f7\u7b46\u6642\u306e\u6700\u65b0\u7248\u306eCUDA 10.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u4f7f\u7528\u3057\u305f\u74b0\u5883 Intel\u00ae Core\u2122 i5-7500 GeForce GTX 1050 Ti Ubuntu 18.04 LT\u2026<\/p>\n","protected":false},"author":1,"featured_media":642,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[958],"tags":[58,51,274,361],"class_list":["post-2954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gpu","tag-cuda","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-18-04"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=2954"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2954\/revisions"}],"predecessor-version":[{"id":14223,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2954\/revisions\/14223"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/642"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=2954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=2954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=2954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}