You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.2 KiB
22 lines
1.2 KiB
// REQUIRES: clang-driver, amdgpu-registered-target
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE32 %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 -mno-wavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1010 -mno-wavefrontsize64 \
|
|
// RUN: --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s
|
|
// WAVE64-DAG: #define __AMDGCN_WAVEFRONT_SIZE 64
|
|
// WAVE32-DAG: #define __AMDGCN_WAVEFRONT_SIZE 32
|