| 1 |
// RUN: %clang_cc1 -x cl -cl-std=CL %s -verify -triple spir-unknown-unknown |
| 2 |
// RUN: %clang_cc1 -x cl -cl-std=CL1.1 %s -verify -triple spir-unknown-unknown |
| 3 |
// RUN: %clang_cc1 -x cl -cl-std=CL1.2 %s -verify -triple spir-unknown-unknown |
| 4 |
// RUN: %clang_cc1 -x cl -cl-std=CL2.0 %s -verify -triple spir-unknown-unknown |
| 5 |
// RUN: %clang_cc1 -x cl -cl-std=clc++ %s -verify -triple spir-unknown-unknown |
| 6 |
// RUN: %clang_cc1 -x cl -cl-std=CL3.0 %s -verify -triple spir-unknown-unknown |
| 7 |
// RUN: %clang_cc1 -x cl -cl-std=CL %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 8 |
// RUN: %clang_cc1 -x cl -cl-std=CL1.1 %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 9 |
// RUN: %clang_cc1 -x cl -cl-std=CL1.2 %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 10 |
// RUN: %clang_cc1 -x cl -cl-std=CL2.0 %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 11 |
// RUN: %clang_cc1 -x cl -cl-std=clc++ %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 12 |
// RUN: %clang_cc1 -x cl -cl-std=CL3.0 %s -verify -triple spir-unknown-unknown -Wpedantic-core-features -DTEST_CORE_FEATURES |
| 13 |
|
| 14 |
// Extensions in all versions |
| 15 |
#ifndef cl_clang_storage_class_specifiers |
| 16 |
#error "Missing cl_clang_storage_class_specifiers define" |
| 17 |
#endif |
| 18 |
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable |
| 19 |
|
| 20 |
#ifndef __cl_clang_function_pointers |
| 21 |
#error "Missing __cl_clang_function_pointers define" |
| 22 |
#endif |
| 23 |
#pragma OPENCL EXTENSION __cl_clang_function_pointers : enable |
| 24 |
|
| 25 |
#ifndef __cl_clang_variadic_functions |
| 26 |
#error "Missing __cl_clang_variadic_functions define" |
| 27 |
#endif |
| 28 |
#pragma OPENCL EXTENSION __cl_clang_variadic_functions : enable |
| 29 |
|
| 30 |
#ifndef cl_khr_fp16 |
| 31 |
#error "Missing cl_khr_fp16 define" |
| 32 |
#endif |
| 33 |
#pragma OPENCL EXTENSION cl_khr_fp16: enable |
| 34 |
|
| 35 |
#ifndef cl_khr_int64_base_atomics |
| 36 |
#error "Missing cl_khr_int64_base_atomics define" |
| 37 |
#endif |
| 38 |
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics: enable |
| 39 |
|
| 40 |
#ifndef cl_khr_int64_extended_atomics |
| 41 |
#error "Missing cl_khr_int64_extended_atomics define" |
| 42 |
#endif |
| 43 |
#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics: enable |
| 44 |
|
| 45 |
// Core features in CL 1.1 |
| 46 |
|
| 47 |
#ifndef cl_khr_byte_addressable_store |
| 48 |
#error "Missing cl_khr_byte_addressable_store define" |
| 49 |
#endif |
| 50 |
#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable |
| 51 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) && defined TEST_CORE_FEATURES |
| 52 |
// expected-warning@-2{{OpenCL extension 'cl_khr_byte_addressable_store' is core feature or supported optional core feature - ignoring}} |
| 53 |
#endif |
| 54 |
|
| 55 |
#ifndef cl_khr_global_int32_base_atomics |
| 56 |
#error "Missing cl_khr_global_int32_base_atomics define" |
| 57 |
#endif |
| 58 |
#pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable |
| 59 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) && defined TEST_CORE_FEATURES |
| 60 |
// expected-warning@-2{{OpenCL extension 'cl_khr_global_int32_base_atomics' is core feature or supported optional core feature - ignoring}} |
| 61 |
#endif |
| 62 |
|
| 63 |
#ifndef cl_khr_global_int32_extended_atomics |
| 64 |
#error "Missing cl_khr_global_int32_extended_atomics define" |
| 65 |
#endif |
| 66 |
#pragma OPENCL EXTENSION cl_khr_global_int32_extended_atomics : enable |
| 67 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) && defined TEST_CORE_FEATURES |
| 68 |
// expected-warning@-2{{OpenCL extension 'cl_khr_global_int32_extended_atomics' is core feature or supported optional core feature - ignoring}} |
| 69 |
#endif |
| 70 |
|
| 71 |
#ifndef cl_khr_local_int32_base_atomics |
| 72 |
#error "Missing cl_khr_local_int32_base_atomics define" |
| 73 |
#endif |
| 74 |
#pragma OPENCL EXTENSION cl_khr_local_int32_base_atomics : enable |
| 75 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) && defined TEST_CORE_FEATURES |
| 76 |
// expected-warning@-2{{OpenCL extension 'cl_khr_local_int32_base_atomics' is core feature or supported optional core feature - ignoring}} |
| 77 |
#endif |
| 78 |
|
| 79 |
#ifndef cl_khr_local_int32_extended_atomics |
| 80 |
#error "Missing cl_khr_local_int32_extended_atomics define" |
| 81 |
#endif |
| 82 |
#pragma OPENCL EXTENSION cl_khr_local_int32_extended_atomics : enable |
| 83 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) && defined TEST_CORE_FEATURES |
| 84 |
// expected-warning@-2{{OpenCL extension 'cl_khr_local_int32_extended_atomics' is core feature or supported optional core feature - ignoring}} |
| 85 |
#endif |
| 86 |
|
| 87 |
// Core feature in CL 1.2 |
| 88 |
#ifndef cl_khr_fp64 |
| 89 |
#error "Missing cl_khr_fp64 define" |
| 90 |
#endif |
| 91 |
#pragma OPENCL EXTENSION cl_khr_fp64 : enable |
| 92 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) && defined TEST_CORE_FEATURES |
| 93 |
// expected-warning@-2{{OpenCL extension 'cl_khr_fp64' is core feature or supported optional core feature - ignoring}} |
| 94 |
#endif |
| 95 |
|
| 96 |
//Core feature in CL 2.0, optional core feature in CL 3.0 |
| 97 |
#ifndef cl_khr_3d_image_writes |
| 98 |
#error "Missing cl_khr_3d_image_writes define" |
| 99 |
#endif |
| 100 |
#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable |
| 101 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ == 200 || __OPENCL_C_VERSION__ == 300) && defined TEST_CORE_FEATURES |
| 102 |
// expected-warning@-2{{OpenCL extension 'cl_khr_3d_image_writes' is core feature or supported optional core feature - ignoring}} |
| 103 |
#endif |
| 104 |
|
| 105 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 110) |
| 106 |
#ifndef cles_khr_int64 |
| 107 |
#error "Missing cles_khr_int64 define" |
| 108 |
#endif |
| 109 |
#else |
| 110 |
// expected-warning@+2{{unsupported OpenCL extension 'cles_khr_int64' - ignoring}} |
| 111 |
#endif |
| 112 |
#pragma OPENCL EXTENSION cles_khr_int64 : enable |
| 113 |
|
| 114 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 100) |
| 115 |
#ifndef cl_khr_gl_msaa_sharing |
| 116 |
#error "Missing cl_khr_gl_msaa_sharing define" |
| 117 |
#endif |
| 118 |
#else |
| 119 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_gl_msaa_sharing' - ignoring}} |
| 120 |
#endif |
| 121 |
#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable |
| 122 |
|
| 123 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 124 |
#ifndef cl_khr_mipmap_image |
| 125 |
#error "Missing cl_khr_mipmap_image define" |
| 126 |
#endif |
| 127 |
#else |
| 128 |
#ifdef cl_khr_mipmap_image |
| 129 |
#error "Incorrect cl_khr_mipmap_image define" |
| 130 |
#endif |
| 131 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_mipmap_image' - ignoring}} |
| 132 |
#endif |
| 133 |
#pragma OPENCL EXTENSION cl_khr_mipmap_image : enable |
| 134 |
|
| 135 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 136 |
#ifndef cl_khr_mipmap_image_writes |
| 137 |
#error "Missing cl_khr_mipmap_image_writes define" |
| 138 |
#endif |
| 139 |
#else |
| 140 |
#ifdef cl_khr_mipmap_image_writes |
| 141 |
#error "Incorrect cl_khr_mipmap_image_writes define" |
| 142 |
#endif |
| 143 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_mipmap_image_writes' - ignoring}} |
| 144 |
#endif |
| 145 |
#pragma OPENCL EXTENSION cl_khr_mipmap_image_writes : enable |
| 146 |
|
| 147 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 148 |
#ifndef cl_khr_srgb_image_writes |
| 149 |
#error "Missing cl_khr_srgb_image_writes define" |
| 150 |
#endif |
| 151 |
#else |
| 152 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_srgb_image_writes' - ignoring}} |
| 153 |
#endif |
| 154 |
#pragma OPENCL EXTENSION cl_khr_srgb_image_writes : enable |
| 155 |
|
| 156 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 157 |
#ifndef cl_khr_subgroups |
| 158 |
#error "Missing cl_khr_subgroups define" |
| 159 |
#endif |
| 160 |
#else |
| 161 |
#ifdef cl_khr_subgroups |
| 162 |
#error "Incorrect cl_khr_subgroups define" |
| 163 |
#endif |
| 164 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_subgroups' - ignoring}} |
| 165 |
#endif |
| 166 |
#pragma OPENCL EXTENSION cl_khr_subgroups : enable |
| 167 |
|
| 168 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 169 |
#ifndef cl_ext_float_atomics |
| 170 |
#error "Missing cl_ext_float_atomics define" |
| 171 |
#endif |
| 172 |
#else |
| 173 |
#ifdef cl_ext_float_atomics |
| 174 |
#error "Incorrect cl_ext_float_atomics define" |
| 175 |
#endif |
| 176 |
#endif |
| 177 |
// expected-warning@+1{{OpenCL extension 'cl_ext_float_atomics' unknown or does not require pragma - ignoring}} |
| 178 |
#pragma OPENCL EXTENSION cl_ext_float_atomics : enable |
| 179 |
|
| 180 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 181 |
#ifndef cl_khr_extended_bit_ops |
| 182 |
#error "Missing cl_khr_extended_bit_ops define" |
| 183 |
#endif |
| 184 |
#else |
| 185 |
#ifdef cl_khr_extended_bit_ops |
| 186 |
#error "Incorrect cl_khr_extended_bit_ops define" |
| 187 |
#endif |
| 188 |
#endif |
| 189 |
// expected-warning@+1{{OpenCL extension 'cl_khr_extended_bit_ops' unknown or does not require pragma - ignoring}} |
| 190 |
#pragma OPENCL EXTENSION cl_khr_extended_bit_ops : enable |
| 191 |
|
| 192 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 193 |
#ifndef cl_khr_integer_dot_product |
| 194 |
#error "Missing cl_khr_integer_dot_product define" |
| 195 |
#endif |
| 196 |
#else |
| 197 |
#ifdef cl_khr_integer_dot_product |
| 198 |
#error "Incorrect cl_khr_integer_dot_product define" |
| 199 |
#endif |
| 200 |
#endif |
| 201 |
// expected-warning@+1{{OpenCL extension 'cl_khr_integer_dot_product' unknown or does not require pragma - ignoring}} |
| 202 |
#pragma OPENCL EXTENSION cl_khr_integer_dot_product : enable |
| 203 |
|
| 204 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 205 |
#ifndef cl_khr_kernel_clock |
| 206 |
#error "Missing cl_khr_kernel_clock define" |
| 207 |
#endif |
| 208 |
#else |
| 209 |
#ifdef cl_khr_kernel_clock |
| 210 |
#error "Incorrect cl_khr_kernel_clock define" |
| 211 |
#endif |
| 212 |
#endif |
| 213 |
// expected-warning@+1{{OpenCL extension 'cl_khr_kernel_clock' unknown or does not require pragma - ignoring}} |
| 214 |
#pragma OPENCL EXTENSION cl_khr_kernel_clock : enable |
| 215 |
|
| 216 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 217 |
#ifndef cl_khr_subgroup_ballot |
| 218 |
#error "Missing cl_khr_subgroup_ballot define" |
| 219 |
#endif |
| 220 |
#else |
| 221 |
#ifdef cl_khr_subgroup_ballot |
| 222 |
#error "Incorrect cl_khr_subgroup_ballot define" |
| 223 |
#endif |
| 224 |
#endif |
| 225 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_ballot' unknown or does not require pragma - ignoring}} |
| 226 |
#pragma OPENCL EXTENSION cl_khr_subgroup_ballot : enable |
| 227 |
|
| 228 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 229 |
#ifndef cl_khr_subgroup_clustered_reduce |
| 230 |
#error "Missing cl_khr_subgroup_clustered_reduce define" |
| 231 |
#endif |
| 232 |
#else |
| 233 |
#ifdef cl_khr_subgroup_clustered_reduce |
| 234 |
#error "Incorrect cl_khr_subgroup_clustered_reduce define" |
| 235 |
#endif |
| 236 |
#endif |
| 237 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_clustered_reduce' unknown or does not require pragma - ignoring}} |
| 238 |
#pragma OPENCL EXTENSION cl_khr_subgroup_clustered_reduce : enable |
| 239 |
|
| 240 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 241 |
#ifndef cl_khr_subgroup_extended_types |
| 242 |
#error "Missing cl_khr_subgroup_extended_types define" |
| 243 |
#endif |
| 244 |
#else |
| 245 |
#ifdef cl_khr_subgroup_extended_types |
| 246 |
#error "Incorrect cl_khr_subgroup_extended_types define" |
| 247 |
#endif |
| 248 |
#endif |
| 249 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_extended_types' unknown or does not require pragma - ignoring}} |
| 250 |
#pragma OPENCL EXTENSION cl_khr_subgroup_extended_types : enable |
| 251 |
|
| 252 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 253 |
#ifndef cl_khr_subgroup_named_barrier |
| 254 |
#error "Missing cl_khr_subgroup_named_barrier define" |
| 255 |
#endif |
| 256 |
#else |
| 257 |
#ifdef cl_khr_subgroup_named_barrier |
| 258 |
#error "Incorrect cl_khr_subgroup_named_barrier define" |
| 259 |
#endif |
| 260 |
#endif |
| 261 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_named_barrier' unknown or does not require pragma - ignoring}} |
| 262 |
#pragma OPENCL EXTENSION cl_khr_subgroup_named_barrier : enable |
| 263 |
|
| 264 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 265 |
#ifndef cl_khr_subgroup_non_uniform_arithmetic |
| 266 |
#error "Missing cl_khr_subgroup_non_uniform_arithmetic define" |
| 267 |
#endif |
| 268 |
#else |
| 269 |
#ifdef cl_khr_subgroup_non_uniform_arithmetic |
| 270 |
#error "Incorrect cl_khr_subgroup_non_uniform_arithmetic define" |
| 271 |
#endif |
| 272 |
#endif |
| 273 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_non_uniform_arithmetic' unknown or does not require pragma - ignoring}} |
| 274 |
#pragma OPENCL EXTENSION cl_khr_subgroup_non_uniform_arithmetic : enable |
| 275 |
|
| 276 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 277 |
#ifndef cl_khr_subgroup_non_uniform_vote |
| 278 |
#error "Missing cl_khr_subgroup_non_uniform_vote define" |
| 279 |
#endif |
| 280 |
#else |
| 281 |
#ifdef cl_khr_subgroup_non_uniform_vote |
| 282 |
#error "Incorrect cl_khr_subgroup_non_uniform_vote define" |
| 283 |
#endif |
| 284 |
#endif |
| 285 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_non_uniform_vote' unknown or does not require pragma - ignoring}} |
| 286 |
#pragma OPENCL EXTENSION cl_khr_subgroup_non_uniform_vote : enable |
| 287 |
|
| 288 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 289 |
#ifndef cl_khr_subgroup_rotate |
| 290 |
#error "Missing cl_khr_subgroup_rotate define" |
| 291 |
#endif |
| 292 |
#else |
| 293 |
#ifdef cl_khr_subgroup_rotate |
| 294 |
#error "Incorrect cl_khr_subgroup_rotate define" |
| 295 |
#endif |
| 296 |
#endif |
| 297 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_rotate' unknown or does not require pragma - ignoring}} |
| 298 |
#pragma OPENCL EXTENSION cl_khr_subgroup_rotate : enable |
| 299 |
|
| 300 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 301 |
#ifndef cl_khr_subgroup_shuffle_relative |
| 302 |
#error "Missing cl_khr_subgroup_shuffle_relative define" |
| 303 |
#endif |
| 304 |
#else |
| 305 |
#ifdef cl_khr_subgroup_shuffle_relative |
| 306 |
#error "Incorrect cl_khr_subgroup_shuffle_relative define" |
| 307 |
#endif |
| 308 |
#endif |
| 309 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_shuffle_relative' unknown or does not require pragma - ignoring}} |
| 310 |
#pragma OPENCL EXTENSION cl_khr_subgroup_shuffle_relative : enable |
| 311 |
|
| 312 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 313 |
#ifndef cl_khr_subgroup_shuffle |
| 314 |
#error "Missing cl_khr_subgroup_shuffle define" |
| 315 |
#endif |
| 316 |
#else |
| 317 |
#ifdef cl_khr_subgroup_shuffle |
| 318 |
#error "Incorrect cl_khr_subgroup_shuffle define" |
| 319 |
#endif |
| 320 |
#endif |
| 321 |
// expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_shuffle' unknown or does not require pragma - ignoring}} |
| 322 |
#pragma OPENCL EXTENSION cl_khr_subgroup_shuffle : enable |
| 323 |
|
| 324 |
#ifndef cl_amd_media_ops |
| 325 |
#error "Missing cl_amd_media_ops define" |
| 326 |
#endif |
| 327 |
#pragma OPENCL EXTENSION cl_amd_media_ops: enable |
| 328 |
|
| 329 |
#ifndef cl_amd_media_ops2 |
| 330 |
#error "Missing cl_amd_media_ops2 define" |
| 331 |
#endif |
| 332 |
#pragma OPENCL EXTENSION cl_amd_media_ops2 : enable |
| 333 |
|
| 334 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 335 |
#ifndef cl_khr_depth_images |
| 336 |
#error "Missing cl_khr_depth_images define" |
| 337 |
#endif |
| 338 |
#else |
| 339 |
#ifdef cl_khr_depth_images |
| 340 |
#error "Incorrect cl_khr_depth_images define" |
| 341 |
#endif |
| 342 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_khr_depth_images' - ignoring}} |
| 343 |
#endif |
| 344 |
#pragma OPENCL EXTENSION cl_khr_depth_images : enable |
| 345 |
|
| 346 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 100) |
| 347 |
#ifndef cl_intel_bfloat16_conversions |
| 348 |
#error "Missing cl_intel_bfloat16_conversions define" |
| 349 |
#endif |
| 350 |
#else |
| 351 |
#ifdef cl_intel_bfloat16_conversions |
| 352 |
#error "Incorrect cl_intel_bfloat16_conversions define" |
| 353 |
#endif |
| 354 |
#endif |
| 355 |
// expected-warning@+1{{OpenCL extension 'cl_intel_bfloat16_conversions' unknown or does not require pragma - ignoring}} |
| 356 |
#pragma OPENCL EXTENSION cl_intel_bfloat16_conversions : enable |
| 357 |
|
| 358 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
| 359 |
#ifndef cl_intel_required_subgroup_size |
| 360 |
#error "Missing cl_intel_required_subgroup_size define" |
| 361 |
#endif |
| 362 |
#else |
| 363 |
#ifdef cl_intel_required_subgroup_size |
| 364 |
#error "Incorrect cl_intel_required_subgroup_size define" |
| 365 |
#endif |
| 366 |
#endif |
| 367 |
// expected-warning@+1{{OpenCL extension 'cl_intel_required_subgroup_size' unknown or does not require pragma - ignoring}} |
| 368 |
#pragma OPENCL EXTENSION cl_intel_required_subgroup_size : enable |
| 369 |
|
| 370 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 371 |
#ifndef cl_intel_subgroups |
| 372 |
#error "Missing cl_intel_subgroups define" |
| 373 |
#endif |
| 374 |
#else |
| 375 |
#ifdef cl_intel_subgroups |
| 376 |
#error "Incorrect cl_intel_subgroups define" |
| 377 |
#endif |
| 378 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups' - ignoring}} |
| 379 |
#endif |
| 380 |
#pragma OPENCL EXTENSION cl_intel_subgroups : enable |
| 381 |
|
| 382 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 383 |
#ifndef cl_intel_subgroups_char |
| 384 |
#error "Missing cl_intel_subgroups_char define" |
| 385 |
#endif |
| 386 |
#else |
| 387 |
#ifdef cl_intel_subgroups_char |
| 388 |
#error "Incorrect cl_intel_subgroups_char define" |
| 389 |
#endif |
| 390 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_char' - ignoring}} |
| 391 |
#endif |
| 392 |
#pragma OPENCL EXTENSION cl_intel_subgroups_char : enable |
| 393 |
|
| 394 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 395 |
#ifndef cl_intel_subgroups_long |
| 396 |
#error "Missing cl_intel_subgroups_long define" |
| 397 |
#endif |
| 398 |
#else |
| 399 |
#ifdef cl_intel_subgroups_long |
| 400 |
#error "Incorrect cl_intel_subgroups_long define" |
| 401 |
#endif |
| 402 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_long' - ignoring}} |
| 403 |
#endif |
| 404 |
#pragma OPENCL EXTENSION cl_intel_subgroups_long : enable |
| 405 |
|
| 406 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 407 |
#ifndef cl_intel_subgroups_short |
| 408 |
#error "Missing cl_intel_subgroups_short define" |
| 409 |
#endif |
| 410 |
#else |
| 411 |
#ifdef cl_intel_subgroups_short |
| 412 |
#error "Incorrect cl_intel_subgroups_short define" |
| 413 |
#endif |
| 414 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_short' - ignoring}} |
| 415 |
#endif |
| 416 |
#pragma OPENCL EXTENSION cl_intel_subgroups_short : enable |
| 417 |
|
| 418 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 419 |
#ifndef cl_intel_subgroup_buffer_prefetch |
| 420 |
#error "Missing cl_intel_subgroup_buffer_prefetch define" |
| 421 |
#endif |
| 422 |
#else |
| 423 |
#ifdef cl_intel_subgroup_buffer_prefetch |
| 424 |
#error "Incorrect cl_intel_subgroup_buffer_prefetch define" |
| 425 |
#endif |
| 426 |
#endif |
| 427 |
// expected-warning@+1{{OpenCL extension 'cl_intel_subgroup_buffer_prefetch' unknown or does not require pragma - ignoring}} |
| 428 |
#pragma OPENCL EXTENSION cl_intel_subgroup_buffer_prefetch : enable |
| 429 |
|
| 430 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 431 |
#ifndef cl_intel_subgroup_local_block_io |
| 432 |
#error "Missing cl_intel_subgroup_local_block_io define" |
| 433 |
#endif |
| 434 |
#else |
| 435 |
#ifdef cl_intel_subgroup_local_block_io |
| 436 |
#error "Incorrect cl_intel_subgroup_local_block_io define" |
| 437 |
#endif |
| 438 |
#endif |
| 439 |
// expected-warning@+1{{OpenCL extension 'cl_intel_subgroup_local_block_io' unknown or does not require pragma - ignoring}} |
| 440 |
#pragma OPENCL EXTENSION cl_intel_subgroup_local_block_io : enable |
| 441 |
|
| 442 |
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
| 443 |
#ifndef cl_intel_device_side_avc_motion_estimation |
| 444 |
#error "Missing cl_intel_device_side_avc_motion_estimation define" |
| 445 |
#endif |
| 446 |
#else |
| 447 |
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_device_side_avc_motion_estimation' - ignoring}} |
| 448 |
#endif |
| 449 |
#pragma OPENCL EXTENSION cl_intel_device_side_avc_motion_estimation : enable |
| 450 |
|
| 451 |
// Check that pragmas for the OpenCL 3.0 features are rejected. |
| 452 |
|
| 453 |
#pragma OPENCL EXTENSION __opencl_c_int64 : disable |
| 454 |
//expected-warning@-1{{OpenCL extension '__opencl_c_int64' unknown or does not require pragma - ignoring}} |
| 455 |
#pragma OPENCL EXTENSION __opencl_c_3d_image_writes : disable |
| 456 |
//expected-warning@-1{{OpenCL extension '__opencl_c_3d_image_writes' unknown or does not require pragma - ignoring}} |
| 457 |
#pragma OPENCL EXTENSION __opencl_c_atomic_order_acq_rel : disable |
| 458 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_order_acq_rel' unknown or does not require pragma - ignoring}} |
| 459 |
#pragma OPENCL EXTENSION __opencl_c_atomic_order_seq_cst : disable |
| 460 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_order_seq_cst' unknown or does not require pragma - ignoring}} |
| 461 |
#pragma OPENCL EXTENSION __opencl_c_atomic_scope_all_devices : disable |
| 462 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_scope_all_devices' unknown or does not require pragma - ignoring}} |
| 463 |
#pragma OPENCL EXTENSION __opencl_c_atomic_scope_device : disable |
| 464 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_scope_device' unknown or does not require pragma - ignoring}} |
| 465 |
#pragma OPENCL EXTENSION __opencl_c_device_enqueue : disable |
| 466 |
//expected-warning@-1{{OpenCL extension '__opencl_c_device_enqueue' unknown or does not require pragma - ignoring}} |
| 467 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_add : disable |
| 468 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 469 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_load_store : disable |
| 470 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_load_store' unknown or does not require pragma - ignoring}} |
| 471 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_min_max : disable |
| 472 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 473 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_add : disable |
| 474 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 475 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_load_store : disable |
| 476 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_load_store' unknown or does not require pragma - ignoring}} |
| 477 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_min_max : disable |
| 478 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 479 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_global_atomic_add : disable |
| 480 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 481 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_global_atomic_min_max : disable |
| 482 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 483 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_local_atomic_add : disable |
| 484 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 485 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_local_atomic_min_max : disable |
| 486 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 487 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_global_atomic_add : disable |
| 488 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 489 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_global_atomic_min_max : disable |
| 490 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 491 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_local_atomic_add : disable |
| 492 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 493 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_local_atomic_min_max : disable |
| 494 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 495 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_raw10_raw12 : disable |
| 496 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_raw10_raw12' unknown or does not require pragma - ignoring}} |
| 497 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_unorm_int_2_101010 : disable |
| 498 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_unorm_int_2_101010' unknown or does not require pragma - ignoring}} |
| 499 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_unsigned_10x6_12x4_14x2 : disable |
| 500 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_unsigned_10x6_12x4_14x2' unknown or does not require pragma - ignoring}} |
| 501 |
#pragma OPENCL EXTENSION __opencl_c_fp64 : disable |
| 502 |
//expected-warning@-1{{OpenCL extension '__opencl_c_fp64' unknown or does not require pragma - ignoring}} |
| 503 |
#pragma OPENCL EXTENSION __opencl_c_generic_address_space : disable |
| 504 |
//expected-warning@-1{{OpenCL extension '__opencl_c_generic_address_space' unknown or does not require pragma - ignoring}} |
| 505 |
#pragma OPENCL EXTENSION __opencl_c_images : disable |
| 506 |
//expected-warning@-1{{OpenCL extension '__opencl_c_images' unknown or does not require pragma - ignoring}} |
| 507 |
#pragma OPENCL EXTENSION __opencl_c_integer_dot_product_input_4x8bit : disable |
| 508 |
//expected-warning@-1{{OpenCL extension '__opencl_c_integer_dot_product_input_4x8bit' unknown or does not require pragma - ignoring}} |
| 509 |
#pragma OPENCL EXTENSION __opencl_c_integer_dot_product_input_4x8bit_packed : disable |
| 510 |
//expected-warning@-1{{OpenCL extension '__opencl_c_integer_dot_product_input_4x8bit_packed' unknown or does not require pragma - ignoring}} |
| 511 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_device : disable |
| 512 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_device' unknown or does not require pragma - ignoring}} |
| 513 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_sub_group : disable |
| 514 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_sub_group' unknown or does not require pragma - ignoring}} |
| 515 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_work_group : disable |
| 516 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_work_group' unknown or does not require pragma - ignoring}} |
| 517 |
#pragma OPENCL EXTENSION __opencl_c_pipes : disable |
| 518 |
//expected-warning@-1{{OpenCL extension '__opencl_c_pipes' unknown or does not require pragma - ignoring}} |
| 519 |
#pragma OPENCL EXTENSION __opencl_c_program_scope_global_variables : disable |
| 520 |
//expected-warning@-1{{OpenCL extension '__opencl_c_program_scope_global_variables' unknown or does not require pragma - ignoring}} |
| 521 |
#pragma OPENCL EXTENSION __opencl_c_read_write_images : disable |
| 522 |
//expected-warning@-1{{OpenCL extension '__opencl_c_read_write_images' unknown or does not require pragma - ignoring}} |
| 523 |
#pragma OPENCL EXTENSION __opencl_c_subgroups : disable |
| 524 |
//expected-warning@-1{{OpenCL extension '__opencl_c_subgroups' unknown or does not require pragma - ignoring}} |
| 525 |
#pragma OPENCL EXTENSION __opencl_c_work_group_collective_functions : disable |
| 526 |
//expected-warning@-1{{OpenCL extension '__opencl_c_work_group_collective_functions' unknown or does not require pragma - ignoring}} |
| 527 |
|
| 528 |
#pragma OPENCL EXTENSION __opencl_c_int64 : enable |
| 529 |
//expected-warning@-1{{OpenCL extension '__opencl_c_int64' unknown or does not require pragma - ignoring}} |
| 530 |
#pragma OPENCL EXTENSION __opencl_c_3d_image_writes : enable |
| 531 |
//expected-warning@-1{{OpenCL extension '__opencl_c_3d_image_writes' unknown or does not require pragma - ignoring}} |
| 532 |
#pragma OPENCL EXTENSION __opencl_c_atomic_order_acq_rel : enable |
| 533 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_order_acq_rel' unknown or does not require pragma - ignoring}} |
| 534 |
#pragma OPENCL EXTENSION __opencl_c_atomic_order_seq_cst : enable |
| 535 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_order_seq_cst' unknown or does not require pragma - ignoring}} |
| 536 |
#pragma OPENCL EXTENSION __opencl_c_atomic_scope_all_devices : enable |
| 537 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_scope_all_devices' unknown or does not require pragma - ignoring}} |
| 538 |
#pragma OPENCL EXTENSION __opencl_c_atomic_scope_device : enable |
| 539 |
//expected-warning@-1{{OpenCL extension '__opencl_c_atomic_scope_device' unknown or does not require pragma - ignoring}} |
| 540 |
#pragma OPENCL EXTENSION __opencl_c_device_enqueue : enable |
| 541 |
//expected-warning@-1{{OpenCL extension '__opencl_c_device_enqueue' unknown or does not require pragma - ignoring}} |
| 542 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_add : enable |
| 543 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 544 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_load_store : enable |
| 545 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_load_store' unknown or does not require pragma - ignoring}} |
| 546 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_global_atomic_min_max : enable |
| 547 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 548 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_add : enable |
| 549 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 550 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_load_store : enable |
| 551 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_load_store' unknown or does not require pragma - ignoring}} |
| 552 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp16_local_atomic_min_max : enable |
| 553 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp16_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 554 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_global_atomic_add : enable |
| 555 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 556 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_global_atomic_min_max : enable |
| 557 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 558 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_local_atomic_add : enable |
| 559 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 560 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp32_local_atomic_min_max : enable |
| 561 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp32_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 562 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_global_atomic_add : enable |
| 563 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_global_atomic_add' unknown or does not require pragma - ignoring}} |
| 564 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_global_atomic_min_max : enable |
| 565 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_global_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 566 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_local_atomic_add : enable |
| 567 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_local_atomic_add' unknown or does not require pragma - ignoring}} |
| 568 |
#pragma OPENCL EXTENSION __opencl_c_ext_fp64_local_atomic_min_max : enable |
| 569 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_fp64_local_atomic_min_max' unknown or does not require pragma - ignoring}} |
| 570 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_raw10_raw12 : enable |
| 571 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_raw10_raw12' unknown or does not require pragma - ignoring}} |
| 572 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_unorm_int_2_101010 : enable |
| 573 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_unorm_int_2_101010' unknown or does not require pragma - ignoring}} |
| 574 |
#pragma OPENCL EXTENSION __opencl_c_ext_image_unsigned_10x6_12x4_14x2 : enable |
| 575 |
//expected-warning@-1{{OpenCL extension '__opencl_c_ext_image_unsigned_10x6_12x4_14x2' unknown or does not require pragma - ignoring}} |
| 576 |
#pragma OPENCL EXTENSION __opencl_c_fp64 : enable |
| 577 |
//expected-warning@-1{{OpenCL extension '__opencl_c_fp64' unknown or does not require pragma - ignoring}} |
| 578 |
#pragma OPENCL EXTENSION __opencl_c_generic_address_space : enable |
| 579 |
//expected-warning@-1{{OpenCL extension '__opencl_c_generic_address_space' unknown or does not require pragma - ignoring}} |
| 580 |
#pragma OPENCL EXTENSION __opencl_c_images : enable |
| 581 |
//expected-warning@-1{{OpenCL extension '__opencl_c_images' unknown or does not require pragma - ignoring}} |
| 582 |
#pragma OPENCL EXTENSION __opencl_c_integer_dot_product_input_4x8bit : enable |
| 583 |
//expected-warning@-1{{OpenCL extension '__opencl_c_integer_dot_product_input_4x8bit' unknown or does not require pragma - ignoring}} |
| 584 |
#pragma OPENCL EXTENSION __opencl_c_integer_dot_product_input_4x8bit_packed : enable |
| 585 |
//expected-warning@-1{{OpenCL extension '__opencl_c_integer_dot_product_input_4x8bit_packed' unknown or does not require pragma - ignoring}} |
| 586 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_device : enable |
| 587 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_device' unknown or does not require pragma - ignoring}} |
| 588 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_sub_group : enable |
| 589 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_sub_group' unknown or does not require pragma - ignoring}} |
| 590 |
#pragma OPENCL EXTENSION __opencl_c_kernel_clock_scope_work_group : enable |
| 591 |
//expected-warning@-1{{OpenCL extension '__opencl_c_kernel_clock_scope_work_group' unknown or does not require pragma - ignoring}} |
| 592 |
#pragma OPENCL EXTENSION __opencl_c_pipes : enable |
| 593 |
//expected-warning@-1{{OpenCL extension '__opencl_c_pipes' unknown or does not require pragma - ignoring}} |
| 594 |
#pragma OPENCL EXTENSION __opencl_c_program_scope_global_variables : enable |
| 595 |
//expected-warning@-1{{OpenCL extension '__opencl_c_program_scope_global_variables' unknown or does not require pragma - ignoring}} |
| 596 |
#pragma OPENCL EXTENSION __opencl_c_read_write_images : enable |
| 597 |
//expected-warning@-1{{OpenCL extension '__opencl_c_read_write_images' unknown or does not require pragma - ignoring}} |
| 598 |
#pragma OPENCL EXTENSION __opencl_c_subgroups : enable |
| 599 |
//expected-warning@-1{{OpenCL extension '__opencl_c_subgroups' unknown or does not require pragma - ignoring}} |
| 600 |
#pragma OPENCL EXTENSION __opencl_c_work_group_collective_functions : enable |
| 601 |
//expected-warning@-1{{OpenCL extension '__opencl_c_work_group_collective_functions' unknown or does not require pragma - ignoring}} |