"Expected an expression" issue at <<<X,X>>> syntact (Visual Studio 2019 & Cuda 10.1)

Hello!

I have the following error while I’m trying to run the template kernel.
https://i.imgur.com/So1Y036.jpg
The compiler doesn’t recognize <<<X,X>>> syntact.
I tried reinstall, tried other version of VS and cuda etc. They don’t work either. Anyone has any suggestion?
Windows 10, GTX 1060 6g
Thanks!

See the box that says “Build + Intellisense” ?

Change that box to read just “Build”

If the error disappears from the list it is an intellisense error, and you can safely ignore it. Intellisense does not recognize CUDA syntax. Or you can google “cuda red underline” and see if any of the descriptions of it on the internet are things you wish to try. There isn’t any standard solution.

If this is an actual build error, then your project is misconfigured in some way. Build a CUDA sample project (such as vectorAdd) to show how a properly configured project will build correctly, even with <<<X,Y>>> in it.