DIGITS/InstallCuda.md at master · NVIDIA/DIGITS - GitHub

文章推薦指數: 80 %
投票人數:10人

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.



請為這篇文章評分?