当前位置:网站首页>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
边栏推荐
- Reading notes of "the way to clean structure" (Part 2)
- Tutoriel (5.0) 10. Dépannage * fortiedr * fortinet Network Security expert NSE 5
- Horizontal ultra vires and vertical ultra vires [easy to understand]
- 移动机器人路径规划:人工势场法[通俗易懂]
- Golang concurrent programming goroutine, channel, sync
- 《架构整洁之道》读书笔记(下)
- LeetCode 0871. Minimum refueling times - similar to poj2431 jungle adventure
- juypter notebook 修改默认打开文件夹以及默认浏览器
- Advanced performance test series "24. Execute SQL script through JDBC"
- Gmapping code analysis [easy to understand]
猜你喜欢
Quanzhi A33 uses mainline u-boot
IEDA refactor的用法
Markdown basic grammar
Introduction to the paper | application of machine learning in database cardinality estimation
Yunna | why use the fixed asset management system and how to enable it
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
What is 9D movie like? (+ common sense of dimension space)
ICDE 2023|TKDE Poster Session(CFP)
Tutoriel (5.0) 10. Dépannage * fortiedr * fortinet Network Security expert NSE 5
Watchful pioneer world outlook Architecture - (how does a good game come from)
随机推荐
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
Chapter 7 - class foundation
Talk about the design of red envelope activities in e-commerce system
Reading notes of code neatness
预处理和预处理宏
xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
思考变量引起的巨大变化
虚拟机初始化脚本, 虚拟机相互免秘钥
AcWing 1137. 选择最佳线路 题解(最短路)
Quanzhi A33 uses mainline u-boot
AcWing 1127. 香甜的黄油 题解(最短路—spfa)
[paper reading] Ca net: leveraging contextual features for lung cancer prediction
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
Imitation Jingdong magnifying glass effect (pink teacher version)
Reading notes of "the way to clean structure" (Part 2)
2022.7.1-----leetcode. two hundred and forty-one
C的内存管理
高级性能测试系列《24. 通过jdbc执行sql脚本》
Watchful pioneer world outlook Architecture - (how does a good game come from)
移动机器人路径规划:人工势场法[通俗易懂]