mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Accept OpenCL 3.0 in version parsing code and use where appropriate (#752)
* Accept OpenCL 3.0 in version parsing code and use where appropriate There were a number of tests against 2.2 that are clearer against 3.0. Fixes #751 Signed-off-by: Kévin Petit <kpet@free.fr> * Remove CL_EXPERIMENTAL guards Signed-off-by: Kévin Petit <kpet@free.fr> * formatting * Configure the headers for OpenCL 3.0 * more format fixes
This commit is contained in:
@@ -62,7 +62,8 @@ static test_status InitCL(cl_device_id device) {
|
||||
|
||||
auto version = get_device_cl_version(device);
|
||||
test_status ret = TEST_PASS;
|
||||
if (version > Version(2, 2)) {
|
||||
if (version >= Version(3, 0))
|
||||
{
|
||||
cl_uint max_sub_groups;
|
||||
int error;
|
||||
|
||||
@@ -76,7 +77,9 @@ static test_status InitCL(cl_device_id device) {
|
||||
if (max_sub_groups == 0) {
|
||||
ret = TEST_SKIP;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = checkSubGroupsExtension(device);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user