cuda/c syntax with cuda 10.1 and visual studio 2017

I could not find resources to allow Visual Studio 2017 to manage cuda/c syntax in the cuda 10.1 installation files.

How are we supposed to to this with those versions ?

@Robert_Crovella Thanks. But I know this page, and cuda 10.1 is installed with VS2017 integration, and despite this, cuda/c syntax is not managed correctly. Example taken from cuda 10.1 samples, file marked as cuda/c++ file.

[url]https://1drv.ms/u/s!AlUmbfQiLoTZhDgqEf60m3Xy1cDn[/url]

So you’re worried about the red underlines? That shouldn’t prevent you from using CUDA.

If you do some googling you’ll find plenty of descriptions of it and what you can do about it.

try googling “cuda red underline”

I managed to compile the samples. But I understand that there is no intellisense integration for cuda keywords and syntax to date. Am I correct ?

For previous version there was C:\Users<USER>\AppData\Local\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\doc\syntax_highlighting\visual_studio_8\usertype.dat to help deal with the cuda/c syntax. This does not exist anymore ?

I’m actually putting in one bag two problems: 1. syntax integration 2. intellisense integration

So, I understand there are workarounds for 1, and nothing for 2. Am I correct ?

correct, no formal intellisense integration (there are some workarounds that the community has developed, if you do those google searches, but they probably don’t cover every case)

I’m not sure what you mean by the syntax integration.

Anyway, I’m not likely to be much further help here.

You can compile and run CUDA codes, you’ve already demonstrated that.

The Visual Studio integration is not perfect.

But what became of usertype.dat ?

Syntax integration: telling to intellisense that they exist, ie., management of cuda specific syntax:
<<< >>>, float4, etc.

Intellisense integration: going beyond declaration (ie., giving a type, etc)