llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-driver Author: Kai Luo (bzEq) <details> <summary>Changes</summary> My local build, on Debian GNU/Linux 12 (bookworm), complains ``` clang: error: GPU arch sm_20 is supported by CUDA versions between 7.0 and 8.0 (inclusive), but installation at /usr/lib/cuda is 11.8; use '--cuda-path' to specify a different CUDA install, pass a different GPU arch with '--cuda-gpu-arch', or pass '--no-cuda-version-check' ``` Fix it by passing `--no-cuda-version-check`. --- Full diff: https://github.com/llvm/llvm-project/pull/117415.diff 1 Files Affected: - (modified) clang/test/Driver/cuda-no-threadsafe-statics.cu (+1-1) ``````````diff diff --git a/clang/test/Driver/cuda-no-threadsafe-statics.cu b/clang/test/Driver/cuda-no-threadsafe-statics.cu index eb15312f8f7d14..494f0e7a89ff32 100644 --- a/clang/test/Driver/cuda-no-threadsafe-statics.cu +++ b/clang/test/Driver/cuda-no-threadsafe-statics.cu @@ -2,7 +2,7 @@ // compilation only. // // RUN: %clang -### -x cuda --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 %s \ -// RUN: -nocudainc -nocudalib 2>&1 | FileCheck %s +// RUN: -nocudainc -nocudalib --no-cuda-version-check 2>&1 | FileCheck %s // RUN: %clang -### -x hip --target=x86_64-linux-gnu -c --cuda-gpu-arch=gfx1010 %s \ // RUN: -nocudainc -nocudalib 2>&1 | FileCheck %s `````````` </details> https://github.com/llvm/llvm-project/pull/117415 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits