我该如何摆脱这个错误 [英] How Do I Get Rid Of This Error
本文介绍了我该如何摆脱这个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能摆脱这个错误:智能感知:期待一个表达?
它困扰我很多:(
how can i get rid of this error :IntelliSense: expected an expression ??
it's bothering me alot :(
#include "cuda.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void helloworldcuda_Kernel()
{
printf("Hello world cuda");
}
void helloworldcuda()
{
helloworldcuda_Kernel<<<1, 1>>>();
}
int main()
{
helloworldcuda();
}
推荐答案
这种语法看起来很奇怪,编译器说它无效。您应该检查CUDA文档以编写工作代码。
我发现了一些解决方案。还有一个教程链接。你应该研究它。
This syntax looks strange and the compilers says it isnt valid. You should check the CUDA documents to write working code.
I found some solution with google. There is also a link for a tutorial. You should study it.
这篇关于我该如何摆脱这个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文