mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Add cl_khr_subgroups pragma enable in the kernel source (#609)
code for test_api sub_group_dispatch. Although subgroups is a core feature there is no separate 2.1 language spec so we use the 2.0 with the pragma. Signed-off-by: John Kesapides <john.kesapides@arm.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include "harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
const char *subgroup_dispatch_kernel[] = {
|
const char *subgroup_dispatch_kernel[] = {
|
||||||
|
"#pragma OPENCL EXTENSION cl_khr_subgroups : enable\n"
|
||||||
"__kernel void subgroup_dispatch_kernel(__global int *output)\n"
|
"__kernel void subgroup_dispatch_kernel(__global int *output)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" size_t size = get_num_sub_groups ();\n"
|
" size_t size = get_num_sub_groups ();\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user