当前位置:网站首页>让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. 翻轉二叉樹(BFS)
- Redis and database data consistency
- In those years, interview the abused red and black trees
- The high concurrency system is easy to play, and Alibaba's new 100 million level concurrent design quick notes are really fragrant
- LeetCode——226. 翻转二叉树(BFS)
- Implementation of MySQL master-slave architecture
- Programmer interview guide - self introduction
- 牛客网:设计LRU缓存结构 设计LFU缓存结构
- 在国金证券开户怎么样?保障安全吗?
- [latex bearer] use tables in \title (error \begin doesn't match its definition.)
猜你喜欢

Platform management background and merchant menu resource management: merchant registration management design

How sparksql returns a specific day of the week by date -dayofweek function

牛客网:设计LRU缓存结构 设计LFU缓存结构

背包问题求方案数

Platform management background and merchant menu resource management: access control design of platform management background

10 cloud security best practices that enterprises need to know

玩轉Linux,輕松安裝配置MySQL

Niuke network: Design LRU cache structure design LFU cache structure

LeetCode——226. 翻转二叉树(BFS)

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!
随机推荐
关于FlowUs这一款国民好笔记
Wechat app mall, review products, upload commodity pictures, and score Commodity Services
She said she was tired! So tired! I want to change my career
Implementation of MySQL master-slave architecture
Turtle cartography
QPushButton 样式使用示例(以及按钮setmenu添加下拉菜单的方法)
How about opening an account at Guojin securities? Is it safe?
Vscode usage - Remote SSH configuration description
Knapsack problem with dependency
Several key points in divorce agreement
Redis OM . Net redis object mapping framework
接水面试题
14 MySQL tutorial insert insert data
[recommendation system learning] technology stack of recommendation system
Preparing for the Blue Bridge Cup and ccf-csp
用redis做用户访问数据统计HyperLogLog及Bitmap高级数据类型
sql中ROUND和TRUNCATE的区别(四舍五入还是截取小数点后几位)
MySQL add column failed because there was data before, not null by default
Romance of the Three Kingdoms: responsibility chain model
LeetCode——226. 翻轉二叉樹(BFS)