| 1 |
// expected-no-diagnostics |
| 2 |
|
| 3 |
// RUN: %clang_cc1 -triple spirv64 -aux-triple x86_64-unknown-linux-gnu \ |
| 4 |
// RUN: -fcuda-is-device -verify -fsyntax-only %s |
| 5 |
|
| 6 |
#define __global__ __attribute__((global)) |
| 7 |
|
| 8 |
__attribute__((reqd_work_group_size(128, 1, 1))) |
| 9 |
__global__ void reqd_work_group_size_128_1_1() {} |
| 10 |
|
| 11 |
template <unsigned a, unsigned b, unsigned c> |
| 12 |
__attribute__((reqd_work_group_size(a, b, c))) |
| 13 |
__global__ void reqd_work_group_size_a_b_c() {} |
| 14 |
|
| 15 |
template <> |
| 16 |
__global__ void reqd_work_group_size_a_b_c<128,1,1>(void); |
| 17 |
|
| 18 |
__attribute__((work_group_size_hint(2, 2, 2))) |
| 19 |
__global__ void work_group_size_hint_2_2_2() {} |
| 20 |
|
| 21 |
template <unsigned a, unsigned b, unsigned c> |
| 22 |
__attribute__((work_group_size_hint(a, b, c))) |
| 23 |
__global__ void work_group_size_hint_a_b_c() {} |
| 24 |
|
| 25 |
template <> |
| 26 |
__global__ void work_group_size_hint_a_b_c<128,1,1>(void); |
| 27 |
|
| 28 |
__attribute__((vec_type_hint(int))) |
| 29 |
__global__ void vec_type_hint_int() {} |
| 30 |
|
| 31 |
__attribute__((intel_reqd_sub_group_size(64))) |
| 32 |
__global__ void intel_reqd_sub_group_size_64() {} |