I wrote a new CUDA program, but when I compile, I get an error 'checkCudaErrors' was not declared in this scope. So I added #include "helper_cuda.h",but I still had the same problem.
I opened the file, helper_cuda.h, with Visual Studio Code and found that most of this file is gray. The problem was I did not have the defination __DRIVER_TYPES_H__, so I added #include "driver_types.h". But it was useless. In the file, driver_types.h, it showed that I already had the definition __DRIVER_TYPES_H__. How can I fix it?
So the real problem is that, the file, driver_tyeps.h, shows I already had the definition of __DRIVER_TYPES_H__, but helper_cuda.h shows I don't have the definition.