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:
@@ -198,12 +198,9 @@ cl_int create_cl_objects(cl_device_id device_from_harness, const char** ppCodeSt
|
||||
cl_uint num_capable_devices = 0;
|
||||
for(cl_uint i = 0; i < *num_devices; i++)
|
||||
{
|
||||
size_t major = 0;
|
||||
size_t minor = 0;
|
||||
error = get_device_version(devices[i], &major, &minor);
|
||||
test_error(error, "get_device_version failed");
|
||||
Version version = get_device_cl_version(devices[i]);
|
||||
|
||||
if(device_from_harness != devices[i] && major < 2)
|
||||
if(device_from_harness != devices[i] && version < Version(2,0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user