{"id":3053,"date":"2020-03-24T19:19:37","date_gmt":"2020-03-24T10:19:37","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=3053"},"modified":"2023-08-26T10:45:15","modified_gmt":"2023-08-26T01:45:15","slug":"ubuntu-18-04-lts-desktop%e3%81%abcuda-10-1%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\/3053","title":{"rendered":"Ubuntu Desktop 18.04\u306bCUDA 10.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001CUDA 10.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u672c\u6821\u57f7\u7b46\u6642\u70b9\u3067\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\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 1060<\/li>\n<li>GeForce GTX 1070<\/li>\n<li>Ubuntu 18.04 LTS Desktop (18.04.1)<\/li>\n<li>CUDA 10.1<\/li>\n<\/ul>\n<h2>CUDA 10.1\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>CUDA 10.1\u306erunfile\u5f62\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092<a href=\"https:\/\/developer.nvidia.com\/cuda-10.1-download-archive-base?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=runfilelocal\" rel=\"noopener noreferrer\" target=\"_blank\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3057\u3001NVIDIA\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u8a18\u8f09\u306e\u901a\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h3>build-essential\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>build-essential\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install build-essential\r\n<\/pre>\n<h3>\u65e2\u5b58\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u524a\u9664<\/h3>\n<p>\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u5834\u5408\u306f\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\nsudo rm \/etc\/apt\/sources.list.d\/cuda*\r\nsudo apt-get --purge remove nvidia-*\r\nsudo apt-get --purge remove cuda-*\r\n<\/pre>\n<h3>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30c9\u30e9\u30a4\u30d0\u300cnouveau\u300d\u306e\u7121\u52b9\u5316<\/h3>\n<p>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30c9\u30e9\u30a4\u30d0\u300cnouveau\u300d\u306e\u7121\u52b9\u5316\u3092\u884c\u3044\u3001\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,10,11,12,15,17]; title: ; notranslate\" title=\"\">\r\n$ lsmod | grep nouveau\r\nnouveau              1716224  5\r\nmxm_wmi                16384  1 nouveau\r\nwmi                    24576  2 mxm_wmi,nouveau\r\nttm                   106496  1 nouveau\r\ni2c_algo_bit           16384  2 nouveau,i915\r\ndrm_kms_helper        172032  2 nouveau,i915\r\ndrm                   401408  12 nouveau,i915,ttm,drm_kms_helper\r\nvideo                  45056  2 nouveau,i915\r\n$ sudo bash -c &quot;echo blacklist nouveau &gt; \/etc\/modprobe.d\/nvidia-installer-disable-nouveau.conf&quot;\r\n$ sudo bash -c &quot;echo options nouveau modeset=0 &gt;&gt; \/etc\/modprobe.d\/nvidia-installer-disable-nouveau.conf&quot;\r\n$ cat \/etc\/modprobe.d\/nvidia-installer-disable-nouveau.conf\r\nblacklist nouveau\r\noptions nouveau modeset=0\r\n$ sudo update-initramfs -u\r\nupdate-initramfs: Generating \/boot\/initrd.img-4.15.0-29-generic\r\n$ sudo reboot\r\n<\/pre>\n<h3>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5b9f\u884c<\/h3>\n<p>\u300cnouveau\u300d\u304c\u7121\u52b9\u5316\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3001runfile\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306b\u540c\u610f\u3057\u3001\u5168\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u9078\u629e\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n$ lsmod | grep nouveau\r\n$ cd $HOME\/Downloads\r\n$ sudo sh cuda_10.1.105_418.39_linux.run\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.1\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\nFri May  1 07:12:34 2020       \r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 418.39       Driver Version: 418.39       CUDA Version: 10.1     |\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 1070    Off  | 00000000:02:00.0 Off |                  N\/A |\r\n|  0%   42C    P0    31W \/ 151W |      0MiB \/  8119MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n|   1  GeForce GTX 106...  Off  | 00000000:03:00.0 Off |                  N\/A |\r\n| 49%   28C    P0    29W \/ 120W |      0MiB \/  3019MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n|   2  GeForce GTX 106...  Off  | 00000000:05:00.0 Off |                  N\/A |\r\n| 14%   34C    P0    24W \/ 120W |      0MiB \/  3019MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n|   3  GeForce GTX 106...  Off  | 00000000:06:00.0 Off |                  N\/A |\r\n|  5%   32C    P0    25W \/ 120W |      0MiB \/  3019MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n|   4  GeForce GTX 1070    Off  | 00000000:07:00.0 Off |                  N\/A |\r\n|  0%   38C    P0    30W \/ 151W |      0MiB \/  8119MiB |      4%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n                                                                               \r\n+-----------------------------------------------------------------------------+\r\n| Processes:                                                       GPU Memory |\r\n|  GPU       PID   Type   Process name                             Usage      |\r\n|=============================================================================|\r\n|  No running processes found                                                 |\r\n+-----------------------------------------------------------------------------+\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001\u56de\u7dda\u304c\u9ad8\u901f\u306a\u5834\u5408\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u4fbf\u5229\u3067\u3059\u304c\u3001\u624b\u9806\u3092\u3042\u3084\u307e\u308b\u3068\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u56fa\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001runfile\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u78ba\u5b9f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001CUDA 10.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u672c\u6821\u57f7\u7b46\u6642\u70b9\u3067\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u4f7f\u7528\u3057\u305f\u74b0\u5883 Intel\u00ae Core\u2122 i5-7500 GeFo\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-3053","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\/3053","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=3053"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3053\/revisions"}],"predecessor-version":[{"id":14221,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3053\/revisions\/14221"}],"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=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}