From 52cc323735ced6e8095cfd3acea0e36e35c76eb2 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Sat, 13 Feb 2021 02:59:42 +1100 Subject: [PATCH] configure: use no-narrowing for cuda-llvm compilation This fixes llvm compiler generating errors about narrowing conversion with recent releases. Signed-off-by: Timo Rothenpieler --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 336301cb40..98daa1a64a 100755 --- a/configure +++ b/configure @@ -6243,7 +6243,7 @@ fi if enabled cuda_nvcc; then nvccflags="$nvccflags -ptx" else - nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -include ${source_link}/compat/cuda/cuda_runtime.h" + nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -Wno-c++11-narrowing -include ${source_link}/compat/cuda/cuda_runtime.h" check_nvcc cuda_llvm fi