Skip to content

Commit eb0bc0b

Browse files
committed
[Driver] Pass --no-cuda-version-check to test
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`.
1 parent 85601fd commit eb0bc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/cuda-no-threadsafe-statics.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// compilation only.
33
//
44
// RUN: %clang -### -x cuda --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 %s \
5-
// RUN: -nocudainc -nocudalib 2>&1 | FileCheck %s
5+
// RUN: -nocudainc -nocudalib --no-cuda-version-check 2>&1 | FileCheck %s
66

77
// RUN: %clang -### -x hip --target=x86_64-linux-gnu -c --cuda-gpu-arch=gfx1010 %s \
88
// RUN: -nocudainc -nocudalib 2>&1 | FileCheck %s

0 commit comments

Comments
 (0)