test_subgroups: Update local workgroup size to generate desired input and verify result (#2382)

The `local_workgroup_size` is changed by
`get_max_common_work_group_size`. But the input data still use the
original `local_workgroup_size`, which will cause the check logic to
failed.
This commit is contained in:
Neoming
2025-07-08 07:34:05 +08:00
committed by GitHub
parent da953699e9
commit c4b16940e4

View File

@@ -1609,6 +1609,7 @@ template <typename Ty, typename Fns, size_t TSIZE = 0> struct subgroup_test
// Generate the desired input for the kernel
test_params.subgroup_size = subgroup_size;
test_params.local_workgroup_size = local;
Fns::gen(idata.data(), mapin.data(), sgmap.data(), test_params);
test_status status = TEST_FAIL;