Replace get_device_version with get_cl_device_version (#733)

They are duplicate functions

Fixes #709

Change-Id: I8f7d6b8254047adb9e09ede4951dedc3ec5c1099
Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
ellnor01
2020-04-15 14:31:22 +01:00
committed by GitHub
parent ce39ffdda7
commit 3b79ecdb87
7 changed files with 11 additions and 46 deletions

View File

@@ -218,10 +218,9 @@ int test_workitems(cl_device_id device, cl_context context, cl_command_queue que
check_sub_groups_limits = false;
if (is_extension_available(device, "cl_khr_subgroups"))
{
size_t major, minor;
error = get_device_version(device, &major, &minor);
Version version = get_device_cl_version(device);
RETURN_ON_ERROR(error)
check_sub_groups_limits = (major > 2 || major == 2 && minor >= 1); // clGetKernelSubGroupInfo is from 2.1
check_sub_groups_limits = (version >= Version(2,1)); // clGetKernelSubGroupInfo is from 2.1
check_sub_groups = true;
}
#endif