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:
John Kesapides
2020-02-23 12:15:00 +00:00
committed by GitHub
parent 40f50d77a3
commit c93dd48456

View File

@@ -18,6 +18,7 @@
#include "harness/conversions.h"
const char *subgroup_dispatch_kernel[] = {
"#pragma OPENCL EXTENSION cl_khr_subgroups : enable\n"
"__kernel void subgroup_dispatch_kernel(__global int *output)\n"
"{\n"
" size_t size = get_num_sub_groups ();\n"