|
9 | 9 | const int constint = 4; |
10 | 10 |
|
11 | 11 | // CHECK: __attribute__((global)) __attribute__((cluster_dims(2, 2, 2))) void test_literal_3d() |
12 | | -__global__ void __cluster_dims__(2, 2, 2) test_literal_3d() {} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 12 | +__global__ void __cluster_dims__(2, 2, 2) test_literal_3d() {} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
13 | 13 |
|
14 | 14 | // CHECK: __attribute__((global)) __attribute__((cluster_dims(2, 2))) void test_literal_2d() |
15 | | -__global__ void __cluster_dims__(2, 2) test_literal_2d() {} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 15 | +__global__ void __cluster_dims__(2, 2) test_literal_2d() {} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
16 | 16 |
|
17 | 17 | // CHECK: __attribute__((global)) __attribute__((cluster_dims(4))) void test_literal_1d() |
18 | | -__global__ void __cluster_dims__(4) test_literal_1d() {} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 18 | +__global__ void __cluster_dims__(4) test_literal_1d() {} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
19 | 19 |
|
20 | 20 | // CHECK: __attribute__((global)) __attribute__((cluster_dims(constint, constint / 4, 1))) void test_constant() |
21 | | -__global__ void __cluster_dims__(constint, constint / 4, 1) test_constant() {} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 21 | +__global__ void __cluster_dims__(constint, constint / 4, 1) test_constant() {} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
22 | 22 |
|
23 | 23 | // CHECK: template <int x, int y, int z> void test_template() __attribute__((cluster_dims(x, y, z))) |
24 | | -template <int x, int y, int z> void test_template(void) __cluster_dims__(x, y, z){} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 24 | +template <int x, int y, int z> void test_template(void) __cluster_dims__(x, y, z){} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
25 | 25 |
|
26 | 26 | // CHECK: template <int x, int y, int z> void test_template_expr() __attribute__((cluster_dims(x + constint, y, z))) |
27 | | -template <int x, int y, int z> void test_template_expr(void) __cluster_dims__(x + constint, y, z) {} //NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 27 | +template <int x, int y, int z> void test_template_expr(void) __cluster_dims__(x + constint, y, z) {} //NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
28 | 28 |
|
29 | | -//NS-error@+1 {{__cluster_dims__ is not supported for this GPU architecture}} |
| 29 | +//NS-error@+1 {{'cluster_dims' is not supported for this GPU architecture}} |
30 | 30 | __global__ void __cluster_dims__(32, 2, 4) test_too_large_dim_0() {} // common-error {{integer constant expression evaluates to value 32 that cannot be represented in a 4-bit unsigned integer type}} |
31 | 31 |
|
32 | 32 | // cuda-error@+2 {{cluster does not support more than 8 thread blocks; 64 provided}} |
33 | 33 | // amd-error@+1 {{cluster does not support more than 16 thread blocks; 64 provided}} |
34 | | -__global__ void __cluster_dims__(4, 4, 4) test_too_large_dim_1() {} // NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 34 | +__global__ void __cluster_dims__(4, 4, 4) test_too_large_dim_1() {} // NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
35 | 35 |
|
36 | 36 | // cuda-error@+3 {{cluster does not support more than 8 thread blocks; 64 provided}} |
37 | 37 | // amd-error@+2 {{cluster does not support more than 16 thread blocks; 64 provided}} |
38 | 38 | template<unsigned a, unsigned b, unsigned c> |
39 | | -__global__ void __cluster_dims__(a, b, c) test_too_large_dim_template() {} // NS-error {{__cluster_dims__ is not supported for this GPU architecture}} |
| 39 | +__global__ void __cluster_dims__(a, b, c) test_too_large_dim_template() {} // NS-error {{'cluster_dims' is not supported for this GPU architecture}} |
40 | 40 | template __global__ void test_too_large_dim_template<4, 4, 4>(); // common-note {{in instantiation of function template specialization 'test_too_large_dim_template<4U, 4U, 4U>' requested here}} |
41 | 41 |
|
42 | 42 | int none_const_int = 4; |
43 | 43 |
|
44 | | -//NS-error@+1 {{__cluster_dims__ is not supported for this GPU architecture}} |
| 44 | +//NS-error@+1 {{'cluster_dims' is not supported for this GPU architecture}} |
45 | 45 | __global__ void __cluster_dims__(none_const_int, 2, 4) test_non_constant_0() {} // common-error {{'cluster_dims' attribute requires parameter 0 to be an integer constant}} |
46 | 46 |
|
47 | | -//NS-error@+1 {{__cluster_dims__ is not supported for this GPU architecture}} |
| 47 | +//NS-error@+1 {{'cluster_dims' is not supported for this GPU architecture}} |
48 | 48 | __global__ void __cluster_dims__(8, none_const_int / 2, 4) test_non_constant_1() {} // common-error {{'cluster_dims' attribute requires parameter 1 to be an integer constant}} |
49 | 49 |
|
50 | | -//NS-error@+1 {{__cluster_dims__ is not supported for this GPU architecture}} |
| 50 | +//NS-error@+1 {{'cluster_dims' is not supported for this GPU architecture}} |
51 | 51 | __global__ void __cluster_dims__(8, 2, none_const_int / 4) test_non_constant_2() {} // common-error {{'cluster_dims' attribute requires parameter 2 to be an integer constant}} |
52 | 52 |
|
53 | | -//NS-error@+1 {{__no_cluster__ is not supported for this GPU architecture}} |
| 53 | +//NS-error@+1 {{'no_cluster' is not supported for this GPU architecture}} |
54 | 54 | __global__ void __no_cluster__ test_no_cluster() {} |
55 | 55 |
|
56 | | -//NS-error@+2 {{__no_cluster__ is not supported for this GPU architecture}} |
57 | | -//NS-error@+1 {{__cluster_dims__ is not supported for this GPU architecture}} |
| 56 | +//NS-error@+2 {{'no_cluster' is not supported for this GPU architecture}} |
| 57 | +//NS-error@+1 {{'cluster_dims' is not supported for this GPU architecture}} |
58 | 58 | __global__ void __no_cluster__ __cluster_dims__(2,2,2) test_have_both() {} // common-error {{'cluster_dims' and 'no_cluster' attributes are not compatible}} common-note {{conflicting attribute is here}} |
59 | 59 |
|
60 | 60 | template <int... args> |
|
0 commit comments