服务器上Cuda+Pytorch兼容性的那些问题

服务器上如何搭建匹配版本的cuda+pytorch:

1.查询nvidia中驱动版本与cuda最高兼容版本

命令行输入:nvidia-smi

2.选择对应的python

Driver Version与NVIDIA-SMI决定当前服务器上能兼容最高cuda和Pytorch版本

查询匹配方式:1.官网查询 2.问AI(可能存在不准确情况)

CUDA版本与显卡驱动版本对照表(更新至2022.10.26 - CUDA11.8)

3.cuda+torch离线包(网站附torchvision离线包):

http://download.pytorch.org/whl/torch_stable.html

4.torch与torchvision版本对应:

PyTorch中torch、torchvision、torchaudio、torchtext版本对应关系_torch2.0.1对应的torchvision-CSDN博客(经尝试可能存在一定问题)

其它方法:问AI对应

bash 复制代码
import torch # 如果pytorch安装成功即可导入  
print(torch.cuda.is_available()) # 查看CUDA是否可用  
print(torch.cuda.device_count()) # 查看可用的CUDA数量  
print(torch.version.cuda) # 查看CUDA的版本号

cuda+pytorch以及服务器驱动不匹配的那些问题:

1.RuntimeError: The NVIDIA driver on your system is too old.-CSDN博客

2.RuntimeError:No such operator torchvision::nms

3.UserWarning: NVIDIA GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37.
If you want to use the NVIDIA GeForce RTX 3080 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

相关推荐
qq_3106585121 小时前
webrtc源码走读(五)核心引擎层——传输模块
服务器·网络·音视频·webrtc
zhengfei61121 小时前
Kali Linux 与 Parrot OS 的比较——哪种渗透测试平台最适合网络安全专业人士?
linux·运维·web安全
Dxy12393102161 天前
Nginx原生配置介绍
运维·nginx
Xの哲學1 天前
Linux SLUB 内存分配器深度剖析: 从设计哲学到实战调试
linux·服务器·网络·算法·边缘计算
何中应1 天前
linux使用root账户操作提示没有权限
linux·运维·服务器
天上飞的粉红小猪1 天前
网络基础概念
linux·服务器·网络·c++
KingRumn1 天前
DBUS源码剖析之DBusMessage消息头
linux·服务器·算法
qq_5470261791 天前
Linux 压缩与解压缩
linux·运维·服务器
QT 小鲜肉1 天前
【Linux命令大全】003.文档编辑之csplit命令(实操篇)
linux·运维·服务器·chrome·mysql
itas1091 天前
Linux交叉编译工具链
linux·运维·服务器·交叉编译·cross-compile