llama.cpp
94524527 - ggml-et : fix multi-line L2 flush and replace L2-SCP polling with FCC 0 (#33313)

Commit
7 hours ago
ggml-et : fix multi-line L2 flush and replace L2-SCP polling with FCC 0 (#33313) FlushVA encodes numlines - 1 in 4 bits (max 16 lines), so the 32-line Q4_0 panel flush in mul_mat_Q4_0_matrix_engine silently dropped lines 16..31. Add flush_to_l2_multi() in platform.h to chunk flushes by 16. L2-SCP also persists across kernel launches, so ready_ctr/consumed_ctr polling in mul_mat_Q4_0_matrix_engine and mul_mat_f16_matrix_engine raced at entry and could corrupt results or deadlock. Replace the L2-SCP counters with FCC 0 semaphores (et_sem_post/et_sem_wait) plus hart 1 exit credit drain (matching flash_attn_ext_f16_me.c), which avoids FLB 0 aliasing with uberkernel barriers and improves Q4_0 4096x512x14336 throughput from 632.9 to 668.1 GFLOPS (+5.6%). Assisted-by: Antigravity
Author
Parents
Loading