cuda调用核函数出现 IntelliSense错误:应输入表达式

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cuda调用核函数出现 IntelliSense错误:应输入表达式相关的知识,希望对你有一定的参考价值。

调用核函数decon_kernel<<<numBlocks, numThreads>>>(src1, src2, dst, size, snr);时第三个小于号下有红色波浪线,提示应输入表达式。求教高手

参考技术A It could be that the Intellisense database is screwed up. Here's what I've done to correct it when it happens to me:
1、Make sure your code is in a state where everything will compile.
2、Exit Visual Studio
3、Delete the .suo and .sdf files in the solution's directory. (Deleting the .suo probably isn't necessary to this cleanup process, but it doesn't hurt.)
4、Open the solution in Visual Studio.
5、Select Build --> Batch Build.
6、In the Batch Build window, click "Select All", and then "Rebuild".本回答被提问者和网友采纳

以上是关于cuda调用核函数出现 IntelliSense错误:应输入表达式的主要内容,如果未能解决你的问题,请参考以下文章

cuda核函数再调用核函数,多层并行

重载 cuda 核函数

CUDA编程 CUDA初始化与核函数

CUDA 核函数调试:cuda-gdb,cuda printf, cuda assert 读书笔记

Visual Studio 2017 Intellisense 不适用于 CUDA(.cu 文件)

将二维推力::device_vector 复矩阵传递给 CUDA 核函数