mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Report unsupported extended subgroup tests as skipped rather than passed (#1301)
* Report unsupported extended subgroup tests as skipped rather than passed Also don't check the presence of extensions for each sub-test. Signed-off-by: Kévin Petit <kpet@free.fr> * address review comments
This commit is contained in:
@@ -33,10 +33,9 @@ extern cl_half_rounding_mode g_rounding_mode;
|
||||
struct WorkGroupParams
|
||||
{
|
||||
WorkGroupParams(size_t gws, size_t lws,
|
||||
const std::vector<std::string> &req_ext = {},
|
||||
const std::vector<uint32_t> &all_wim = {})
|
||||
: global_workgroup_size(gws), local_workgroup_size(lws),
|
||||
required_extensions(req_ext), all_work_item_masks(all_wim)
|
||||
all_work_item_masks(all_wim)
|
||||
{
|
||||
subgroup_size = 0;
|
||||
work_items_mask = 0;
|
||||
@@ -49,7 +48,6 @@ struct WorkGroupParams
|
||||
uint32_t work_items_mask;
|
||||
int dynsc;
|
||||
bool use_core_subgroups;
|
||||
std::vector<std::string> required_extensions;
|
||||
std::vector<uint32_t> all_work_item_masks;
|
||||
};
|
||||
|
||||
@@ -1297,19 +1295,6 @@ template <typename Ty, typename Fns, size_t TSIZE = 0> struct test
|
||||
}
|
||||
}
|
||||
|
||||
for (std::string extension : test_params.required_extensions)
|
||||
{
|
||||
if (!is_extension_available(device, extension.c_str()))
|
||||
{
|
||||
log_info("The extension %s not supported on this device. SKIP "
|
||||
"testing - kernel %s data type %s\n",
|
||||
extension.c_str(), kname, TypeManager<Ty>::name());
|
||||
return TEST_PASS;
|
||||
}
|
||||
kernel_sstr << "#pragma OPENCL EXTENSION " + extension
|
||||
+ ": enable\n";
|
||||
}
|
||||
|
||||
error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(platform),
|
||||
(void *)&platform, NULL);
|
||||
test_error(error, "clGetDeviceInfo failed for CL_DEVICE_PLATFORM");
|
||||
|
||||
Reference in New Issue
Block a user