DIGITS/InstallCuda.md at master · NVIDIA/DIGITS - GitHub
文章推薦指數: 80 %
CUDA Installation. Getting CUDA and the NVIDIA driver installed correctly on your machine can be tricky. This guide should tell you everything you need to ... Skiptocontent {{message}} NVIDIA / DIGITS Public Notifications Fork 1.4k Star 4.1k Code Issues 600 Pullrequests 29 Actions Projects 0 Security Insights More Code Issues Pullrequests Actions Projects Security Insights Permalink master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default DIGITS/docs/InstallCuda.md Gotofile Gotofile T Gotoline L Copypath Copypermalink Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. Cannotretrievecontributorsatthistime CUDAInstallation GPU Driver CUDAToolkit Debpackages Environment 124lines(91sloc) 5.41KB Raw Blame OpenwithDesktop Viewraw Viewblame CUDAInstallation GettingCUDAandtheNVIDIAdriverinstalledcorrectlyonyourmachinecanbetricky. Thisguideshouldtellyoueverythingyouneedtoknow(onUbuntu,atleast!). AnothergoodresourceistheCUDAinstallationguideforLinux. GPU YouwillneedanNVIDIAGPUifyouwanttouseCUDA. IfyouwanttousecuDNN,youwillneedaGPUwithcomputecapability>=3.0. Tofindoutwhatthecomputecapabilityofyourcardis,checkoneofthesewebsites: https://developer.nvidia.com/cuda-gpus https://en.wikipedia.org/wiki/CUDA#GPUs_supported YoucanalsousetheDIGITSdevice_querytooltocheckforthecomputemajorandminorversions: $digits/device_query.py Device#0: >>>CUDAattributes: nameTeslaK40c totalGlobalMem12079136768 clockRate745000 major3 minor5 >>>NVMLattributes: Totalmemory11519MB Usedmemory23MB Memoryutilization0% GPUutilization0% Temperature30C Driver OnUbuntu,youcaninstalladriverintwoways:witharunfileorwithaDebpackage. ItisrecommendedthatyouuseaDebpackagetoinstallyourdriver,unlessyouhaveanewGPUthatrequiresanewerdriverversion. Debpackagesaresimplertoinstall,uninstallandupgrade,whilerunfileinstallersareusefulifyouneedanewerdriverversion. Toinstallwitharunfile,downloadonefromtheNVIDIADriverDownloadswebsiteandfollowtheinstructions. Ifyourunintoanyproblems,lookatthe"AdditionalInformation"section. IMPORTANT:Ifyouusearunfiletoinstallyourdriver,don'tinstallthecudaDebpackage. Moreinformationbelow. CUDAToolkit OntheCUDADownloadswebsite,youwillseethreeoptionsforinstallingthetoolkit:runfile(local),deb(local),deb(network). deb(network)-ThisisaDebpackage,thepreferredmethod. ThisgivesyouaccesstoallofthepackagesintheCUDArepository,includingmultipletoolkitversions. dpkg-icuda-repo-ubuntu1404_7.5-18_amd64.deb apt-getupdate #Don'trunthiscommandyet-readbelowfirst #apt-getinstallcuda deb(local)-AlsoaDebpackage,aniceoptionifyouhaveabadnetworkconnection. Thedownsideisthatyoucan'tgetpackageupdatesandyouhavetoinstallseparatepackagesforCUDA7.0,7.5,etc. dpkg-icuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb apt-getupdate #Don'trunthiscommandyet-readbelowfirst #apt-getinstallcuda runfile(local)-Shellscript.Don'tusethisunlessyouhavetoforsomereason. Aswiththedriver(seeabove),itismoredifficulttouninstallorupgradeyourCUDAinstallationifyouusearunfileinstaller. shcuda_7.5.18_linux.run Debpackages AssumingyouchosetouseaDebpackageabove,herearesomeofthepackagesyoucaninstall: apt-getinstallcuda-Thiswillinstallthelatesttoolkit(currently7.5)andthelatestdriver(currentlynvidia-352). IMPORTANT:Don'tinstallthispackageifyouinstalledyourdriverwitharunfile.TheDebpackagemaynotbeabletofullyuninstallyourrunfiledriverinstallation. apt-getinstallcuda-toolkit-7-5-Installsonlythetoolkitandnotthedriver. apt-getinstallcuda-drivers-Installsonlythedriverandnotthetoolkit. Formoreinformation,seethe"MetaPackages"sectionoftheCUDAinstallationguideforLinux. Environment NOTE:YourenvironmentwillbesetupautomaticallywiththeCUDA8.0installers. Finally,youneedtosetupyourenvironmentcorrectlysothattheruntimelinkercanfindyoursharedlibraries. Thereareafewwaystodothis: Addanentryto/etc/ld.so.conf.d/. Thisrequiressudoprivileges. echo"/usr/local/cuda/lib64"|sudotee/etc/ld.so.conf.d/cuda64.conf sudoldconfig EditLD_LIBRARY_PATH. Thisdoesnotrequiresudoprivileges. Theexactformularequireddependsonwhichshellyouareusingandhowyoulogintoyourmachine. #Loginshell echo"exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64">>~/.profile&&source~/.profile #Non-logininteractiveshell(bash) echo"exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64">>~/.bashrc&&source~/.bashrc Furtherreadingonsettingpersistentenvironmentvariables: http://unix.stackexchange.com/q/117467/99570 http://askubuntu.com/q/210884/336440 Installthecuda-ld-conf-7-0package ThispackageismadeavailableonNVIDIA'smachinelearningrepo. WhenyouinstallDIGITSwithaDebpackage,thispackagegetsinstalledautomatically,soyoudon'thavetoworryaboutsettingupyourenvironment. Itsimplysetsupoption(1)foryouautomatically. Go Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.
延伸文章資訊
- 1Ubuntu 16.04 安裝CUDA、cuDNN 教學 - Medium
Step 0 如何選擇安裝的版本 · Step 1 安裝前的準備動作 · Step 2 安裝CUDA · Step 3 安裝NVIDIA GPU driver · Step 4 安裝cuDNN.
- 2Win10 安裝CUDA、cuDNN 教學. 上一篇有介紹如何 ... - Medium
上一篇有介紹如何在Ubuntu 安裝CUDA、cuDNN,本篇將要來介紹Win10 的CUDA、cuDNN 安裝教學. 安裝流程分為以下步驟,作業系統使用Windows 10.
- 3GPU 支援
GPU 支援 · 這個頁面中的內容 · Pip 套件. 舊版TensorFlow · 硬體需求 · 軟體需求 · Linux 設定. 使用apt 安裝CUDA · Windows 設定.
- 4Installation Guide Windows :: CUDA Toolkit Documentation
- 5CUDA Toolkit 11.6 Update 1 Downloads | NVIDIA Developer