diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-06 21:31:00 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-06 21:31:00 +0200 |
commit | c67f354be8610eefb9a2b195f6dc4d6da637b687 (patch) | |
tree | fb02f8ae3d3a988e7b4af59afd7abe88f64944d8 /configure | |
parent | 43295ae6a9245d8b58c15e5053994c87d95a9689 (diff) | |
download | ffmpeg-c67f354be8610eefb9a2b195f6dc4d6da637b687.tar.gz |
configure: detect nvcc without sm_30 support
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4388,8 +4388,16 @@ else NVCC_C="" fi +set_default nvcc + +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 +fi + set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \ - target_exec x86asmexe nvcc + target_exec x86asmexe enabled cross_compile || host_cc_default=$cc set_default host_cc |