[clang] [Driver] Pass `--no-cuda-version-check` to test (PR #117415)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 22 21:21:56 PST 2024
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
More information about the cfe-commits
mailing list