当前位置:网站首页>Cuda11 is installed perfectly in win10 X + pytorch 1.9 (blood flowing into the river) cuda. is_ Available() becomes true!
Cuda11 is installed perfectly in win10 X + pytorch 1.9 (blood flowing into the river) cuda. is_ Available() becomes true!
2022-04-23 03:40:00 【Cooking code King】
When everyone has a little dream to engage in artificial intelligence , Even when it comes to deep learning , Buy a lot of money to buy one N After the card machine , But found your torch.cuda.is_available() was False! Burst into tears o(╥﹏╥)o, When you find nothing after working for most of the day , Let you suddenly have the idea of smashing the computer . Yes , This article blog Just to help you solve this puzzle , Let you regain the confidence and motivation of deep learning !!!
0 Take a look at your GPU Support does not support cuda, Generally speaking N Cards are supported .
0.1 Right click the taskbar , Open Task Manager , Look at the model of your card .
0.2 open N card Official website , Slide to the bottom of the home page of the official website , Find out if your model supports cuda. Some too old machines don't support it. Let's get a new machine. Hee hee ~.
1 View your machine support cuda edition .
1.1 The right mouse button of the current machine will have this N Card control panel , To open it .
1.2 find “ help - system information - Components ”, View supported cuda edition , My is 11.4, Take a piece of paper and write down this version , This is what your machine can support cuda Highest version , Let's install it according to this .
1.3 win+R, Input cmd after , Input nvidia-smi, You can see the following , The first number means the current version of the driver , The second one means cuda Version of , It should be consistent with the previous version .
1.4 Input nvcc -V. You will find that there may not be this command , Because you may not have installed cuda, Don't worry, let's go 3 One step to solve this problem . If the command is useful , It will show you again cuda Version of , Here's the picture . This version must be the same as the one just recorded !
2 Uninstall the previously installed cuda( It's not installed cuda Your new machine ignores this ).
2.1 Compared with some friends who may have installed it once cuda, But the discovery is still useless , That's because the wrong version is installed , We need to uninstall the current cuda. Right click the lower left corner of the desktop win Icon , Open search “ Control panel ”,“ View by ” Switch to “ Small icons ”, And then click “ Program and function ”, Unload the original cuda, The procedures to be uninstalled are as follows , Don't uninstall the rest .
2.2 Then use Fujitsu housekeeper or other software to “ rubbish ”, Clear the registry entry .
3 install cuda
3.1 Go to Official website Download the latest cuda Installation package , Options are as follows , Finally, click download .
3.2 The installation steps are as follows
After system check , Choose the first “ Install the video card driver ( It's graphics driven ) and geforce experience( Graphics card driver automatic update program )”, Then continue to , Choose Custom :
The first one here must tick , The last three are also hooked .
Then there is path selection , You can choose the location you want to install .
3.3 After installation , Right click My computer –> attribute –> Advanced system setup –> environment variable , Has been added to the system variable cuda Of 4 A path , Here's the picture .
3.4 Try the second 1 All steps of step , See if all version information is consistent .
4 install pytorch
4.1 open pytorch Official website , Then configure the options , As shown in the figure , Copy the red box command .
4.2 open Anaconda Prompt, Then input “conda config --remove-key channels”, Restore default source , Tsinghua source has stopped maintenance . Then enter the command pasted above . Waiting for download to complete , Unable to download or too slow , Can only go to This page of the official website Find yourself python edition 、cuda The download package corresponding to the version .
5 Be accomplished !
Test it , After several weeks, I finally got it done , I believe everyone is smarter than me , It should be possible to do well in half an hour at most (▽)!
5.1 open Anaconda Promp test :
5.2 open notebook test :
版权声明
本文为[Cooking code King]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220601197008.html
边栏推荐
- JS calculates the display date according to the time
- Common exceptions
- [microservices] (x) -- Unified gateway
- Section 2 map and structure in Chapter 6
- Visual programming -- how to customize the mouse cursor
- Opencv4 QR code recognition test
- C abstract class
- Punch in: 4.23 C language chapter - (1) first knowledge of C language - (12) structure
- Using VBA interval to extract one column from another in Excel
- What if win10 doesn't have a local group policy?
猜你喜欢
Unity knowledge points (ugui 2)
Visual programming - Experiment 1
变量、常量、运算符
ROS series (IV): ROS communication mechanism series (1): topic communication
Openvino only supports Intel CPUs of generation 6 and above
Section 2 map and structure in Chapter 6
What if win10 doesn't have a local group policy?
深度學習筆記(二)——激活函數原理與實現
(valid for personal testing) compilation guide of paddedetection on Jetson
2022 group programming ladder simulation l2-1 blind box packaging line (25 points)
随机推荐
【微服务】(十)—— 统一网关Gateway
Commonly used classes
Use the thread factory to set the thread name in the thread pool
Unity Basics
JS calculates the display date according to the time
Basic knowledge of convolutional neural network
Design and implementation of redis (5): master-slave replication strategy and optimization
Opencv4 QR code recognition test
7-3 poly width
ROS series (IV): ROS communication mechanism series (5): Service Communication Practice
2022 团体程序设计天梯赛 模拟赛 L2-4 哲哲打游戏 (25 分)
Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
Codeforces Round #784 (Div. 4)题解 (第一次AK cf (XD
Visual programming - Experiment 2
The principle and solution of not allowing pasting in an English Network
[microservices] (x) -- Unified gateway
Variables, constants, operators
Paddlepaddle model to onnx
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics