新建的cuda项目出错,no kernel image is available for execution on the device

qq_20284343 2017-12-08 07:08:01
请教一下各位,刚开始学习cuda,用vs2017新建了一个项目,跑自带的向量相加出错。应该怎么解决?
addKernel launch failed: no kernel image is available for execution on the device
addWithCuda failed!请按任意键继续. . .
...全文
10525 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
NopainNooffer 2021-04-19
  • 打赏
  • 举报
回复
降低版本才行
sin_404 2021-03-23
  • 打赏
  • 举报
回复 1
我显卡算力7.5,cuda10,也遇到了这个问题,能找到的方法都试了一遍,还是没有用
DurIaN1023 2021-03-08
  • 打赏
  • 举报
回复
我显卡计算能力6.8,CUDA11.2,也遇到了这个问题,请问有啥办法吗
晴树SEU 2018-11-25
  • 打赏
  • 举报
回复
code generation 没有选对
weixin_41919632 2018-09-07
  • 打赏
  • 举报
回复
Caffe-SSD 安装过程中 make runtest出现错误:
[ RUN ] AdaDeltaSolverTest/1.TestAdaDeltaLeastSquaresUpdate
[ OK ] AdaDeltaSolverTest/1.TestAdaDeltaLeastSquaresUpdate (17 ms)
[ RUN ] AdaDeltaSolverTest/1.TestAdaDeltaLeastSquaresUpdateWithWeightDecay
[ OK ] AdaDeltaSolverTest/1.TestAdaDeltaLeastSquaresUpdateWithWeightDecay (16 ms)
[----------] 11 tests from AdaDeltaSolverTest/1 (524 ms total)

[----------] 7 tests from PermuteLayerTest/2, where TypeParam = caffe::GPUDevice<float>
[ RUN ] PermuteLayerTest/2.TestSetUpIdentity
[ OK ] PermuteLayerTest/2.TestSetUpIdentity (2 ms)
[ RUN ] PermuteLayerTest/2.TestFowrad3D
F0907 18:15:52.541024 12953 permute_layer.cu:46] Check failed: error == cudaSuccess (48 vs. 0) no kernel image is available for execution on the device
*** Check failure stack trace: ***
@ 0x7f7ec74718 google::LogMessage::Fail()
@ 0x7f7ec76614 google::LogMessage::SendToLog()
@ 0x7f7ec74290 google::LogMessage::Flush()
@ 0x7f7ec76eb4 google::LogMessageFatal::~LogMessageFatal()
@ 0x7f7d437d28 caffe::PermuteLayer<>::Forward_gpu()
@ 0x55dc5c caffe::Layer<>::Forward()
@ 0x6dc374 caffe::PermuteLayerTest_TestFowrad3D_Test<>::TestBody()
@ 0xa5971c testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0xa519c4 testing::Test::Run()
@ 0xa51b00 testing::TestInfo::Run()
@ 0xa51bc0 testing::TestCase::Run()
@ 0xa52d20 testing::internal::UnitTestImpl::RunAllTests()
@ 0xa53034 testing::UnitTest::Run()
@ 0x53b588 main
@ 0x7f7cd778a0 __libc_start_main
Makefile:526: recipe for target 'runtest' failed
make: *** [runtest] Aborted (core dumped)
哪位大神能帮忙解决一下?
YCMyTot 2018-05-25
  • 打赏
  • 举报
回复
版本问题,该换显卡了
zhouyiqi_C 2018-01-21
  • 打赏
  • 举报
回复
我在NVIDIA论坛找到了答案,cuda 9.0以上不支持计算能为小于3的显卡,换cuda 8.0就可以了。
anlunson 2021-07-19
  • 举报
回复
@zhouyiqi_C 你好,我想问一下,3.0的也不支持吗?
LevinLD 2018-01-15
  • 打赏
  • 举报
回复
error = cudaSucess (48 vs. 0) no kernel image is available for execution on the device 楼主问题解决了吗
lovecbmp 2018-01-10
  • 打赏
  • 举报
回复
引用 1 楼 u010272201 的回复:
我也遇到了这个问题,请问您解决了吗?
我也遇到了,你解决了吗
lovecbmp 2018-01-10
  • 打赏
  • 举报
回复
你好,请问这个问题你解决了吗?我也遇到了。
u010272201 2017-12-14
  • 打赏
  • 举报
回复
我也遇到了这个问题,请问您解决了吗?

579

社区成员

发帖
与我相关
我的任务
社区描述
CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。 它包含了CUDA指令集架构(ISA)以及GPU内部的并行计算引擎。
社区管理员
  • CUDA编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧