|
1 | 1 | // REQUIRES: x86-registered-target, amdgpu-registered-target
|
2 | 2 |
|
3 | 3 | // Fail on invalid ROCm Path.
|
4 |
| -// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ -fsanitize=address -fgpu-sanitize -nogpuinc --rocm-path=%S/Inputs/rocm-invalid %s 2>&1 \ |
| 4 | +// RUN: not %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ -fsanitize=address -fgpu-sanitize -nogpuinc --rocm-path=%S/Inputs/rocm-invalid %s 2>&1 \ |
5 | 5 | // RUN: | FileCheck --check-prefix=FAIL %s
|
6 | 6 |
|
7 | 7 | // Enable multiple sanitizer's apart from ASan with invalid rocm-path.
|
8 |
| -// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ -fsanitize=address -fsanitize=leak -fgpu-sanitize --rocm-path=%S/Inputs/rocm-invalid -nogpuinc %s 2>&1 \ |
| 8 | +// RUN: not %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ -fsanitize=address -fsanitize=leak -fgpu-sanitize --rocm-path=%S/Inputs/rocm-invalid -nogpuinc %s 2>&1 \ |
9 | 9 | // RUN: | FileCheck --check-prefixes=NOTSUPPORTED,FAIL %s
|
10 | 10 |
|
11 | 11 | // Memory, Leak, UndefinedBehaviour and Thread Sanitizer are not supported on AMDGPU.
|
12 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ -fsanitize=address -fsanitize=leak -fgpu-sanitize --rocm-path=%S/Inputs/rocm -nogpuinc %s 2>&1 \ |
| 12 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ -fsanitize=address -fsanitize=leak -fgpu-sanitize --rocm-path=%S/Inputs/rocm -nogpuinc %s 2>&1 \ |
13 | 13 | // RUN: | FileCheck --check-prefix=NOTSUPPORTED %s
|
14 | 14 |
|
15 | 15 | // GPU ASan Enabled Test Cases
|
16 | 16 | // ASan enabled for amdgpu-arch [gfx908]
|
17 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908 -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 17 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908 -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
18 | 18 | // RUN: | FileCheck -check-prefixes=NOXNACK,GPUSAN %s
|
19 | 19 |
|
20 | 20 | // GPU ASan enabled for amdgpu-arch [gfx908:xnack-]
|
21 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack- -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 21 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack- -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
22 | 22 | // RUN: | FileCheck -check-prefixes=XNACKNEG,GPUSAN %s
|
23 | 23 |
|
24 | 24 | // GPU ASan enabled for amdgpu-arch [gfx908:xnack+]
|
25 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 25 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
26 | 26 | // RUN: | FileCheck -check-prefixes=GPUSAN %s
|
27 | 27 |
|
28 | 28 | // ASan enabled for multiple amdgpu-arch [gfx908:xnack+,gfx900:xnack+]
|
29 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ --offload-arch=gfx900:xnack+ -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 29 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ --offload-arch=gfx900:xnack+ -fsanitize=address -fgpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
30 | 30 | // RUN: | FileCheck -check-prefixes=GPUSAN %s
|
31 | 31 |
|
32 | 32 | // GPU ASan Disabled Test Cases
|
33 | 33 | // ASan disabled for amdgpu-arch [gfx908]
|
34 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908 -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 34 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908 -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
35 | 35 | // RUN: | FileCheck -check-prefixes=NOGPUSAN %s
|
36 | 36 |
|
37 | 37 | // GPU ASan disabled for amdgpu-arch [gfx908:xnack-]
|
38 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack- -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 38 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack- -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
39 | 39 | // RUN: | FileCheck -check-prefixes=NOGPUSAN %s
|
40 | 40 |
|
41 | 41 | // GPU ASan disabled for amdgpu-arch [gfx908:xnack+]
|
42 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 42 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
43 | 43 | // RUN: | FileCheck -check-prefixes=NOGPUSAN %s
|
44 | 44 |
|
45 | 45 | // ASan disabled for amdgpu-arch [gfx908:xnack+,gfx900:xnack+]
|
46 |
| -// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx908:xnack+ --offload-arch=gfx900:xnack+ -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
| 46 | +// RUN: %clang -no-canonical-prefixes -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --offload-arch=gfx908:xnack+ --offload-arch=gfx900:xnack+ -fsanitize=address -fno-gpu-sanitize --rocm-path=%S/Inputs/rocm %s 2>&1 \ |
47 | 47 | // RUN: | FileCheck -check-prefixes=NOGPUSAN %s
|
48 | 48 |
|
49 | 49 | // FAIL-DAG: error: cannot find ROCm device library for ABI version 5; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
|
|
0 commit comments