mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Add 3.0 as valid device version to version parsing logic (#765)
This commit is contained in:
@@ -625,8 +625,17 @@ int parseVersion( char const * str, version_t * version )
|
|||||||
version->major = 2;
|
version->major = 2;
|
||||||
version->minor = 2;
|
version->minor = 2;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
} else {
|
}
|
||||||
log_error( "ERROR: Unexpected version string: `%s'.\n", str );
|
else if (strncmp(str, "OpenCL 3.0", 10) == 0
|
||||||
|
&& (str[10] == 0 || str[10] == ' '))
|
||||||
|
{
|
||||||
|
version->major = 3;
|
||||||
|
version->minor = 0;
|
||||||
|
rc = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log_error("ERROR: Unexpected version string: `%s'.\n", str);
|
||||||
};
|
};
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user