Python中文
首页
教程
问答
标签
搜索
登录
注册
如何将Pytork(+cuda)与A100 GPU配合使用?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我试图将当前代码与A100 gpu一起使用,但出现以下错误:</p> <pre><code>---> backend='nccl' /home/miranda9/miniconda3/envs/metalearningpy1.7.1c10.2/lib/python3.8/site-packages/torch/cuda/__init__.py:104: UserWarning: A100-SXM4-40GB with CUDA capability sm_80 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 A100-SXM4-40GB GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/ </code></pre> <p>这更让人困惑,因为它指向了通常的pytorch安装,但没有告诉我具体的硬件(A100)使用哪种pytorch版本+cuda版本的组合。为A100安装pytorch的正确方法是什么</p> <hr/> <p>以下是我尝试过的一些版本:</p> <pre><code># conda install -y pytorch==1.8.0 torchvision cudatoolkit=10.2 -c pytorch # conda install -y pytorch torchvision cudatoolkit=10.2 -c pytorch #conda install -y pytorch==1.7.1 torchvision torchaudio cudatoolkit=10.2 -c pytorch -c conda-forge # conda install -y pytorch==1.6.0 torchvision cudatoolkit=10.2 -c pytorch #conda install -y pytorch==1.7.1 torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge # conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch # conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge # conda install -y pytorch torchvision cudatoolkit=9.2 -c pytorch # For Nano, CC # conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge </code></pre> <hr/> <p>请注意,这可能很微妙,因为我在过去的这个机器+pytorch版本中遇到过这样的错误:</p> <p><a href="https://stackoverflow.com/questions/66807131/how-to-solve-the-famous-unhandled-cuda-error-nccl-version-2-7-8-error">How to solve the famous `unhandled cuda error, NCCL version 2.7.8` error?</a></p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我也有同样的问题。您需要安装CUDA 11.0而不是10.2,并为此CUDA版本重新安装PyTorch</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
文本导入时标题行中的特殊字符
5 回答
文本小部件:在没有输入时更新并在循环后保持空闲
2 回答
文本小部件tkin
7 回答
文本小部件tkinter中的标签更改或文本外观更改是否有撤消功能?
4 回答
文本小部件tkinter复制图像选项
1 回答
文本小部件上的Python Tkinter ttk滚动条未缩放
10 回答
文本小部件上的滚动条可能需要根据制表符ord显示前进行滚动
4 回答
文本小部件不显示lis中的内容
9 回答
文本小部件不显示Unicode字符
3 回答
文本小部件中写入的行间距
6 回答
文本小部件中的文本作为变量
8 回答
文本小部件中的滚动条仅显示在底部
7 回答
文本小部件中的选项卡键空间计数
5 回答
文本小部件作为Lis
6 回答
文本小部件在主框架中扩展列宽
2 回答
文本小部件未使用删除功能清除
9 回答
文本小部件滚动动画(Tkinter、Python)
6 回答
文本居中。格式正确吗?
2 回答
文本差分算法
2 回答
文本已知时音频文件中的单词索引
1 回答