Skip to content

b12913

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 02:56
9452452

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

Website:

Attestations:

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI: