Enable NVIDIA CUDA on WSL 2 | Microsoft Docs
文章推薦指數: 80 %
本文內容. Install Windows 11 or Windows 10, version 21H2; Install the GPU driver; Install WSL; Get started with NVIDIA CUDA.
跳到主要內容
已不再支援此瀏覽器。
請升級至MicrosoftEdge,以利用最新功能、安全性更新和技術支援。
下載MicrosoftEdge
其他資訊
目錄
結束焦點模式
閱讀英文
儲存
意見反應
編輯
共用
Twitter
LinkedIn
Facebook
電子郵件
WeChat
目錄
閱讀英文
儲存
目錄
閱讀英文
儲存
意見反應
編輯
Twitter
LinkedIn
Facebook
電子郵件
WeChat
目錄
EnableNVIDIACUDAonWSL
發行項
02/14/2022
閱讀時間2分鐘
2位參與者
此頁面有所助益嗎?
Yes
No
還有其他意見反應嗎?
系統會將意見反應傳送給Microsoft:按下[提交]按鈕,您的意見反應將用來改善Microsoft產品和服務。
隱私權原則。
送出
謝謝。
本文內容
Windows11andWindows10,version21H2supportrunningexistingMLtools,libraries,andpopularframeworksthatuseNVIDIACUDAforGPUhardwareaccelerationinsideaWSLinstance.ThisincludesPyTorchandTensorFlowaswellasalltheDockerandNVIDIAContainerToolkitsupportavailableinanativeLinuxenvironment.
InstallWindows11orWindows10,version21H2
Tousethesefeatures,youcandownloadandinstallWindows11orWindows10,version21H2.
InstalltheGPUdriver
DownloadandinstalltheNVIDIACUDAenableddriverforWSLtousewithyourexistingCUDAMLworkflows.
InstallWSL
Onceyou'veinstalledtheabovedriver,ensureyouenableWSLandinstallaglibc-baseddistribution(suchasUbuntuorDebian).EnsureyouhavethelatestkernelbyselectingCheckforupdatesintheWindowsUpdatesectionoftheSettingsapp.
Note
EnsureyouhaveReceiveupdatesforotherMicrosoftproductswhenyouupdateWindowsenabled.YoucanfinditinAdvancedoptionswithintheWindowsUpdatesectionoftheSettingsapp.
Forthesefeatures,youneedakernelversionof5.10.43.3orhigher.YoucanchecktheversionnumberbyrunningthefollowingcommandinPowerShell.
wslcat/proc/version
GetstartedwithNVIDIACUDA
NowfollowtheinstructionsintheNVIDIACUDAonWSLUserGuideandyoucanstartusingyourexisitingLinuxworkflowsthroughNVIDIADocker,orbyinstallingPyTorchorTensorFlowinsideWSL.
SharefeedbackonNVIDIA'ssupportviatheirCommunityforumforCUDAonWSL.
意見反應
提交並檢視相關的意見反應
本產品
本頁
檢視所有頁面意見反應
本文內容
延伸文章資訊
- 1GPU程式設計(1) -- Hello CUDA - iT 邦幫忙
CUDA Toolkits 是NVIDIA GPU 卡的程式工具箱,可呼叫相關函數,在GPU卡上進行相關數學運算,尤其是張量(Tensor),常用於圖形處理或深度學習的計算。
- 2CUDA Toolkit 11.6 Update 1 Downloads | NVIDIA Developer
Resources CUDA Documentation/Release NotesMacOS Tools Training Sample Code Forums Archive of Prev...
- 3硬體加速搞不懂?CUDA讓一切變得更簡單 - 電腦DIY
的資料現在都可以藉由GPU來執行,而且還做得更好!以NVIDIA所推出的CUDA技術來說,源起於GPGPU的運算技術經過改良之後正式命名為CUDA,但是有多數玩家並不了解何謂CUDA ...
- 4CUDA Toolkit | NVIDIA Developer
CUDA Toolkit Develop, Optimize and Deploy GPU-Accelerated Apps The NVIDIA® CUDA® Toolkit provides...
- 5什麼是CUDA? - NVIDIA 台灣官方部落格
它遠不止如此。CUDA 是一種平行編程的模型和架構,讓使用GPU 進行一般計算變得簡單而優雅。開發人員仍舊使用熟悉的C、 ...