5

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

enter image description here

Kevin Orriss
  • 1,012
  • 3
  • 11
  • 24
  • In the search box in the upper right hand corner of this page, search on `cuda red underline` and you'll get a number of hits with suggestions. – Robert Crovella Jan 23 '13 at 00:04
  • @RobertCrovella 4 hits, no answer for one, one not relevant. One possibly relevant. The last is relevant and this duplicates it almost exactly. – Pavan Yalamanchili Jan 23 '13 at 02:54
  • Possible duplicate http://stackoverflow.com/questions/6061565/setting-up-vs-2010-intellisense-for-cuda-kernel-calls – Pavan Yalamanchili Jan 23 '13 at 02:55
  • CUDA runtime <<<>>> syntax is not compliant with the C++ language causing C++ compliant tools (even ones with relaxed requirements) to show it as an error. – Greg Smith Jan 23 '13 at 04:18
  • The triple-chevron syntax is problematic, since it's already overloaded in so many contexts in C++; that could be some combination of less than signs, bit shifts, template brackets, or pipping (how cout, etc use it). Don't have too high of expectations for intellisense. – alrikai Jan 23 '13 at 06:09
  • We have same question. and, Any update on this? [this is my question.][1] [1]: http://stackoverflow.com/questions/18954102/errors-that-occur-when-i-start-the-kernel-function-in-cuda-5-5 – kuu Sep 24 '13 at 14:01
  • We have same question. and, Any update on this? [this is my question.][1] [1]: http://stackoverflow.com/questions/18954102/errors-that-occur-when-i-start-the-kernel-function-in-cuda-5-5 – kuu Sep 24 '13 at 14:02
  • We have same question. and, Any update on this? [this is my question.][1] [1]: http://stackoverflow.com/questions/18954102/errors-that-occur-when-i-start-the-kernel-function-in-cuda-5-5 – kuu Sep 24 '13 at 14:34

1 Answers1

5

From a combination of the answers above (thank you) I have the answer to this question just in case anyone else stumbles upon it.

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.

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.

Kevin Orriss
  • 1,012
  • 3
  • 11
  • 24