ggml : refactor llamafile_sgemm PPC code (#14673)

Remove un-necessary templates from class definition and packing functions
Reduce deeply nested conditionals, if-else switching in mnapck function
Replace repetitive code with inline functions in Packing functions

2 ~ 7% improvement in Q8 Model
15 ~ 50% improvement in Q4 Model

Signed-off-by: Shalini Salomi Bodapati <Shalini.Salomi.Bodapati@ibm.com>
This commit is contained in:
shalinib-ibm authored and GitHub committed 2025-07-14 16:16:42 +03:00
1 parent 9c9e4fc635
commit 55c509daf5
1 file changed
+340 -1091
File diff suppressed because it is too large. Load diff