当前位置:网站首页>Pytorch版本、CUDA版本与显卡驱动版本的对应关系
Pytorch版本、CUDA版本与显卡驱动版本的对应关系
2022-07-02 18:38:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
参考链接:INSTALLING PREVIOUS VERSIONS OF PYTORCH解决PyTorch与CUDA版本不匹配
1.CUDA驱动和CUDAToolkit对应版本
注:驱动是向下兼容的,其决定了可安装的CUDA和CUDAToolkit的最高版本。
2.CUDA及其可用PyTorch对应版本(参考官网,欢迎评论区补充)
注:虽然有的卡CUDA版本可更新至新版本,且PyTorch也可对应更新至新版本。但有的对应安装包无法使用,有可能是由于卡太旧的原因。
3.安装指导
(1)指定安装PyTorch版本 当已知CUDA版本时,可根据表2直接查询到对应版本PyTorch,运行conda install pytorch=X.X.X -c pytorch即可安装指定版本PyTorch。此命令由conda决定与PyTorch对应的CUDAToolkit。但不能保证PyTorch可正常使用,CUDAToolkit版本不适配显卡驱动,即可能导致CUDAToolkit版本高于CUDA驱动。 (2)指定CUDAToolkit版本 首先运行nvidia-smi查询CUDA驱动版本,再根据1查询到对应CUDAToolkit版本,再运行conda install pytorch cudatoolkit=X.X -c pytorch即可安装指定CUDAToolkit版本的PyTorch。 (3)同时指定PyTorch和CUDAToolkit版本 如果你十分确定CUDA版本以及对应PyTorch和CUDAToolkit对应版本可运行conda install pytorch=X.X.X cudatoolkit=X.X -c pytorch
安装完成后可使用python查看
import torch
print(torch.__version__)
print(torch.cuda.is_available())发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/148561.html原文链接:https://javaforall.cn
边栏推荐
- 数字滚动带动画
- 潇洒郎:彻底解决Markdown图片问题——无需上传图片——无需网络——转发给他人图片无缺失
- Golang concurrent programming goroutine, channel, sync
- metric_ Logger urination
- Thread application instance
- Transformation of thinking consciousness is the key to the success or failure of digital transformation of construction enterprises
- 4274. Suffix expression - binary expression tree
- Markdown basic grammar
- 2022.7.1-----leetcode. two hundred and forty-one
- 注解开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
猜你喜欢

Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3

According to the atlas of data security products and services issued by the China Academy of information technology, meichuang technology has achieved full coverage of four major sectors

潇洒郎:彻底解决Markdown图片问题——无需上传图片——无需网络——转发给他人图片无缺失

Markdown basic grammar

End to end object detection with transformers (Detr) paper reading and understanding

PHP parser badminton reservation applet development requires online system

数据降维——主成分分析
![[0701] [paper reading] allowing data imbalance issue with perforated input during influence](/img/c7/9b7dc4b4bda4ecfe07aec1367fe059.png)
[0701] [paper reading] allowing data imbalance issue with perforated input during influence

Yunna | why use the fixed asset management system and how to enable it
Bubble sort array
随机推荐
MySQL表历史数据清理总结
Develop fixed asset management system, what voice is used to develop fixed asset management system
Tutorial (5.0) 10 Troubleshooting * fortiedr * Fortinet network security expert NSE 5
Codeworks 5 questions per day (1700 average) - day 4
云呐|为什么要用固定资产管理系统,怎么启用固定资产管理系统
2022.7.1-----leetcode.241
Yunna | why use the fixed asset management system and how to enable it
Binary operation
Virtual machine initialization script, virtual machine mutual secret key free
【pytorch学习笔记】Tensor
ICDE 2023|TKDE Poster Session(CFP)
MySQL table historical data cleaning summary
4274. 后缀表达式-二叉表达式树
Reading notes of "the way to clean structure" (Part 2)
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
QT中的QPropertyAnimation使用和toast案列
When converting from list to map, if a certain attribute may cause key duplication and exceptions, you can set the way to deal with this duplication
Advanced performance test series "24. Execute SQL script through JDBC"
Gmapping code analysis [easy to understand]
Yolov3 trains its own data set to generate train txt