1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Root of the fused-epilogue integration-test binary: every comparison is **bitwise** against a
//! self-computed oracle, plain GEMM then the exact scalar map applied by hand. Covers
//! `gemm_fused` (bias + ReLU/LeakyReLU), `gemm_map` (user closures), `gemm_batched_fused`,
//! `gemm_cplx_fused`, and `gemm_i8_requant`
//!
//! Split by concern: [`common`] is the shared harness; [`float`] and [`special`] cover
//! `gemm_fused` (general driver, then gemv / small-`m,n` / small-`k`); [`requant`] covers the
//! `i8 -> i8`/`u8` requantize path
// The whole suite exercises the epilogue cargo feature's surface, so compile it away entirely
// when that feature is off
// C and the bias vectors are walked at independent strided offsets, so explicit indices read
// clearer here than zipped iterators would
// shared harness: RNG, Flt element trait, reference epilogue map, check_fused oracle
// strided-batched gemm_batched_fused tests
// complex gemm_cplx_fused tests (bias only, no activation: ordering is undefined on complex)
// general-driver gemm_fused tests (f32/f64)
// user-defined per-element gemm_map tests (f32/f64)
// narrow-float (f16/bf16) gemm_fused tests
// prepacked-operand gemm_packed_{a,b}_fused tests
// i8 -> i8/u8 requantize epilogue tests
// gemv / small-m,n / small-k route gemm_fused tests