Intellisense in VS2010 Helloworld compiles and runs, but VS intellisense still shows error


I have integrated Cuda in VS2010 by following the instructions here:

I Also created a small helloworld application which runs fine without any problems.

The problem is that in the IDE I still get red underscore on many declarations such as the global declaration. If I move the mouse over it I get a “Error: this declaration has no storage class or type specifier”. Basically all CUDA specific functions/declarations are underlined with red showing an error but all compiles ok and runs fine? any idea what might be causing this. (I attach a screenshot)



Got it to work using: