GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation


跑模型的时候遇到了一个问题

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.

查看了一下当前的cuda版本:

cat /usr/local/cuda/version.txt
CUDA Version 11.0.182

解决方法:

  1. 将python改为python3.8环境(当时查网上资料有个答主说的,我当时直接改成3.8了,没有验证3.7和3.6等是否可行)

  2. 安装nightly的pytorch,对应11.0的cuda版本

    conda install pytorch torchvision cudatoolkit=11 -c pytorch-nightly

成功解决


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM