mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Set minimum expected OpenCL version for the test. (#674)
This commit is contained in:
committed by
GitHub
parent
8a00f4eced
commit
db570f70e5
@@ -105,6 +105,16 @@ test_definition test_list[] = {
|
||||
|
||||
const int test_num = ARRAY_SIZE( test_list );
|
||||
|
||||
test_status InitCL(cl_device_id device) {
|
||||
auto version = get_device_cl_version(device);
|
||||
auto expected_min_version = Version(2, 0);
|
||||
if (version < expected_min_version)
|
||||
{
|
||||
version_expected_info("Test", expected_min_version.to_string().c_str(), version.to_string().c_str());
|
||||
return TEST_SKIP;
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
bool noCert = false;
|
||||
@@ -186,5 +196,5 @@ int main(int argc, const char *argv[])
|
||||
log_info("*** Use of this mode is not sufficient to verify correctness. ***\n");
|
||||
log_info("*** ***\n");
|
||||
}
|
||||
return runTestHarness(argc, argv, test_num, test_list, false, false, 0);
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, false, InitCL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user