llama.cpp
9fde456d - metal : one thread per row for soft_max and sum_rows on short rows (#33189)

Commit
2 days ago
metal : one thread per row for soft_max and sum_rows on short rows (#33189) A row of at most 8 columns got a whole threadgroup, and sum_rows on rows of 4 ran one thread per threadgroup. Each thread now handles a whole row. On 3.4M rows of 4 on an M5 Max, soft_max goes from 2725 to 198 us, sum_rows from 2355 to 110 us and mean from 2352 to 109 us.
Parents
Loading