服务器上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/

相关推荐
色空大师几秒前
【linux开放端口-以8848为例】
linux·运维·服务器·防火墙
咋吃都不胖lyh2 分钟前
在 Linux 环境下,查看、编辑并使环境变量生效
linux·运维·服务器
神仙别闹3 分钟前
基于C++实现的简单的SMTP服务器
服务器·开发语言·c++
修心光5 分钟前
kuboard升级过程
运维
keyipatience8 分钟前
Linux 基本指令
linux·运维·服务器
信创DevOps先锋10 分钟前
Gitee DevOps平台:本土化创新如何重塑企业研发效能图谱
运维·gitee·devops
一条咸鱼¥¥¥12 分钟前
处理内网中某个软件全部无法其服务器的问题
运维·经验分享·远程
测试架构师13 分钟前
基于OpenCode与Wooyun Legacy的AI自动化安全测试实战
运维·人工智能·自动化
Agent产品评测局14 分钟前
港口行业自动化平台选型,物流与通关全流程提效:2026智慧港口技术全景与实测指引
运维·人工智能·ai·chatgpt·自动化
HoneyMoose26 分钟前
光模块是不是质量有问题
运维