Researcher

Greetings to the programming community,
I am writing to seek your assistance and expertise on a topic related to CUDA programming. I could’n launch the sample from nvidia site:

Visual Studio 2022 doesn’t understand line of code:
using namespace nvcuda;

It may be an intellisense issue.

The namespase nvcuda is not available in VS 2022.
What should I do in order to make namespace nvcuda visible in VS 2022, windows?


The namespase nvcuda is not available in VS 2022.
What should I do in order to make namespace nvcuda visible in VS 2022, windows?
I get the following hint:
“name must be a namespace”

The <mma.h> header file might contain code that is only compiled while building device code. Possibly IntelliSense doesn’t see relevant definitions as a consequence.

It might also make a difference whether you are in a .cpp or a .cu file.