configure: fix CUDA compilation with SDK version 13 nvcc

Compute Capability 7.5 is now the lowest supported version.

Fixes #20454
This commit is contained in:
Timo Rothenpieler
2025-09-08 14:24:56 +02:00
parent 45db6945e9
commit f8a300c673

3
configure vendored
View File

@@ -4812,6 +4812,9 @@ if enabled cuda_nvcc; then
if $nvcc $nvccflags_default 2>&1 | grep -qi unsupported; then
nvccflags_default="-gencode arch=compute_60,code=sm_60 -O2"
fi
if $nvcc $nvccflags_default 2>&1 | grep -qi unsupported; then
nvccflags_default="-gencode arch=compute_75,code=sm_75 -O2"
fi
fi
set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \