How to eliminate the intellisense warning under the <<<>>> in vs2019

499 views Asked by At

I'm trying my first cuda example with vs2019,but i don't know how to eliminate the warning under the <<<>>>, it looks dirty

add <<<1, 1 >> > (2, 7, dev_c);

enter image description here

1

There are 1 answers

2
Mr Qian On

I am afraid that you cannot get what you want so far.

C++ does not support such cuda's style of writing so far by default. And VS only partly inherits CUDA functionality.

After all, * is not a cuda-specific language editor, so it can't get full Intellisence. It is also only a partial inheritance.

As a suggestion from this document, you should

switch from the Runtime API to the Driver API. The C++ is just C++, and the CUDA is still (sort of) C++, there is no <<<>>> badness for the language parsing to have to work around.

Besides, if it does not meet your requirement, you should contact with the Team to suggest a feature about idea.