Add 3.0 as valid device version to version parsing logic (#765)

This commit is contained in:
Jack Frankland
2020-05-06 13:09:20 +01:00
committed by GitHub
parent 54c21467ad
commit 8d28a5dc83

View File

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