| 264 | } // namespace |
| 265 | |
| 266 | void tq_rows(TqIsa isa, int ggml_type, const uint8_t* w, size_t row_bytes, int n, const void* const* act, int nt, |
| 267 | float* const* out, int r0, int r1) { |
| 268 | if (!tq_isa_ok(isa)) std::abort(); // a caller bug: asked for an ISA this CPU does not have |
| 269 | const int16_t* tab = tq_state_table_for(ggml_type); |
| 270 | const ActSet& s = unpack_all(act, n, nt); |
| 271 | if (ggml_type >= 147 && ggml_type <= 149) { // Gyro-L pair trellis: the AVX2 pair kernel (scalar is the reference) |
| 272 | const int kb = tq_kbits(ggml_type); |
| 273 | rows_pair_on(isa, kb, w, row_bytes, n, s.ptr, nt, out, r0, r1); |
| 274 | return; |
| 275 | } |
| 276 | rows_on(isa, tq_kbits(ggml_type), tab, w, row_bytes, n, s.ptr, nt, out, r0, r1); |
| 277 | } |
| 278 | |
| 279 | void tq_gu_rows(TqIsa isa, int ggml_type, const uint8_t* blob, size_t gu_row, size_t up_off, int n, |
| 280 | const void* const* act, int nt, float* const* ff, int r0, int r1) { |