CUDA Toolkit support for VS 2022

When support of MS VS 2022 in CUDA Toolkit is planned?

I have upgraded MS VS (to 2022 edition). First step in learning CUDA is installation of CUDA Toolkit (cuda_11.5.0_496.13_win10.exe). And I have encounterd obstacles - it supports only VS 2019 and sample projects can not be loaded correctly. Suppose that many other things will not work…

9 Likes

I got the error already during build of opencv with cuda:

NVIDIA GPU Computing Toolkit\CUDA\v11.5\include\crt/host_config.h(160): fatal error C1189: #error: – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
CMake Error at cuda_compile_1_generated_gpu_mat_nd.cu.obj.Debug.cmake:220 (message):
Error generating
D:/Programming/vcpkg_new/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat_nd.cu.obj

I have the same issue. As VS 2022 is built on 64 bits it’s really crucial to have CUDA support on this version.

Count me in as interested.

11.6 supports VS 2022.