summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-06-15 16:44:50 +0800
committerYang Rong <rong.r.yang@intel.com>2017-06-16 16:34:32 +0800
commit79b8dd9ac8af9edaf65659d8ee95ba09a34fcd51 (patch)
tree159c4729b9157508e1f56e9fa8aaff395d47a15c /utests/utest_helper.hpp
parent521ac708db7f6b679aa32c7fced3ee953ae61867 (diff)
downloadbeignet-79b8dd9ac8af9edaf65659d8ee95ba09a34fcd51.tar.gz
Utset: Add test case for cl_intel_required_subgroup_size extension
Check the device supported subgroup sizes, and use intel_reqd_sub_group_size to build kernels in these size. Then check if there is spill for each kernel. V2: Fix memory leak Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 5dc381e3..c3040087 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -328,4 +328,7 @@ extern float as_float(uint32_t i);
extern uint32_t as_uint(float f);
/* Check is intel subgroups short enabled. */
extern int cl_check_subgroups_short(void);
+
+/* Check is intel_required_subgroup_size enabled. */
+extern int cl_check_reqd_subgroup(void);
#endif /* __UTEST_HELPER_HPP__ */