Skip to content

VS: Fix CUDA compiler id with CMAKE_CUDA_ARCHITECTURES={all,all-major}

Brad King requested to merge brad.king/cmake:cuda-arch-all into master

Skip the architecture verification check for these values on Visual Studio. It cannot be implemented correctly until future work delays the check to the main compiler test step.

The CudaOnly.All test only sets CMAKE_CUDA_ARCHITECTURES={all,all-major} in project code after CUDA is enabled. Add another case to test the values during compiler detection.

Issue: #23164 (closed), #23161 (closed)
Backport: release

Merge request reports