From f8a300c6739ea2ca648579d7faf3ae9811b9f19a Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Mon, 8 Sep 2025 14:24:56 +0200 Subject: [PATCH] configure: fix CUDA compilation with SDK version 13 nvcc Compute Capability 7.5 is now the lowest supported version. Fixes #20454 --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index a38cbdb89f..c6afcd7494 100755 --- a/configure +++ b/configure @@ -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 \