Commit cc3c259
committed
ggml-cpu: add F16 input to the FWHT
The CPU FWHT accepts F32 input only. This change makes the source type a
template parameter. The CPU path now accepts F16 input and F32 input.
The CPU MUL_MAT reference now converts an F16 src1 to F32. It does this when
the caller sets the Hadamard hint.
No backend has an F16 FWHT kernel yet. The test cases come with the backend
changes that add one.1 parent 434ddbb commit cc3c259
3 files changed
Lines changed: 38 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
| 1332 | + | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
| |||
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1354 | 1364 | | |
1355 | 1365 | | |
1356 | 1366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11987 | 11987 | | |
11988 | 11988 | | |
11989 | 11989 | | |
11990 | | - | |
| 11990 | + | |
| 11991 | + | |
| 11992 | + | |
| 11993 | + | |
| 11994 | + | |
| 11995 | + | |
| 11996 | + | |
| 11997 | + | |
| 11998 | + | |
| 11999 | + | |
11991 | 12000 | | |
11992 | 12001 | | |
11993 | 12002 | | |
11994 | | - | |
| 12003 | + | |
11995 | 12004 | | |
11996 | 12005 | | |
11997 | 12006 | | |
| |||
12018 | 12027 | | |
12019 | 12028 | | |
12020 | 12029 | | |
12021 | | - | |
| 12030 | + | |
12022 | 12031 | | |
12023 | 12032 | | |
12024 | 12033 | | |
12025 | | - | |
| 12034 | + | |
12026 | 12035 | | |
12027 | 12036 | | |
12028 | 12037 | | |
| |||
12069 | 12078 | | |
12070 | 12079 | | |
12071 | 12080 | | |
12072 | | - | |
| 12081 | + | |
| 12082 | + | |
| 12083 | + | |
| 12084 | + | |
| 12085 | + | |
| 12086 | + | |
12073 | 12087 | | |
12074 | 12088 | | |
12075 | 12089 | | |
12076 | 12090 | | |
12077 | | - | |
| 12091 | + | |
12078 | 12092 | | |
12079 | 12093 | | |
12080 | 12094 | | |
| |||
0 commit comments