mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 22:19:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user