CUDA 5和Visual Studio 2010 intellisense错误 [英] CUDA 5 and Visual Studio 2010 intellisense error
问题描述
我已经安装了CUDA 5工具包(32和64位似乎工作),并在VS 2010做了一个CUDA运行时项目,它编译精细,运行,但我得到一个红线下调用CUDA函数。
I have installed CUDA 5 toolkit (32 and 64 bit as that seemed to work) and have made a CUDA runtime project in VS 2010, it compiles fine and runs but I get a red line under the call to the CUDA function.
这不是一个巨大的交易,但它有点烦人,有没有办法删除这个?我猜这是一些项目设置或一些这样,但我不知道,也不是谷歌。
It isn't a massive deal but it is a little annoying, is there any way to remove this? I'm guessing it is some project setting or some such but I have no idea and neither does Google.
我附上了一个截图,所以你知道我在说什么
I have attached a screenshot so you know what I am talking about.
感谢您阅读本文,我非常感谢。
Thanks for reading this, I appreciate it.
Kevin
>
推荐答案
从上面的答案(谢谢)的组合,我有这个问题的答案,以防万一任何人绊倒。
From a combination of the answers above (thank you) I have the answer to this question just in case anyone else stumbles upon it.
基本上这不是一个编译错误,甚至是一个错误。这是一个intellisense的问题,从我可以看到,没有什么可以做,只是要与它一起生活,或希望有一天他们加一点支持。
Basically this is not a compile error, or even an error at all. It is a problem with intellisense and from what I can see, nothing can be done about it, just have to live with it, or hope that one day they add a little more support.
<< >>>是问题,是不正确的C ++语法根据intellisense,喜欢C ++编译器。然而,它由CUDA编译器编译的代码它intellisense不能给一个damn。
The <<< >>> is the problem and is not correct C++ syntax according to intellisense which favours the C++ compiler. However that code it compiled by the CUDA compiler which intellisense couldn't give a damn about.
我可以深入了解它,但阅读上面的评论和搜索这个网站建议,你会明白。
I could probably go into more depth about it but read the above comments and search this site as suggested and you will understand.
这篇关于CUDA 5和Visual Studio 2010 intellisense错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!