|
249 | 249 | // expected-warning@+1{{OpenCL extension 'cl_khr_subgroup_extended_types' unknown or does not require pragma - ignoring}} |
250 | 250 | #pragma OPENCL EXTENSION cl_khr_subgroup_extended_types : enable |
251 | 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 | + |
252 | 264 | #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200) |
253 | 265 | #ifndef cl_khr_subgroup_non_uniform_arithmetic |
254 | 266 | #error "Missing cl_khr_subgroup_non_uniform_arithmetic define" |
|
332 | 344 | #pragma OPENCL EXTENSION cl_khr_depth_images : enable |
333 | 345 |
|
334 | 346 | #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 100) |
335 | | -#ifndef cl_intel_bfloat16_conversion |
336 | | -#error "Missing cl_intel_bfloat16_conversion define" |
| 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" |
337 | 365 | #endif |
338 | 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 |
339 | 369 |
|
340 | 370 | #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
341 | 371 | #ifndef cl_intel_subgroups |
342 | 372 | #error "Missing cl_intel_subgroups define" |
343 | 373 | #endif |
344 | 374 | #else |
| 375 | +#ifdef cl_intel_subgroups |
| 376 | +#error "Incorrect cl_intel_subgroups define" |
| 377 | +#endif |
345 | 378 | // expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups' - ignoring}} |
346 | 379 | #endif |
347 | 380 | #pragma OPENCL EXTENSION cl_intel_subgroups : enable |
|
351 | 384 | #error "Missing cl_intel_subgroups_char define" |
352 | 385 | #endif |
353 | 386 | #else |
| 387 | +#ifdef cl_intel_subgroups_char |
| 388 | +#error "Incorrect cl_intel_subgroups_char define" |
| 389 | +#endif |
354 | 390 | // expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_char' - ignoring}} |
355 | 391 | #endif |
356 | 392 | #pragma OPENCL EXTENSION cl_intel_subgroups_char : enable |
|
360 | 396 | #error "Missing cl_intel_subgroups_long define" |
361 | 397 | #endif |
362 | 398 | #else |
| 399 | +#ifdef cl_intel_subgroups_long |
| 400 | +#error "Incorrect cl_intel_subgroups_long define" |
| 401 | +#endif |
363 | 402 | // expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_long' - ignoring}} |
364 | 403 | #endif |
365 | 404 | #pragma OPENCL EXTENSION cl_intel_subgroups_long : enable |
|
369 | 408 | #error "Missing cl_intel_subgroups_short define" |
370 | 409 | #endif |
371 | 410 | #else |
| 411 | +#ifdef cl_intel_subgroups_short |
| 412 | +#error "Incorrect cl_intel_subgroups_short define" |
| 413 | +#endif |
372 | 414 | // expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_short' - ignoring}} |
373 | 415 | #endif |
374 | 416 | #pragma OPENCL EXTENSION cl_intel_subgroups_short : enable |
|
377 | 419 | #ifndef cl_intel_subgroup_buffer_prefetch |
378 | 420 | #error "Missing cl_intel_subgroup_buffer_prefetch define" |
379 | 421 | #endif |
| 422 | +#else |
| 423 | +#ifdef cl_intel_subgroup_buffer_prefetch |
| 424 | +#error "Incorrect cl_intel_subgroup_buffer_prefetch define" |
| 425 | +#endif |
380 | 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 |
381 | 429 |
|
382 | 430 | #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
383 | 431 | #ifndef cl_intel_subgroup_local_block_io |
384 | 432 | #error "Missing cl_intel_subgroup_local_block_io define" |
385 | 433 | #endif |
| 434 | +#else |
| 435 | +#ifdef cl_intel_subgroup_local_block_io |
| 436 | +#error "Incorrect cl_intel_subgroup_local_block_io define" |
| 437 | +#endif |
386 | 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 |
387 | 441 |
|
388 | 442 | #if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120) |
389 | 443 | #ifndef cl_intel_device_side_avc_motion_estimation |
|
0 commit comments