mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Improve error handling in subgroup tests (#1352)
* MPGCOMP-14761 Improve error handling in subgroup tests Signed-off-by: Stuart Brady <stuart.brady@arm.com> * Add missing newline
This commit is contained in:
@@ -92,8 +92,8 @@ template <int Which> struct BAR
|
||||
}
|
||||
}
|
||||
|
||||
static int chk(cl_int *x, cl_int *y, cl_int *mx, cl_int *my, cl_int *m,
|
||||
const WorkGroupParams &test_params)
|
||||
static test_status chk(cl_int *x, cl_int *y, cl_int *mx, cl_int *my,
|
||||
cl_int *m, const WorkGroupParams &test_params)
|
||||
{
|
||||
int ii, i, j, k, n;
|
||||
int nw = test_params.local_workgroup_size;
|
||||
@@ -133,7 +133,7 @@ template <int Which> struct BAR
|
||||
"id %d in sub group %d in group %d expected "
|
||||
"%d got %d\n",
|
||||
i, j, k, tr, rr);
|
||||
return -1;
|
||||
return TEST_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,7 @@ template <int Which> struct BAR
|
||||
m += 2 * nw;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return TEST_PASS;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -187,4 +187,4 @@ int test_barrier_functions_ext(cl_device_id device, cl_context context,
|
||||
}
|
||||
|
||||
return test_barrier_functions(device, context, queue, num_elements, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user