visual studio 2013 red underlines syntactically correct cuda code

Hi,

visual studio 2013 red underlines syntactically correct cuda code. Is there any solution to this?

Best,
T

It’s a well known issue. If you google “cuda red underline visual studio” you will find many suggestions about how to mitigate it, some of which may vary depending on which VS version you have. The usual suggestion is to try adding particular include files to your modules (which are ordinarily not necessary when compiling with nvcc), which will sometimes have the effect of causing the intellisense parser to recognize certain cuda constructs.