test_subgroups - Set safe input values for half type and mul, add operations (#1346)

* Set safe input values for half type and mul, add operations

* Set safe values for all data types

* Typo fix

* Set constant seed for shuffle

* Change function name to more specific

* set_value takes an integer value, not a bit pattern
This commit is contained in:
Grzegorz Wawiorko
2022-01-05 17:08:52 +01:00
committed by GitHub
parent c2facedfa0
commit b71c204794
2 changed files with 41 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ template <typename Ty, ArithmeticOp operation> struct RED_CLU
int ns = test_params.subgroup_size;
int ng = test_params.global_workgroup_size;
ng = ng / nw;
genrand<Ty, operation>(x, t, m, ns, nw, ng);
generate_inputs<Ty, operation>(x, t, m, ns, nw, ng);
}
static test_status chk(Ty *x, Ty *y, Ty *mx, Ty *my, cl_int *m,