Skip to main content

evaluate_matmul_tc

Function evaluate_matmul_tc 

pub fn evaluate_matmul_tc(
    context: &mut WgpuComputeContext,
) -> Result<ComparisonReport, ForgeError>
Expand description

Differential-oracle evaluation of the cooperative-matrix (tensor-core) 8x8 GEMM tile C = A * B against matmul_cpu. All-f32 — the only coopmat configuration wgpu/naga 29 implements (see crate::numerical::emit::coopmat). One subgroup (32-lane NVIDIA warp) cooperatively computes the tile; the row-major loads/store reproduce the row-major CPU reference, so agreement is to f32 precision (a tiny tolerance covers tensor-core accumulation order).