fix: uninitialized strides in decode test and wrong stride helper in paged test

- decode test main() missing set_default_strides → illegal memory access
- paged test used set_default_strides on PagedAttentionParams → compile error
This commit is contained in:
2026-07-14 23:58:30 +08:00
parent 57729fd92d
commit 13998da15a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -163,6 +163,7 @@ int main() {
p.batch=B; p.q_head=Hq; p.kv_head=Hk; p.q_len=1; p.kv_len=sl; p.head_dim=D;
p.use_mask=0; p.causal_offset=-1;
p.scale=1.0f/sqrtf((float)D);
set_default_strides(p);
p.q=dQ; p.k=dK; p.v=dV; p.mask=nullptr; p.o=dO;
// Split-K scratch (max 32 splits), sized for the production MMA path.