{"id":5310,"date":"2023-08-31T23:32:17","date_gmt":"2023-08-31T14:32:17","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=5310"},"modified":"2023-08-31T23:33:43","modified_gmt":"2023-08-31T14:33:43","slug":"pytorch%e3%81%a8cuda-toolkit-cudnn%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%abanaconda%e3%81%aa%e3%81%97","status":"publish","type":"post","link":"https:\/\/obenkyolab.com\/?p=5310","title":{"rendered":"Pytorch\u3068CUDA toolkit &#038; cuDNN\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(Anaconda\u306a\u3057)"},"content":{"rendered":"\n<p>Python\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u884c\u3046\u5834\u5408\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u308bPytorch\u3068NVIDIA GPU\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306eCUDA\u3000toolkit\u3068cuDNN\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001Anaconda\u3067\u306f\u306a\u304f\u3001\u7d20\u306ePython\u306bPytorch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/obenkyolab.com\/?p=5310\/#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%85%88%E7%92%B0%E5%A2%83\" >\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u74b0\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/obenkyolab.com\/?p=5310\/#CUDA_toolkit%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >CUDA toolkit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/obenkyolab.com\/?p=5310\/#cuDNN%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >cuDNN\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/obenkyolab.com\/?p=5310\/#Pytorch%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >Pytorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/obenkyolab.com\/?p=5310\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%85%88%E7%92%B0%E5%A2%83\"><\/span>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows11 Home<\/li>\n\n\n\n<li>intel core i7-13700F<\/li>\n\n\n\n<li>\u30e1\u30e2\u30ea16GB<\/li>\n\n\n\n<li>GPU NVIDIA GeForce RTX3050<\/li>\n\n\n\n<li>Python 3.9.13<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"CUDA_toolkit%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>CUDA toolkit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/developer.nvidia.com\/accelerated-computing-toolkit\">Nvidia\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30c8<\/a>\u306b\u884c\u304d\u307e\u3059\u3002\u30e9\u30a4\u30f3\u30ca\u30c3\u30d7\u306e\u4e2d\u306bCUDA toolkit\u304c\u3042\u308b\u306e\u3067\u305d\u3053\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5834\u6240\u3078\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3060\u3068\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308bCUDA toolkit\u306e12.2\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u524d\u63d0\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u81ea\u74b0\u5883\u3067\u3042\u308bWindows11\u306eexe(network)\u3092\u9078\u629e\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"341\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-700x341.png\" alt=\"\" class=\"wp-image-5312\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-700x341.png 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-300x146.png 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-768x375.png 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-1536x749.png 1536w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-13-2048x999.png 2048w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u843d\u3061\u3066\u304d\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u5b9f\u884c\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b7\u30b9\u30c6\u30e0\u30c1\u30a7\u30c3\u30af\u304c\u901a\u3063\u305f\u3089\u4f7f\u7528\u8a31\u8afe\u5951\u7d04\u66f8\u306b\u540c\u610f\u3057\u3066\u7d9a\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-700x514.jpg\" alt=\"\" class=\"wp-image-5313\" style=\"width:609px;height:447px\" width=\"609\" height=\"447\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-700x514.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-300x220.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-768x564.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14.jpg 927w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u306f[\u9ad8\u901f]\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-1-700x517.jpg\" alt=\"\" class=\"wp-image-5314\" style=\"width:643px;height:475px\" width=\"643\" height=\"475\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-1-700x517.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-1-300x222.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-1-768x567.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-1.jpg 925w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/figure>\n\n\n\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067CUDA Visual Studio Integration\u306b\u95a2\u3059\u308b\u78ba\u8a8d\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002Visual Studio\u3092\u5165\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u8868\u793a\u3055\u308c\u305f\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u7406\u89e3\u3057\u307e\u3057\u305f\u3001\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u3066\u6b21\u3078<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"515\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-2-700x515.jpg\" alt=\"\" class=\"wp-image-5315\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-2-700x515.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-2-300x221.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-2-768x565.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-2.jpg 921w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u9078\u629e\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u6b21\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"517\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-3-700x517.jpg\" alt=\"\" class=\"wp-image-5316\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-3-700x517.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-3-300x222.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-3-768x568.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-3.jpg 924w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u3001Summary \u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-4-700x521.jpg\" alt=\"\" class=\"wp-image-5317\" style=\"width:590px;height:439px\" width=\"590\" height=\"439\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-4-700x521.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-4-300x223.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-4-768x571.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-4.jpg 922w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/figure>\n\n\n\n<p>\u7121\u4e8b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-5-700x516.jpg\" alt=\"\" class=\"wp-image-5318\" style=\"width:522px;height:385px\" width=\"522\" height=\"385\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-5-700x516.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-5-300x221.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-5-768x566.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-5.jpg 922w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u901a\u308anvcc\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u3066\u3044\u308c\u3070\u7121\u4e8b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>&gt;nvcc -V\n\nnvcc: NVIDIA (R) Cuda compiler driver\nCopyright (c) 2005-2023 NVIDIA Corporation\nBuilt on Tue_Jul_11_03:10:21_Pacific_Daylight_Time_2023\nCuda compilation tools, release 12.2, V12.2.128\nBuild cuda_12.2.r12.2\/compiler.33053471_0\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"cuDNN%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>cuDNN\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7d9a\u3044\u3066cuDNN\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002cuDNN\u306fCUDA\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u9ad8\u901f\u306b\u884c\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067Pytorch\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u5fc5\u8981\u306a\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/developer.nvidia.com\/cudnn\">cuDNN\u306e\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3057\u3001NIVIDIA\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u3092\u6c42\u3081\u3089\u308c\u305f\u305f\u3081\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u306a\u3044\u5834\u5408\u306f\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u5f8c\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30e1\u30cb\u30e5\u30fc\u304b\u3089cuDNN \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u5148\u307b\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCUDA toolkit\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u5408\u308f\u305b\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3053\u3053\u3067\u306f[CUDA 12.x]\u3092\u9078\u629e\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"315\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-700x315.jpg\" alt=\"\" class=\"wp-image-5320\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-700x315.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-300x135.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-768x345.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-1536x690.jpg 1536w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-6-2048x920.jpg 2048w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u306e\u3067\u89e3\u51cd\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"312\" height=\"33\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14.png\" alt=\"\" class=\"wp-image-5322\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14.png 312w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-14-300x32.png 300w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/figure>\n\n\n\n<p>\u305d\u3057\u3066\u3001CUDA toolkit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306b\u4f5c\u6210\u3055\u308c\u305f\u4ee5\u4e0b\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306bcuDNN\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">C:\\Program Files\\NVIDIA GPU Computing Toolkit<\/p>\n\n\n\n<p>\u4f5c\u6210\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u3001\u3064\u307e\u308a\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u89e3\u51cd\u3057\u305fcuDNN\u306e\u4e2d\u8eab\u3092\u3059\u3079\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">C:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u306e\u74b0\u5883\u5909\u6570\u8a2d\u5b9a\u3067PATH\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">C:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN\\bin<\/p>\n\n\n\n<p>\u3053\u308c\u3067cuDNN\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306bwhere\u3067\u78ba\u8a8d\u3067\u304d\u308c\u3070\uff2f\uff2b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>&gt;where cudnn64_8.dll\n\nC:\\Program Files\\NVIDIA GPU Computing Toolkit\\cuDNN\\bin\\cudnn64_8.dll<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Pytorch%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>Pytorch\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6700\u5f8c\u306bPytorch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n\n\n\n<p><a href=\"https:\/\/pytorch.org\/get-started\/locally\/\">Pytorch\u306e\u30b5\u30a4\u30c8<\/a>\u3067\u5bfe\u5fdc\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4eca\u56deCUDA\u306e12.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u5bfe\u5fdc\u3059\u308bPytorch\u304cPreview(Nightly)\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3057\u304b\u3082\u3001 Compute Platform\u3082CUDA12.1\u307e\u3067\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u30fb\u30fb\u30fb\u3061\u3083\u3093\u3068Pytorch\u5074\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089CUDA\u4e00\u5f0f\u3092\u5165\u308c\u308b\u3079\u304d\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u3044\u3063\u305f\u3093CUDA12.1\u3067\u52d5\u304f\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u9078\u629e\u3057\u3001pip\u30b3\u30de\u30f3\u30c9\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"522\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15-700x522.jpg\" alt=\"\" class=\"wp-image-5324\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15-700x522.jpg 700w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15-300x224.jpg 300w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15-768x573.jpg 768w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15.jpg 1425w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u751f\u6210\u3055\u308c\u305fpip\u3092\u81ea\u5206\u306ePython \u74b0\u5883\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>pip3 install --pre torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/nightly\/cu121<\/code><\/pre><\/div>\n\n\n\n<p>pip\u3057\u3066\u304b\u3089\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6700\u5f8c\u306e\u90e8\u5206\u3092cu122\u306b\u5909\u66f4\u3059\u308c\u3070\u300112.2\u5bfe\u5fdc\u306ePytorch\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u304b\u3082\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u306a\u3093\u3068\u304b\u7121\u4e8b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">Successfully installed filelock-3.9.0 fsspec-2023.4.0 mpmath-1.2.1 networkx-3.0rc1 sympy-1.11.1 torch-2.1.0.dev20230828+cu121 torchaudio-2.1.0.dev20230828+cu121 torchvision-0.16.0.dev20230828+cu121<\/p>\n\n\n\n<p>\u4e00\u5fdcPython\u3067import torch\u3057\u3066\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001cuda\u306f\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u300212.1 \u306etorch\u3067\u554f\u984c\u304c\u8d77\u3053\u3089\u306a\u3044\u304b\u306f\u4eca\u5f8c\u89e6\u308a\u306a\u304c\u3089\u691c\u8a3c\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"307\" height=\"124\" src=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15.png\" alt=\"\" class=\"wp-image-5325\" srcset=\"https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15.png 307w, https:\/\/obenkyolab.com\/wp-content\/uploads\/2023\/08\/image-15-300x121.png 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CUDA toolkit\u3068cuDNN\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5408\u308f\u305b\u308b\u5fc5\u8981\u3042\u308a<\/li>\n\n\n\n<li>Pytorch\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u3042\u3089\u304b\u3058\u3081\u78ba\u8a8d\u3057\u3066\u304b\u3089CUDA\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u884c\u3046\u5834\u5408\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u308bPytor&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1218,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=5310","footnotes":""},"categories":[7,112,53],"tags":[],"class_list":["post-5310","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-pytorch","category-53","ja"],"_links":{"self":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/5310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5310"}],"version-history":[{"count":6,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/5310\/revisions"}],"predecessor-version":[{"id":5327,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/5310\/revisions\/5327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/media\/1218"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}