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

@@ -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;
}