Visual Studio2022 cuda11.6 win10
CMake project under Visual Studio 2022 windows10 hits this.
Visual Studio 2022 support CUDA 11.6 above.
Check here
https://forums.developer.nvidia.com/t/visual-studio-2022-cuda-toolkit-support/197578 https://forums.developer.nvidia.com/t/visual-studio-2022-cuda-toolkit-support/197578 https://docs.nvidia.com/cuda/archive/11.5.2/cuda-installation-guide-microsoft-windows/index.html https://developer.nvidia.com/cuda-toolkit-archive
https://blog.csdn.net/qq_26157437/article/details/129834852
Simpily open the cudaVStemplate folder with Visual Studio, this project use CMake not .sln.
Make sure the correspondent Cuda version in the CMakeLists.txt. (>=11.6)
Hit compile the solution button.
basic_vector.cu uses header only Cuda library thrust to make sure the environment works.