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:
@@ -38,15 +38,20 @@ __kernel void test_%s(const __global Type *in, __global int4 *xy, __global Type
|
||||
// Test for reduce cluster functions
|
||||
template <typename Ty, ArithmeticOp operation> struct RED_CLU
|
||||
{
|
||||
static void log_test(const WorkGroupParams &test_params,
|
||||
const char *extra_text)
|
||||
{
|
||||
log_info(" sub_group_clustered_reduce_%s(%s, %d bytes) ...%s\n",
|
||||
operation_names(operation), TypeManager<Ty>::name(),
|
||||
sizeof(Ty), extra_text);
|
||||
}
|
||||
|
||||
static void gen(Ty *x, Ty *t, cl_int *m, const WorkGroupParams &test_params)
|
||||
{
|
||||
int nw = test_params.local_workgroup_size;
|
||||
int ns = test_params.subgroup_size;
|
||||
int ng = test_params.global_workgroup_size;
|
||||
ng = ng / nw;
|
||||
log_info(" sub_group_clustered_reduce_%s(%s, %d bytes) ...\n",
|
||||
operation_names(operation), TypeManager<Ty>::name(),
|
||||
sizeof(Ty));
|
||||
genrand<Ty, operation>(x, t, m, ns, nw, ng);
|
||||
}
|
||||
|
||||
@@ -124,9 +129,6 @@ template <typename Ty, ArithmeticOp operation> struct RED_CLU
|
||||
y += nw;
|
||||
m += 4 * nw;
|
||||
}
|
||||
log_info(" sub_group_clustered_reduce_%s(%s, %d bytes) ... passed\n",
|
||||
operation_names(operation), TypeManager<Ty>::name(),
|
||||
sizeof(Ty));
|
||||
return TEST_PASS;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user