mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +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->minor = 2;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user