Skip to content

Commit

Permalink
[Driver] Pass --cuda-path to test (#117415)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bzEq authored Nov 26, 2024
1 parent 1ea7ced commit 97fe5fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/test/Driver/cuda-no-threadsafe-statics.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// 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 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \
// RUN: 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
Expand Down

0 comments on commit 97fe5fa

Please sign in to comment.