MCPcopy Create free account
hub / github.com/Niko1221/Strata / tq_rows

Function tq_rows

engine/src/kernels/cpu/tq_cpu.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264} // namespace
265
266void 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
279void 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) {

Callers 6

t7Function · 0.85
check_blobFunction · 0.85
native_down_rows_implFunction · 0.85
runMethod · 0.85
check_matrixFunction · 0.85
benchFunction · 0.85

Calls 6

tq_isa_okFunction · 0.85
tq_state_table_forFunction · 0.85
tq_kbitsFunction · 0.85
rows_pair_onFunction · 0.85
rows_onFunction · 0.85
abortFunction · 0.50

Tested by 2

t7Function · 0.68
runMethod · 0.68