当前位置:网站首页>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
边栏推荐
- IDEA编辑器去掉sql语句背景颜色SQL语句警告No data sources are configured to run this SQL...和SQL Dialect is Not Config
- C file input operation
- Binary operation
- Gmapping code analysis [easy to understand]
- NMF-matlab
- NPOI导出Excel2007
- 搭建哨兵模式reids、redis从节点脱离哨兵集群
- Codeforces Round #802 (Div. 2) 纯补题
- Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
- Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
猜你喜欢
AcWing 342. Road and route problem solving (shortest path, topological sorting)
Bubble sort array
《重构:改善既有代码的设计》读书笔记(上)
IDEA编辑器去掉sql语句背景颜色SQL语句警告No data sources are configured to run this SQL...和SQL Dialect is Not Config
Yunna | why use the fixed asset management system and how to enable it
《架构整洁之道》读书笔记(下)
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
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
450-深信服面经1
Refactoring: improving the design of existing code (Part 2)
随机推荐
Golang concurrent programming goroutine, channel, sync
Getting started with typescript
Machine learning notes - time series prediction research: monthly sales of French champagne
Emmet basic syntax
Registration opportunity of autowiredannotationbeanpostprocessor under annotation development mode
AcWing 341. 最优贸易 题解 (最短路、dp)
Memory management of C
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
Microservice technology - distributed global ID in high concurrency
【ERP软件】ERP体系二次开发有哪些危险?
SIFT特征点提取「建议收藏」
Istio1.12:安装和快速入门
职场四象限法则:时间管理四象限与职场沟通四象限「建议收藏」
Tutorial (5.0) 10 Troubleshooting * fortiedr * Fortinet network security expert NSE 5
VBScript详解(一)
AcWing 1135. 新年好 题解(最短路+搜索)
Codeworks round 802 (Div. 2) pure supplementary questions
Build a master-slave mode cluster redis
453-atoi函数的实现
Bubble sort array