Commit 70897cc
ggml-cpu : split arch-specific implementations (ggml-org#13892)
* move ggml-cpu-aarch64 to repack
* split quantize_row_q8_0/1
* split helper functions
* split ggml_vec_dot_q4_0_q8_0
* split ggml_vec_dot_q4_1_q8_1
* split ggml_vec_dot_q5_0_q8_0
* split ggml_vec_dot_q5_1_q8_1
* split ggml_vec_dot_q8_0_q8_0
* split ggml_vec_dot_tq1_0_q8_K
* split ggml_vec_dot_tq2_0_q8_K
* split ggml_vec_dot_q2_K_q8_K
* split ggml_vec_dot_q3_K_q8_K
* split ggml_vec_dot_q4_K_q8_K
* split ggml_vec_dot_q5_K_q8_K
* split ggml_vec_dot_q6_K_q8_K
* split ggml_vec_dot_iq2_xxs_q8_K
* split ggml_vec_dot_iq2_xs_q8_K
* split ggml_vec_dot_iq2_s_q8_K
* split ggml_vec_dot_iq3_xxs_q8_K
* split ggml_vec_dot_iq3_s_q8_K
* split ggml_vec_dot_iq1_s_q8_K
* split ggml_vec_dot_iq1_m_q8_K
* split ggml_vec_dot_iq4_nl_q8_0
* split ggml_vec_dot_iq4_xs_q8_K
* fix typos
* fix missing prototypes
* rename ggml-cpu-quants.c
* rename ggml-cpu-traits
* rename arm folder
* move cpu-feats-x86.cpp
* rename ggml-cpu-hbm
* update arm detection macro in quants.c
* move iq quant tables
* split ggml_quantize_mat_q8_0/K
* split ggml_gemv_*
* split ggml_gemm_*
* rename namespace aarch64 to repack
* use weak aliases to replace test macros
* rename GGML_CPU_AARCH64 to GGML_CPU_REPACK
* rename more aarch64 to repack
* clean up rebase leftover
* fix compilation errors
* remove trailing spaces
* try to fix clang compilation errors
* try to fix clang compilation errors again
* try to fix clang compilation errors, 3rd attempt
* try to fix clang compilation errors, 4th attempt
* try to fix clang compilation errors, 5th attempt
* try to fix clang compilation errors, 6th attempt
* try to fix clang compilation errors, 7th attempt
* try to fix clang compilation errors, 8th attempt
* try to fix clang compilation errors, 9th attempt
* more cleanup
* fix compilation errors
* fix apple targets
* fix a typo in arm version of ggml_vec_dot_q4_K_q8_K
Co-authored-by: Georgi Gerganov <[email protected]>
---------
Co-authored-by: Georgi Gerganov <[email protected]>1 parent a603bc6 commit 70897cc
File tree
17 files changed
+1669
-1662
lines changed- ggml/src/ggml-cpu
- amx
- arch
- arm
- loongarch
- powerpc
- riscv
- s390
- wasm
- x86
17 files changed
+1669
-1662
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 1 | | |
16 | 2 | | |
17 | 3 | | |
| |||
157 | 143 | | |
158 | 144 | | |
159 | 145 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 146 | | |
204 | 147 | | |
205 | 148 | | |
| |||
363 | 306 | | |
364 | 307 | | |
365 | 308 | | |
366 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
367 | 321 | | |
368 | 322 | | |
369 | 323 | | |
| |||
388 | 342 | | |
389 | 343 | | |
390 | 344 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 345 | | |
413 | 346 | | |
414 | 347 | | |
| |||
448 | 381 | | |
449 | 382 | | |
450 | 383 | | |
451 | | - | |
452 | 384 | | |
453 | 385 | | |
454 | 386 | | |
| |||
465 | 397 | | |
466 | 398 | | |
467 | 399 | | |
468 | | - | |
469 | 400 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 401 | | |
477 | 402 | | |
478 | 403 | | |
| |||
494 | 419 | | |
495 | 420 | | |
496 | 421 | | |
497 | | - | |
| 422 | + | |
498 | 423 | | |
499 | | - | |
| 424 | + | |
500 | 425 | | |
501 | 426 | | |
502 | 427 | | |
| |||
589 | 514 | | |
590 | 515 | | |
591 | 516 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 517 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
454 | 453 | | |
455 | 454 | | |
456 | 455 | | |
457 | | - | |
| 456 | + | |
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
| |||
1091 | 1090 | | |
1092 | 1091 | | |
1093 | 1092 | | |
1094 | | - | |
| 1093 | + | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | 1096 | | |
| |||
1114 | 1113 | | |
1115 | 1114 | | |
1116 | 1115 | | |
1117 | | - | |
1118 | | - | |
| 1116 | + | |
| 1117 | + | |
1119 | 1118 | | |
1120 | 1119 | | |
1121 | 1120 | | |
| |||
1138 | 1137 | | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | | - | |
| 1140 | + | |
1142 | 1141 | | |
1143 | 1142 | | |
1144 | 1143 | | |
| |||
1438 | 1437 | | |
1439 | 1438 | | |
1440 | 1439 | | |
1441 | | - | |
| 1440 | + | |
1442 | 1441 | | |
1443 | 1442 | | |
1444 | 1443 | | |
| |||
1499 | 1498 | | |
1500 | 1499 | | |
1501 | 1500 | | |
1502 | | - | |
1503 | | - | |
| 1501 | + | |
| 1502 | + | |
1504 | 1503 | | |
1505 | 1504 | | |
1506 | 1505 | | |
| |||
1572 | 1571 | | |
1573 | 1572 | | |
1574 | 1573 | | |
1575 | | - | |
| 1574 | + | |
1576 | 1575 | | |
1577 | 1576 | | |
1578 | 1577 | | |
| |||
0 commit comments