Windows 11+RTX3060安装CUDA、cuDNN与Pytorch的正确版本

实验环境为RTX 3060的Windows 11。我在一开始没有安装合适的CUDA版本,导致最终Pytorch训练时报错,最终只能推倒重来,浪费了不少时间。

为了提醒更多的同学在一开始就安装正确的版本,在此记录。

经实验,完全没问题的版本是:

1. CUDA Toolkit 11.1.1

CUDA Toolkit 11.1 Update 1 Downloads | NVIDIA DeveloperPlease Note: We advise customers updating to Linux Kernel 5.9+ to use the latest NVIDIA Linux GPU driver R455 that will be available for download from NVIDIA website and repositories, starting today. Select Target Platform Click on the green buttons that describe your target platform. Only supported platforms will be shown. By downloading and using the software, you agree tohttps://developer.nvidia.cn/cuda-11.1.1-download-archive依次选择:Windows-x86_64-10-exe(local)

2. ​cuDNN v8.1.1 (Feburary 26th, 2021), for CUDA 11.0,11.1 and 11.2​

cuDNN Archive | NVIDIA Developerhttps://developer.nvidia.cn/rdp/cudnn-archive#a-collapse811-1113. Pytorch V1.8.0

安装指令为:

conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge

如果这篇博客对你有帮助,请给博主点个赞鼓励一下吧!

评论 31
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

乔卿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值