出现错误(已解决)RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA ker
出现问题(已解决)RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
问题——警告
为什么把警告po出来,是因为警告可以让我们了解一些有用信息。
问题——错误
分析原因
首先警告里的内容不可忽略,翻译过来就是NVIDIA RTX GeForce 3060Ti(我使用的服务器)支持的CUDA的算力为8.6,与当前的pytorch的版本不匹配。说白了就是CUDA和pytorch版本不一致。
当前的pytorch版本支持的CUDA的算力为3.7、5.0、6.0、7.0
解决办法
我安装的cuda是11.3,对应的pytorch版本为1.10.1,但是为了跑这个代码,我又安装了pytorch1.10,这就导致了CUDA和pytorch版本不一致
因此我重新安装cuda11.1,然后在pytorch官网找到对应的pytorch1.10的安装语句
pip install torch==1.10.0+cpu torchvision==0.11.0+cpu torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html
现在风扇已经在转了!
pytorch官网 链接: https://pytorch.org/get-started/previous-versions/
参考博客
深度学习环境配置避坑: https://blog.csdn.net/weixin_46065198/article/details/125642546
出现错误(已解决)RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA ker相关推荐
- RTX 3090运行报错:RuntimeError: CUDA error: no kernel image is available for execution on the device
RuntimeError: CUDA error: no kernel image is available for execution on the device 安装适用于GeForce RTX ...
- [debug] RuntimeError: CUDA error: no kernel image is available for execution on the device
问题描述 运行程序时出现报错: RuntimeError: CUDA error: no kernel image is available for execution on the device ( ...
- RuntimeError: CUDA error: no kernel image is available for execution on the device
导致的原因一般都是显卡算力和cuda或者torch版本不匹配 比如在conda中安装的pytorch=1.5.0 cuda=10.2 错误:RuntimeError: CUDA error: no k ...
- 解决CUDA error: no kernel image is available for execution on the device
1. 电脑配置 GPU 3080 算力8.6 CUDA 11.1 CUDNN 8.2.0 conda 4.9.2 python 3.8.5 2. 问题描述 首先在pytroch官网根据电脑相应配置使用 ...
- 显卡RTX 3090运行pytorch报错CUDA error: no kernel image is available for execution on the device
RuntimeError: CUDA error: no kernel image is available for execution on the device 安装适用于GeForce RTX ...
- PyTorch报CUDA error: no kernel image is available for execution on the device问题解决
首先讲一下报错的原因PyTorch高版本对显卡算力是有所要求的,驱动程序只是从软件角度去利用显卡,显卡的算力是不会改变的,报错就在于显卡的算力太低.这里就涉及到了NVIDIA GPU CUDA的com ...
- (ubuntu)YOLOv5报错:RuntimeError: CUDA error: no kernel image is available for execution on the ...
笔者之前在另一台电脑成功跑通了自己修改的yolov5,但在新系统运行时报了如下错误 RuntimeError: CUDA error: no kernel image is available for ...
- RuntimeError: CUDA error: no kernel image is available for execution on the driver
问题:RuntimeError: CUDA error: no kernel image is available for execution on the driver, when use pyto ...
- GT820M显卡使用CUDA的“no kernel image is available for execution on the device”问题解决
最近使用比较老的电脑使用CUDA,一开始安装10.1的windows版本,发现无法使用,经过网上查阅信息发现是显卡驱动不支持,电脑的NVIDIA驱动是390. 然后查询到该驱动支持9.0版本的CUDA ...
最新文章
- 熟悉交换机与路由器组网(图解)
- Dubbo 稳定性案例:Nacos 注册中心可用性问题复盘
- C#.NET操作数据库通用类(MS SQL Server篇)
- Java自定义注解Annotation的实现原理
- mysql直连1.执行语句_MySQL随笔01_一条SQL语句是如何执行的
- Lync Server外部访问系列PART5:模拟公网DNS
- C#版(击败97.76%的提交) - Leetcode 557. 反转字符串中的单词 III - 题解
- php公众号失物招领系统,【服务】微信公众平台『失物招领』功能上线
- Matlab读nc文件
- 数据库SQL优化大总结之 百万级数据库优化方案
- C Minimum Ties
- 使用mmdetection测试图片
- define函数的用法
- Alist挂载百度网盘
- 网页版php手机端怎么转wap页,用dw做的普通网页和wap网页,要怎样做才能让pc浏览器和手机浏览器自动识别并跳转呢?...
- html中div标签圈套,HTML中div标签和span标签的应用
- keil 工程编译后出现 file has been changed outside the editor, reload?
- 模拟CMOS集成电路设计入门学习(13)
- UE4 获取主窗口HWND和调用WINAPI函数
- java hs err pid_JVM致命错误日志(hs_err_pid.log)分析