Commit 4df2230
feat(hw-001): Hardware Abstraction Layer — unified ternary backend, 21 tests
hardware_abstraction.zig (744 lines): compile-time backend selection
(CPU_SCALAR/CPU_SIMD/FPGA/GPU), SIMD capability detection
(AVX-512/AVX2/SSE4/NEON via builtin.cpu.arch + featureSetHas),
ScalarBackend (bind/unbind/bundle2/bundle3/cosine/hamming/permute/matvec),
SimdBackend @vector(8,i8) (bind/bundle2/cosine/matvec),
HardwareAbstraction unified dispatch, PerfCounters tracking,
MemoryAnalysis (16x vs f32, 8x vs f16), BackendConfig force/auto,
21 tests, build.zig wired (test-hardware-abstraction step).
Unlocks: CORE-004 (JIT Compilation), HW-003 (FPGA Acceleration)
Tech tree: 50/56 (89%), Hardware branch: 1/3 (33%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent eca0265 commit 4df2230
4 files changed
Lines changed: 877 additions & 7 deletions
File tree
- .ralph
- generated
- specs/tri
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
117 | | - | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
1898 | 1911 | | |
0 commit comments