[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / hip-wavefront-size.hip
blobf9ec9f6b82d4f96c51ec4fc85a11967abdb66d1d
1 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang -### -target x86_64-linux-gnu \
4 // RUN:   --cuda-gpu-arch=gfx900 \
5 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
6 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE64
7 // WAVE64: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
9 // RUN: %clang -### -target x86_64-linux-gnu \
10 // RUN:   --cuda-gpu-arch=gfx1010 \
11 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
12 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE32
13 // WAVE32: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"
15 // RUN: %clang -### -target x86_64-linux-gnu \
16 // RUN:   --cuda-gpu-arch=gfx1010 \
17 // RUN:   --cuda-gpu-arch=gfx900 \
18 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
19 // RUN:   2>&1 | FileCheck %s --check-prefixes=BOTH
20 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
21 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"