mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Refactor logging of subgroup test start/pass messages (#1361)
Note that this also corrects the start messages logged for the sub_group_ballot_bit_count/find_msb/find_lsb tests. Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
@@ -59,6 +59,17 @@ static const char *gbar_source =
|
||||
// barrier test functions
|
||||
template <int Which> struct BAR
|
||||
{
|
||||
static void log_test(const WorkGroupParams &test_params,
|
||||
const char *extra_text)
|
||||
{
|
||||
if (Which == 0)
|
||||
log_info(" sub_group_barrier(CLK_LOCAL_MEM_FENCE)...%s\n",
|
||||
extra_text);
|
||||
else
|
||||
log_info(" sub_group_barrier(CLK_GLOBAL_MEM_FENCE)...%s\n",
|
||||
extra_text);
|
||||
}
|
||||
|
||||
static void gen(cl_int *x, cl_int *t, cl_int *m,
|
||||
const WorkGroupParams &test_params)
|
||||
{
|
||||
@@ -103,11 +114,6 @@ template <int Which> struct BAR
|
||||
ng = ng / nw;
|
||||
cl_int tr, rr;
|
||||
|
||||
if (Which == 0)
|
||||
log_info(" sub_group_barrier(CLK_LOCAL_MEM_FENCE)...\n");
|
||||
else
|
||||
log_info(" sub_group_barrier(CLK_GLOBAL_MEM_FENCE)...\n");
|
||||
|
||||
for (k = 0; k < ng; ++k)
|
||||
{
|
||||
// Map to array indexed to array indexed by local ID and sub group
|
||||
|
||||
Reference in New Issue
Block a user