|
1 | 1 | // REQUIRES: amdgpu-registered-target
|
2 |
| -// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ |
3 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
4 |
| -// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s |
5 |
| -// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ |
6 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
7 |
| -// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s |
8 |
| -// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ |
9 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
10 |
| -// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s |
11 |
| -// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ |
12 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
13 |
| -// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE32 %s |
14 |
| -// RUN: %clang -E -dM --offload-arch=gfx906 -mno-wavefrontsize64 \ |
15 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
16 |
| -// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s |
17 |
| -// RUN: %clang -E -dM --offload-arch=gfx1010 -mno-wavefrontsize64 \ |
18 |
| -// RUN: --cuda-device-only -nogpuinc -nogpulib \ |
19 |
| -// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s |
20 |
| -// WAVE64-DAG: #define __AMDGCN_WAVEFRONT_SIZE__ 64 |
21 |
| -// WAVE32-DAG: #define __AMDGCN_WAVEFRONT_SIZE__ 32 |
22 |
| -// WAVE64-DAG: #define __AMDGCN_WAVEFRONT_SIZE 64 |
23 |
| -// WAVE32-DAG: #define __AMDGCN_WAVEFRONT_SIZE 32 |
24 |
| - |
25 | 2 | // RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib \
|
26 | 3 | // RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
27 | 4 | // RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mcumode \
|
|
0 commit comments