Skip to content

CUDA: Restore support for non-"all" CUDA_ARCHITECTURES with nvcc 11.5+

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

Since !6816 (merged), setting CUDA_ARCHITECTURES to a value other than all or all-major is ignored with NVCC 11.5+. Fix the logic to return early only when actually using an "all" value.

Fixes: #23243 (closed)
Backport: release

Merge request reports