当前位置:网站首页>让torch.cuda.is_available()从false变成true的一点经验
让torch.cuda.is_available()从false变成true的一点经验
2022-06-26 17:42:00 【LIZHEMGHONG】
先上图
哈哈哈,终于… …
哈哈哈,你想想,要是你的运行结果也是这样的,也会超级超级开心的ヾ(๑╹◡╹)ノ"
上一些干货吧
一、主要流程
1、link
2、link
1和2都是讲的主要流程,两者讲的内容各有侧重点,不过大概就是:安装显卡驱动->安装CUDA->弄cudnn->安装pytorch-GPU。
不过他们没有提到的一个坑,就是我在pytorch官网上看到的版本只有对应CUDA10.2和11.1(今天是2021.3.23),不要像我一样傻乎乎地安了最新的11.2,然后发现官网没有对应的指令。
所以建议你们先看一下pytorch官网上的CUDA版本是多少再安装CUDA
二、官方安装资源
1、link.
2、link
3、link
4、link
1是安装显卡驱动的官方网站
2是安装CUDA的官方网站,里面有各个版本的CUDA
3是安装cudnn的官方网站,里面有各个版本的cudnn
4是安装pytorch的官方网站
三、辅助资源
1、link.
2、link.
3、link.
4、link.
5、link.
1是cudnn安装方法,不过把那3个文件夹移动过去就行,不用手动改环境变量,因为安装好CUDA后自动改了环境变量,你可以检查一下
2讲了许多,我主要看了前面的检查CUDA和显卡驱动在不在的方法
3我遇到了问题,Windows NVIDIA Corporation下没有NVSMI文件夹(2那一步我的显卡驱动不在),如果你们2没遇到问题就不用看了 (超级感谢那个博主的NVSMI文件夹资源)
4是NVIDIA安装程序失败怎么办,看折叠回答
就是他的回答,如果你们安装显卡驱动没有问题就不用看
5是如何查看显卡驱动版本号
边栏推荐
- LeetCode——226. Flip binary tree (BFS)
- wechat_微信小程序中解决navigator进行页面跳转并传递参数问题
- Wechat app mall, review products, upload commodity pictures, and score Commodity Services
- SQL injection for Web Security (3)
- Necessary decorator mode for 3 years' work
- 在国金证券开户怎么样?开户安全吗?
- Turtle cartography
- Byte interview: two array interview questions, please accept
- Hello, is it safe to open an online stock account and buy stocks now?
- Using redis for user access data statistics hyperloglog and bitmap advanced data types
猜你喜欢
Daily record 2
Which low code platform is more friendly to Xiaobai? Here comes the professional evaluation!
Strength and appearance Coexist -- an exclusive interview with Liu Yu, a member of Apache pulsar PMC
In those years, interview the abused red and black trees
【推荐系统学习】推荐系统架构
padding百分比操作
Demonstrate to Xiaobai the case of sub database and sub table
Distributed Architecture Overview
【代码随想录-动态规划】T583、两个字符串的删除操作
并发之Synchronized说明
随机推荐
Programmer interview guide - self introduction
Prometeus 2.34.0 新特性
Use middleware to record slow laravel requests
SIGIR 2022 | 港大等提出超图对比学习在推荐系统中的应用
[qt learning notes]qt inter thread data communication and data sharing
量化合约系统开发分析案例丨合约量化系统开发方案详解
国信证券怎么开户?通过链接办理股票开户安全吗
Leetcode daily [2022 - 02 - 16]
Halcon's region: features of multiple regions (5)
[buuctf.reverse] 126-130
VSCode使用 - Remote-SSH 配置说明
mysql Add column 失败 因为之前有数据,不是默认null 不行
Record the use process of fenics
Leetcode topic [array] -283- move zero
In those years, interview the abused red and black trees
Live broadcast preview | how can programmers improve R & D efficiency? On the evening of June 21, the video number and station B will broadcast live at the same time. See you or leave!
手写promise.all
关于FlowUs这一款国民好笔记
LeetCode——226. Flip binary tree (BFS)
Which low code platform is more friendly to Xiaobai? Here comes the professional evaluation!