Skip to content

Commit 97fe5fa

Browse files
authored
[Driver] Pass --cuda-path to test (#117415)
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 `--cuda-path`. Hope this doesn't affect the original intention of the test.
1 parent 1ea7ced commit 97fe5fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \
6+
// RUN: 2>&1 | FileCheck %s
67

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

0 commit comments

Comments
 (0)