当前位置:网站首页>Correspondence between pytoch version, CUDA version and graphics card driver version
Correspondence between pytoch version, CUDA version and graphics card driver version
2022-07-02 19:37:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Reference link :INSTALLING PREVIOUS VERSIONS OF PYTORCH solve PyTorch And CUDA Version mismatch
1.CUDA Drive and CUDAToolkit Corresponding version
notes : The driver is downward compatible , It determines what can be installed CUDA and CUDAToolkit Highest version .
2.CUDA And its availability PyTorch Corresponding version ( Refer to the official website , Welcome to the comments area to add )
notes : Although some cards CUDA The version can be updated to the new version , And PyTorch You can also update to the new version . But some corresponding installation packages cannot be used , It may be because the card is too old .
3. Installation instructions
(1) Specify installation PyTorch edition When known CUDA version , According to table 2 Directly query the corresponding version PyTorch, function conda install pytorch=X.X.X -c pytorch You can install the specified version PyTorch. This order is made by conda Decision and PyTorch Corresponding CUDAToolkit. But there is no guarantee PyTorch Normal use ,CUDAToolkit The version is not suitable for the graphics card driver , Can lead to CUDAToolkit Version higher than CUDA drive . (2) Appoint CUDAToolkit edition The first run nvidia-smi Inquire about CUDA Driver version , According to 1 Query the corresponding CUDAToolkit edition , Run again conda install pytorch cudatoolkit=X.X -c pytorch You can install the specified CUDAToolkit Version of PyTorch. (3) At the same time specified PyTorch and CUDAToolkit edition If you are quite sure CUDA Version and corresponding PyTorch and CUDAToolkit The corresponding version can run conda install pytorch=X.X.X cudatoolkit=X.X -c pytorch
After installation, you can use python see
import torch
print(torch.__version__)
print(torch.cuda.is_available())Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/148561.html Link to the original text :https://javaforall.cn
边栏推荐
- Quanzhi A33 uses mainline u-boot
- 开始练习书法
- Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
- AcWing 1135. 新年好 题解(最短路+搜索)
- SQLite 3.39.0 发布,支持右外连接和全外连接
- 使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
- Qpropertyanimation use and toast case list in QT
- Set up sentinel mode. Reids and redis leave the sentinel cluster from the node
- Chic Lang: completely solve the problem of markdown pictures - no need to upload pictures - no need to network - there is no lack of pictures forwarded to others
- mysql函数
猜你喜欢

zabbix5客户端安装和配置

Refactoring: improving the design of existing code (Part 2)

Thread application instance

Refactoring: improving the design of existing code (Part 1)

搭建主从模式集群redis

高并发下如何避免产生重复数据?

安装单机redis详细教程

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

450-深信服面经1

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
随机推荐
xml开发方式下AutowiredAnnotationBeanPostProcessor的注册时机
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线(indifference curve)
GMapping代码解析[通俗易懂]
《重构:改善既有代码的设计》读书笔记(上)
Chapter 7 - class foundation
Py之interpret:interpret的简介、安装、案例应用之详细攻略
Registration opportunity of autowiredannotationbeanpostprocessor under annotation development mode
AcWing 1131. Saving Private Ryan (the shortest way)
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
c语言里怎么设立优先级,细说C语言优先级
AcWing 383. 观光 题解(最短路)
MySQL
Npoi export Excel2007
metric_ Logger urination
451-memcpy、memmove、memset的实现
Istio部署:快速上手微服务,
checklistbox控件用法总结
字典
[ERP software] what are the dangers of the secondary development of ERP system?
多端小程序开发有什么好处?覆盖百度小程序抖音小程序微信小程序开发,抢占多平台流量红利