[RFC] Move logic for test registration to the test harness (#2151)

And use in device_timer suite.

Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
Kévin Petit
2024-11-26 17:55:09 +00:00
committed by GitHub
parent df5e87bf97
commit 0a1456d8f9
36 changed files with 307 additions and 352 deletions

View File

@@ -164,9 +164,10 @@ int test_barrier_functions(cl_device_id device, cl_context context,
constexpr size_t local_work_size = 200;
WorkGroupParams test_params(global_work_size, local_work_size);
test_params.use_core_subgroups = useCoreSubgroups;
error = test<cl_int, BAR<0>>::run(device, context, queue, num_elements,
"test_lbar", lbar_source, test_params);
error |= test<cl_int, BAR<1>, global_work_size>::run(
error = subgroup_test<cl_int, BAR<0>>::run(device, context, queue,
num_elements, "test_lbar",
lbar_source, test_params);
error |= subgroup_test<cl_int, BAR<1>, global_work_size>::run(
device, context, queue, num_elements, "test_gbar", gbar_source,
test_params);