{"id":3083,"date":"2020-03-26T01:30:21","date_gmt":"2020-03-25T16:30:21","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=3083"},"modified":"2023-08-26T11:10:02","modified_gmt":"2023-08-26T02:10:02","slug":"ubuntu-18-04-lts-desktop%e3%81%abcuda%e3%81%ab%e3%82%88%e3%82%8b%e3%83%87%e3%82%a3%e3%83%bc%e3%83%97%e3%83%a9%e3%83%bc%e3%83%8b%e3%83%b3%e3%82%b0%e7%92%b0%e5%a2%83%e3%82%92%e6%a7%8b%e7%af%89%ef%bc%88p","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/3083","title":{"rendered":"Ubuntu Desktop 18.04\u306bCUDA\/Anaconda\u306b\u3088\u308b\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01\uff08PyTorch\uff09"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001CUDA\u306b\u3088\u308bPyTorch\u306e\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u3057\u305f\u74b0\u5883<\/h2>\n<ul>\n<li>GeForce GTX 1050 Ti<\/li>\n<li>Ubuntu 18.04 LTS Desktop (18.04.3)<\/li>\n<li>CUDA 10.1<\/li>\n<li>cuDNN 7.6.5<\/li>\n<li>Anaconda 2020.02 (Python 3.7)<\/li>\n<li>PyTorch (GPU)<\/li>\n<\/ul>\n<h2>CUDA 10.1\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>CUDA 10.1\u3092\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/lab4ict.com\/system\/archives\/3053\" rel=\"noopener noreferrer\" target=\"_blank\">Ubuntu 18.04 LTS Desktop\u306bCUDA 10.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<\/ul>\n<h2>cuDNN 7.6.5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30c7\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30eacuDNN 7.6.5\u3092\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/lab4ict.com\/system\/archives\/2969\" rel=\"noopener noreferrer\" target=\"_blank\">Ubuntu 18.04 LTS Desktop\u306bcuDNN 7.6.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<\/ul>\n<h2>Anaconda 2020.02\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>python\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306bAnaconda\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/lab4ict.com\/system\/archives\/3040\" rel=\"noopener noreferrer\" target=\"_blank\">Ubuntu 18.04 LTS Desktop\u306bPython\u74b0\u5883\uff08Anaconda\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<\/ul>\n<h2>PyTorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>PyTorch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h3>PyTorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u5b9f\u884c<\/h3>\n<p><a href=\"https:\/\/pytorch.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">PyTorch\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a>\u3067\u4ee5\u4e0b\u3092\u9078\u629e\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>PyTorch Build : Stable (1.4)<\/li>\n<li>Your OS : Linux<\/li>\n<li>Package : conda<\/li>\n<li>Language : Python\/li>\n<li>CUDA : 10.1<\/li>\n<\/ul>\n<p>\u8868\u793a\u3055\u308c\u305f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ conda install pytorch torchvision cudatoolkit=10.1 -c pytorch\r\nSolving environment: done\r\n\r\n## Package Plan ##\r\n\r\n  environment location: \/home\/sysadm01\/anaconda3\r\n\r\n  added \/ updated specs:\r\n    - cudatoolkit=10.1\r\n    - pytorch\r\n    - torchvision\r\n\r\n\r\nThe following packages will be downloaded:\r\n\r\n    package                    |            build\r\n    ---------------------------|-----------------\r\n    conda-4.8.3                |           py37_0         2.8 MB\r\n    cudatoolkit-10.1.243       |       h6bb024c_0       347.4 MB\r\n    ninja-1.9.0                |   py37hfd86e86_0         1.2 MB\r\n    pytorch-1.4.0              |py3.7_cuda10.1.243_cudnn7.6.3_0       432.9 MB  pytorch\r\n    torchvision-0.5.0          |       py37_cu101         9.1 MB  pytorch\r\n    ------------------------------------------------------------\r\n                                           Total:       793.5 MB\r\n\r\nThe following NEW packages will be INSTALLED:\r\n\r\n  cudatoolkit        pkgs\/main\/linux-64::cudatoolkit-10.1.243-h6bb024c_0\r\n  ninja              pkgs\/main\/linux-64::ninja-1.9.0-py37hfd86e86_0\r\n  pytorch            pytorch\/linux-64::pytorch-1.4.0-py3.7_cuda10.1.243_cudnn7.6.3_0\r\n  torchvision        pytorch\/linux-64::torchvision-0.5.0-py37_cu101\r\n\r\nThe following packages will be UPDATED:\r\n\r\n  conda                                        4.8.2-py37_0 --&gt; 4.8.3-py37_0\r\n\r\n\r\nProceed (&#x5B;y]\/n)? y\r\n\r\n\r\nDownloading and Extracting Packages\r\nconda-4.8.3          | 2.8 MB    | ##################################### | 100% \r\ntorchvision-0.5.0    | 9.1 MB    | ##################################### | 100% \r\nninja-1.9.0          | 1.2 MB    | ##################################### | 100% \r\npytorch-1.4.0        | 432.9 MB  | ##################################### | 100% \r\ncudatoolkit-10.1.243 | 347.4 MB  | ##################################### | 100% \r\nPreparing transaction: done\r\nVerifying transaction: done\r\nExecuting transaction: done\r\n<\/pre>\n<h3>PyTorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u691c\u8a3c<\/h3>\n<p>\u6700\u521d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b9f\u884c\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ python\r\nPython 3.7.6 (default, Jan  8 2020, 19:59:22) \r\n&#x5B;GCC 7.3.0] :: Anaconda, Inc. on linux\r\nType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.\r\n&gt;&gt;&gt; from __future__ import print_function\r\n&gt;&gt;&gt; import torch\r\n&gt;&gt;&gt; x = torch.empty(5, 3)\r\n&gt;&gt;&gt; print(x)\r\ntensor(&#x5B;&#x5B;1.1663e-38, 1.1663e-38, 1.1663e-38],\r\n        &#x5B;1.1663e-38, 1.1663e-38, 1.1664e-38],\r\n        &#x5B;1.1663e-38, 1.1663e-38, 1.5208e-37],\r\n        &#x5B;1.6898e-37, 1.1388e-37, 1.0947e-37],\r\n        &#x5B;1.1663e-38, 1.1663e-38, 1.1663e-38]])\r\n&gt;&gt;&gt; exit()\r\n<\/pre>\n<h2>GPU\u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408<\/h2>\n<p>GPU\u3092\u4f7f\u7528\u305b\u305a\u3001CPU\u306e\u307f\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u672c\u7a3f\u306e\u300cAnaconda 2020.02\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u304b\u3089\u958b\u59cb\u3057\u3001PyTorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u4ee5\u4e0b\u306eCPU\u306a\u3057\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ conda install pytorch torchvision cpuonly -c pytorch\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u672c\u7a3f\u3067\u306f\u3001Anaconda\u306e\u74b0\u5883\u306bPyTorch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/pytorch.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">PyTorch<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/14224\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AI\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/09\/eyecatch_ai_03-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AI\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">AI\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002\uff01...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001CUDA\u306b\u3088\u308bPyTorch\u306e\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":642,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[60,58,396,61,51,274,361],"class_list":["post-3083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pytorch","tag-anaconda","tag-cuda","tag-python","tag-pytorch","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-18-04"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3083","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=3083"}],"version-history":[{"count":3,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3083\/revisions"}],"predecessor-version":[{"id":14230,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/3083\/revisions\/14230"}],"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=3083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=3083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=3083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}