mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +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:
@@ -49,11 +49,9 @@ cl_int get_type_size( cl_context context, cl_command_queue queue, const char *ty
|
||||
{
|
||||
sizeof_kernel_code[0] = "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n";
|
||||
}
|
||||
size_t major = 0;
|
||||
size_t minor = 0;
|
||||
bool deviceLt20 = false;
|
||||
int error = get_device_version(device, &major, &minor);
|
||||
if (major < 2) {
|
||||
Version version = get_device_cl_version(device);
|
||||
if (version < Version(2,0)) {
|
||||
deviceLt20 = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user