Files
Strata/tests/hip
Niko1221 9f0056e412 tests: give the MMQ tests' scatter-permutation and identity row-id tables the margin too
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.
2026-11-11 23:03:23 +01:00
..