|
16 | 16 | // RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpuinc -nogpulib %s 2>&1 \
|
17 | 17 | // RUN: | FileCheck -check-prefixes=COMMON,CLANG,NOHIP %s
|
18 | 18 |
|
| 19 | +// COMMON: InstalledDir: [[ROOT:[^"]*]]/bin |
| 20 | + |
19 | 21 | // COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
20 |
| -// CLANG-SAME: "-internal-isystem" "{{.*}}clang/{{.*}}/include/cuda_wrappers" |
21 |
| -// NOCLANG-NOT: "{{.*}}clang/{{.*}}/include/cuda_wrappers" |
| 22 | +// CLANG-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{.*}}/include/cuda_wrappers" |
| 23 | +// NOCLANG-NOT: "[[ROOT]]/lib/clang/{{.*}}/include/cuda_wrappers" |
22 | 24 | // HIP-SAME: "-internal-isystem" "{{.*}}Inputs/rocm/include"
|
23 | 25 | // NOHIP-NOT: "{{.*}}Inputs/rocm/include"
|
24 | 26 | // HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"
|
25 | 27 | // NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
26 | 28 | // skip check of standard C++ include path
|
27 |
| -// CLANG-SAME: "-internal-isystem" "{{.*}}clang/{{.*}}/include" |
28 |
| -// NOCLANG-NOT: "{{.*}}clang/{{.*}}/include" |
| 29 | +// CLANG-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{.*}}/include" |
| 30 | +// NOCLANG-NOT: "[[ROOT]]/lib/clang/{{.*}}/include" |
29 | 31 |
|
30 | 32 | // COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
31 |
| -// CLANG-SAME: "-internal-isystem" "{{.*}}clang/{{.*}}/include/cuda_wrappers" |
32 |
| -// NOCLANG-NOT: "{{.*}}clang/{{.*}}/include/cuda_wrappers" |
| 33 | +// CLANG-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{.*}}/include/cuda_wrappers" |
| 34 | +// NOCLANG-NOT: "[[ROOT]]/lib/clang/{{.*}}/include/cuda_wrappers" |
33 | 35 | // HIP-SAME: "-internal-isystem" "{{.*}}Inputs/rocm/include"
|
34 | 36 | // NOHIP-NOT: "{{.*}}Inputs/rocm/include"
|
35 | 37 | // HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"
|
36 | 38 | // NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
37 | 39 | // skip check of standard C++ include path
|
38 |
| -// CLANG-SAME: "-internal-isystem" "{{.*}}clang/{{.*}}/include" |
39 |
| -// NOCLANG-NOT: "{{.*}}clang/{{.*}}/include" |
| 40 | +// CLANG-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{.*}}/include" |
| 41 | +// NOCLANG-NOT: "[[ROOT]]/lib/clang/{{.*}}/include" |
40 | 42 |
|
41 | 43 | // RUN: %clang -c -### -target x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \
|
42 | 44 | // RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \
|
43 | 45 | // RUN: --hip-version=3.5 | FileCheck -check-prefixes=ROCM35 %s
|
44 | 46 |
|
| 47 | +// ROCM35: InstalledDir: [[ROOT:[^"]*]]/bin |
| 48 | + |
45 | 49 | // ROCM35-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
46 |
| -// ROCM35-NOT: "{{.*}}clang/{{.*}}/include/cuda_wrappers" |
47 |
| -// ROCM35-SAME: "-internal-isystem" "{{[^"]*}}clang/{{[^"]*}}" |
| 50 | +// ROCM35-NOT: "[[ROOT]]/lib/clang/{{.*}}/include/cuda_wrappers" |
| 51 | +// ROCM35-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{[^"]*}}" |
48 | 52 | // ROCM35-SAME: "-internal-isystem" "{{[^"]*}}Inputs/rocm/include"
|
49 | 53 | // ROCM35-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
50 | 54 | // skip check of standard C++ include path
|
51 |
| -// ROCM35-SAME: "-internal-isystem" "{{[^"]*}}clang/{{[^"]*}}/include" |
| 55 | +// ROCM35-SAME: "-internal-isystem" "[[ROOT]]/lib/clang/{{.*}}/include" |
0 commit comments