| 1 |
// RUN: %clang -### --target=x86_64-linux-gnu \ |
| 2 |
// RUN: --cuda-gpu-arch=gfx900 \ |
| 3 |
// RUN: --rocm-path=%S/Inputs/rocm --cuda-device-only %s \ |
| 4 |
// RUN: 2>&1 | FileCheck %s --check-prefixes=WAVE64 |
| 5 |
// WAVE64: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900" |
| 6 |
|
| 7 |
// RUN: %clang -### --target=x86_64-linux-gnu \ |
| 8 |
// RUN: --cuda-gpu-arch=gfx1010 \ |
| 9 |
// RUN: --rocm-path=%S/Inputs/rocm --cuda-device-only %s \ |
| 10 |
// RUN: 2>&1 | FileCheck %s --check-prefixes=WAVE32 |
| 11 |
// WAVE32: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010" |
| 12 |
|
| 13 |
// RUN: %clang -### --target=x86_64-linux-gnu \ |
| 14 |
// RUN: --cuda-gpu-arch=gfx1010 \ |
| 15 |
// RUN: --cuda-gpu-arch=gfx900 \ |
| 16 |
// RUN: --rocm-path=%S/Inputs/rocm --cuda-device-only %s \ |
| 17 |
// RUN: 2>&1 | FileCheck %s --check-prefixes=BOTH |
| 18 |
// BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900" |
| 19 |
// BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010" |