mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
The same defect as the previous commit in the tests whose row-id table is not the plain identity of the fused tests: llama.cpp's mul_mat_q and its stream-k fixup read the table up to a J-column tile (J <= 128) past the last row, up to roundup(max_rows, J) ids from an expert's first row, and these tests allocated exactly `rows` entries. Each table now takes mmq_ids_table_rows(rows, max_rows) entries (include/strata/prefill/mmq_ids_margin.hpp): - tests/cuda/prefill_mmq_kquant_test.cpp, tests/cuda/prefill_mmq_v31_test.cpp (the grouped product): the table is the destination permutation `dst`; the extra entries are row index 0 (a valid row; the kernel reads them into shared memory and never uses them: only the first col_diff entries of a tile are used) - tests/cuda/prefill_mmq_v31_test.cpp (the timing sweep): the identity over the whole table, as prefill.cpp writes it - tests/cuda/prefill_iq4_w4a8_test.cu: the identity over the whole table - tests/hip/prefill_mmq_parity.cpp: the destination permutation with row index 0 in the extra entries Test code only; no engine code changes.