CUDA’s example code in Visual Studio 2022 has an error
Today, I installed the “CUDA toolkit 12.2.0” in my cpmputer, just corresponding to my CUDA version 12.2. And my computer is pre-installed with Visual Studio 2022 (v17.6.5). Everthing seems alright.
CUDA compatibility with Visual Studio 2022 version 17.10
I have just upgraded Visual Studio 2022 to the latest version 17.10, and found that my program using CUDA v12.0 does not compile because of the error in NVIDIA GPU Computing ToolkitCUDAv12.0includecrthost_config.h
: