pytorch安装问题

pytorch安装问题

NVIDIA GeForce RTX 3090 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_70.
RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm

问题描述

warning:我的devices支持sm86, pytorch版本支持 sm_70。理论上说,GPU的能力应该是向下兼容的,我sm_86的device应该支持sm_70的所有代码。作为warning也正常。
但后面报错了,我查了之后发现了这个人的答案:
https://discuss.pytorch.org/t/vertices-torch-matmul-vertices-unsqueeze-0-rotations-init-runtimeerror-cuda-error-cublas-status-execution-failed-when-calling-cublassgemmstridedbatched-in-centos/116123/7

我发现她的device调高了之后和我是一样的情况也出现一样的错误,她的解决方法是让pytorch支持的cuda版本与自己电脑上安装的cuda版本一致。我也这么解决了
我的cuda 版本是11.3 按照下面方法按照
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值