当前位置:网站首页>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
边栏推荐
- 4274. Suffix expression - binary expression tree
- Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
- AcWing 1125. 牛的旅行 题解(最短路、直径)
- AcWing 383. Sightseeing problem solution (shortest circuit)
- 搭建哨兵模式reids、redis从节点脱离哨兵集群
- JS如何取整数
- AcWing 343. 排序 题解(floyd性质实现传递闭包)
- Getting started with typescript
- Function high order curry realization
- Istio部署:快速上手微服务,
猜你喜欢

线程应用实例

End-to-End Object Detection with Transformers(DETR)论文阅读与理解

Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出

Idea editor removes SQL statement background color SQL statement warning no data sources are configured to run this SQL And SQL dialect is not config

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

嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件

AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)

字典

SQLite 3.39.0 发布,支持右外连接和全外连接

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
随机推荐
golang:[]byte转string
Which video recording software is better for the computer
Watchful pioneer world outlook Architecture - (how does a good game come from)
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)
[pytorch learning notes] tensor
Codeworks round 802 (Div. 2) pure supplementary questions
GMapping代码解析[通俗易懂]
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
使用xml文件打印mybaties-log插件的方式
451 implementation of memcpy, memmove and memset
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
AcWing 1137. Select the best line solution (the shortest circuit)
《MongoDB入门教程》第03篇 MongoDB基本概念
中缀表达式转换为后缀表达式(C语言代码+详解)
A4988驱动步进电机「建议收藏」
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
《重构:改善既有代码的设计》读书笔记(下)
Refactoring: improving the design of existing code (Part 1)
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星