diff mbox series

[FFmpeg-devel] configure: bump default nvcc arch to compute_35

Message ID 20210612104330.28551-1-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel] configure: bump default nvcc arch to compute_35
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov June 12, 2021, 10:43 a.m. UTC
From: Matthieu Patou <mpatou@fb.com>

compute_30 seems to be removed from CUDA SDK 11.0

Suggested-by: ffmpeg@fb.com
Signed-off-by: Anton Khirnov <anton@khirnov.net>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Timo Rothenpieler June 12, 2021, 11:14 a.m. UTC | #1
On 12.06.2021 12:43, Anton Khirnov wrote:
> From: Matthieu Patou <mpatou@fb.com>
> 
> compute_30 seems to be removed from CUDA SDK 11.0

It is, that's why just a few lines below there is a check that tests for 
that and upgrades the version if necessary.
diff mbox series

Patch

diff --git a/configure b/configure
index 6bfd98b384..d9e649d030 100755
--- a/configure
+++ b/configure
@@ -4381,7 +4381,7 @@  fi
 
 if enabled cuda_nvcc; then
     nvcc_default="nvcc"
-    nvccflags_default="-gencode arch=compute_30,code=sm_30 -O2"
+    nvccflags_default="-gencode arch=compute_35,code=sm_35 -O2"
 else
     nvcc_default="clang"
     nvccflags_default="--cuda-gpu-arch=sm_30 -O2"