当前位置:网站首页>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
边栏推荐
- 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
- 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
- 冒泡排序数组
- Getting started with typescript
- 【pytorch学习笔记】Tensor
- 为什么要做企业固定资产管理系统,企业如何加强固定资产管理
- codeforces每日5题(均1700)-第四天
- Npoi export Excel2007
- Yolov3 trains its own data set to generate train txt
- Tutorial (5.0) 09 Restful API * fortiedr * Fortinet network security expert NSE 5
猜你喜欢

Talk about the design of red envelope activities in e-commerce system

Data dimensionality reduction factor analysis

Tutorial (5.0) 09 Restful API * fortiedr * Fortinet network security expert NSE 5

Machine learning notes - time series prediction research: monthly sales of French champagne

Tutorial (5.0) 10 Troubleshooting * fortiedr * Fortinet network security expert NSE 5

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

Excel finds the same value in a column, deletes the row or replaces it with a blank value

450-深信服面经1

In pytorch function__ call__ And forward functions

Develop fixed asset management system, what voice is used to develop fixed asset management system
随机推荐
移动机器人路径规划:人工势场法[通俗易懂]
教程篇(5.0) 09. RESTful API * FortiEDR * Fortinet 网络安全专家 NSE 5
Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
Markdown基础语法
思考变量引起的巨大变化
[test development] takes you to know what software testing is
多态的理解以及作用
Juypter notebook modify the default open folder and default browser
《重构:改善既有代码的设计》读书笔记(下)
程序猿入门攻略(十二)——数据的存储
codeforces每日5题(均1700)-第四天
AcWing 343. 排序 题解(floyd性质实现传递闭包)
预处理和预处理宏
虚拟机初始化脚本, 虚拟机相互免秘钥
Npoi export Excel2007
Which video recording software is better for the computer
Horizontal ultra vires and vertical ultra vires [easy to understand]
Golang并发编程——goroutine、channel、sync
Mobile robot path planning: artificial potential field method [easy to understand]
Reading notes of code neatness