{"id":454,"date":"2025-11-25T07:48:00","date_gmt":"2025-11-24T22:48:00","guid":{"rendered":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/?page_id=454"},"modified":"2025-11-26T08:55:43","modified_gmt":"2025-11-25T23:55:43","slug":"gpuwithwsl","status":"publish","type":"page","link":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/?page_id=454","title":{"rendered":"GPUwithWSL"},"content":{"rendered":"\n<p>\u3053\u3053\u306b\u8a18\u8f09\u306e\u5185\u5bb9\u306f\u3001\u500b\u4eba\u7684\u306b\u3053\u3046\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3060\u3051\u3067\u3001\u3053\u3046\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304d\u307e\u3059\u3001\u3068\u3044\u3046\u4e3b\u65e8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8a18\u8f09\u5185\u5bb9\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u5834\u5408\u3084\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u306b\u3088\u3063\u3066\u74b0\u5883\u4f9d\u5b58\u90e8\u5206\u304c\u751f\u3058\u3066\u3001\u7d50\u679c\u300c\u3053\u3046\u3067\u306f\u306a\u3044\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3068\u306b\u304b\u304f\u3001\u79c1\u3053\u3046\u3057\u3066\u307e\u3059\u3068\u3044\u3046\u30e1\u30e2\u306b\u904e\u304e\u306a\u3044\u3053\u3068\u3092\u3054\u627f\u77e5\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u30012025\u5e7411\u6708\u6642\u70b9\u3067\u306e\u30e1\u30e2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff0e\u3084\u308a\u305f\u3044\u3053\u3068<\/p>\n\n\n\n<p>\u30db\u30b9\u30c8\u30de\u30b7\u30f3\u304c<strong>Windows11Pro<\/strong>\u3067\u3001\u305d\u306e\u4e0a\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u306eOS\u3092<strong>Ubuntu<\/strong>\u3068\u3057\u3066\u3001\u30b2\u30b9\u30c8\u5074\u3067<strong>GPU<\/strong>\u3092\u4f7f\u3063\u3066\u5bfe\u5fdc\u30b3\u30fc\u30c9\u3092\u52d5\u304b\u3057\u305f\u3044\u3002<\/p>\n\n\n\n<p>\uff12\uff0e\u500b\u4eba\u7684\u306a\u9078\u629e\u80a2\uff08\u7121\u511f\u3067\u3067\u304d\u308b\u7bc4\u56f2\uff09<\/p>\n\n\n\n<p>Hyper-V\u3067\u306e\u4eee\u60f3\u30de\u30b7\u30f3(Ubuntu)\u3000or\u3000WSL2\u4e0a\u306eUbuntu(22.04)\u3002\u305f\u3060\u3057\u3001Hyper-V\u30b2\u30b9\u30c8\u6a5f\u306bDDA\u3084GPUPartitioning\u3067\u6e21\u3059\u3068\u3044\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001<strong>WSL2\u4e0a\u306eUbuntu<\/strong>\u306b\u76f4\u63a5\u3001\u3068\u3044\u3046\u9078\u629e\u80a2\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>3. \u4f5c\u696d\u30fb\u8d70\u67fb<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30db\u30b9\u30c8\u5074\u306eWindows11Pro\u306b\u306fWSL\u5bfe\u5fdcDriver\u3092\u5165\u308c\u307e\u3059(\u4e0b\u8a18URL\u3067&#8221;Get CUDA Driver&#8221;\u9078\u629e)<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.nvidia.com\/cuda\/wsl\">https:\/\/developer.nvidia.com\/cuda\/wsl<\/a> <\/li>\n\n\n\n<li>\u4f8b\u3048\u3070\u3001NVIDIA GeForce RTX3080 \u3067Windows11\u306e\u3088\u3046\u306b\u3057\u3066\u9078\u629e<\/li>\n\n\n\n<li>Game Ready\u3068Studio\u306e\u9078\u629e\u306b\u306a\u308c\u3070python\u30b3\u30fc\u30c9\u3067\u8a08\u7b97\u3055\u305b\u308b\u306a\u3089\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u5f8c\u8005\u3092\u9078\u3073\u307e\u3057\u305f\uff08\u3053\u308c\u3092\u66f8\u3044\u3066\u308b\u6642\u306b\u4f7f\u3063\u3066\u308b\u30de\u30b7\u30f3\u306b\u306f\u3001\u65e2\u306b566.03\u306e\u30c9\u30e9\u30a4\u30d0\u304c\u5165\u3063\u3066\u308b\u72b6\u614b\u306a\u306e\u3067\u3001\u5b9f\u969b\u306b\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u306a\u308a\u307e\u3059\u304c\u3001581.57\u307e\u3067\u4e0a\u304c\u308a\u307e\u3059\uff09<\/li>\n\n\n\n<li>DL\u5143\u306fnvidia\u3067\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u306f\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u3067\u3001\u30db\u30b9\u30c8\u5074\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u3053\u306e\u6642\u70b9\u3067\u3001\u30b2\u30b9\u30c8\u5074\u3067nvidia-smi\u3059\u308b\u3068\u7248\u304c\u4e0a\u304c\u3063\u3066\u3044\u308b\u3051\u3069\u3053\u308c\u306f\u30db\u30b9\u30c8\u5074\u306e\u60c5\u5831\u304c\u51fa\u3066\u307e\u3059\u3002\u9006\u306b\u3044\u3046\u3068\u3001WSL\u306f\u30db\u30b9\u30c8\u5074\u3068\u540c\u3058\u30ea\u30bd\u30fc\u30b9\u3092\u8a8d\u8b58\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001wsl\u306ecuda-toolkit\u306f\u660e\u793a\u7684\u306b\u4e0a\u3052\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u30b2\u30b9\u30c8\u5074\u3067\u4ee5\u4e0b\u3092\u5b9f\u65bd\uff09<\/li>\n\n\n\n<li>sudo apt install nvidia-cuda-toolkit<\/li>\n\n\n\n<li>\u3067<\/li>\n\n\n\n<li>nvcc &#8211;version<\/li>\n\n\n\n<li>\u3067\u898b\u307e\u3059\u3068\u3001\u3042\u307e\u308a\u65b0\u3057\u304f\u306a\u3044\u3067\u3059\u3002\u3067\u3001\u7d50\u5c40<\/li>\n\n\n\n<li>sudo apt-get remove &#8211;purge cuda-toolkit*<\/li>\n\n\n\n<li>sudo apt-get autoremove<\/li>\n\n\n\n<li>\u3057\u3066<\/li>\n\n\n\n<li>wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2204\/x86_64\/cuda-keyring_1.1-1_all.deb<\/li>\n\n\n\n<li>\u3057\u3066<\/li>\n\n\n\n<li>sudo dpkg -i cuda-keyring_1.1-1_all.deb<\/li>\n\n\n\n<li>\u3057\u307e\u3059\u3002\u3067\u3001\u6700\u65b0\u7248\u306f\u4ee5\u4e0b\u304b\u306a\u3002<\/li>\n\n\n\n<li>sudo apt-get install cuda-toolkit-12-6<\/li>\n\n\n\n<li>\u3067\u3001\u30d1\u30b9\u3092~\/.bashrc<\/li>\n\n\n\n<li>export PATH=\/usr\/local\/cuda-12.6\/bin:$PATH<\/li>\n\n\n\n<li>source ~\/.bashrc<\/li>\n\n\n\n<li>\u3067\u3001\u78ba\u8a8d<\/li>\n\n\n\n<li>nvcc &#8211;version<\/li>\n\n\n\n<li>\u4e0a\u304c\u3063\u3066\u3044\u308b\uff0812.6\uff09\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u306b\u8a18\u8f09\u306e\u5185\u5bb9\u306f\u3001\u500b\u4eba\u7684\u306b\u3053\u3046\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3060\u3051\u3067\u3001\u3053\u3046\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304d\u307e\u3059\u3001 &hellip; <a href=\"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/?page_id=454\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-454","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/pages\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=454"}],"version-history":[{"count":3,"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/pages\/454\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=\/wp\/v2\/pages\/454\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/wwp.ait.tokushima-u.ac.jp\/ma2lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}