matmultest

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package matmultest provides test helpers for verifying matrix multiplication packing and output routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunApplyPackedOutputTests

func RunApplyPackedOutputTests[T gotype.NumericNotComplex](t *testing.T, applyFn ApplyPackedOutputFn[T])

RunApplyPackedOutputTests verifies that applyFn matches the reference matmul.ApplyPackedOutput.

func RunBenchmarkPackLHS

func RunBenchmarkPackLHS[T gotype.ScalarNotComplex](b *testing.B, name string, packFn PackLHSFn[T], totalRows, totalCols, panelRows, panelCols, kernelRows int)

RunBenchmarkPackLHS runs a benchmark for a packLHS function.

func RunPackLHSTests

func RunPackLHSTests[T gotype.NumericNotComplex](t *testing.T, packLHSFn PackLHSFn[T], lhsL1KernelRows int)

RunPackLHSTests verifies that packLHSFn matches the reference matmul.PackLHS implementation.

func RunPackLHSTestsHalfPrecision

func RunPackLHSTestsHalfPrecision[T gotype.HalfPrecision[T], P gotype.HalfPrecisionPtr[T]](
	t *testing.T, packLHSFn PackLHSFn[T], lhsL1KernelRows int)

RunPackLHSTestsHalfPrecision verifies that packLHSFn matches the reference matmul.PackLHS for half-precision types.

func RunPackRHSTests

func RunPackRHSTests[T gotype.NumericNotComplex](t *testing.T, packRHSFn PackRHSFn[T], rhsL1KernelCols int)

RunPackRHSTests verifies that packRHSFn matches the reference matmul.PackRHS implementation.

func RunPackRHSTestsHalfPrecision

func RunPackRHSTestsHalfPrecision[T gotype.HalfPrecision[T], P gotype.HalfPrecisionPtr[T]](t *testing.T, packRHSFn PackRHSFn[T], rhsL1KernelCols int)

RunPackRHSTestsHalfPrecision verifies that packRHSFn matches the reference matmul.PackRHS for half-precision types.

Types

type ApplyPackedOutputFn

type ApplyPackedOutputFn[T gotype.ScalarNotComplex] func(
	packedOutput, output []T,
	isFirstContractingPanel bool,
	packedOutputRowStride int,
	lhsRowOffset, rhsColOffset int,
	outputRowStride int,
	height, width int,
)

ApplyPackedOutputFn is the signature for functions that apply packed output to the final output.

type PackLHSFn

type PackLHSFn[T gotype.ScalarNotComplex] func(src, dst []T, srcRowStart, srcColStart, srcRowStride, lhsRows, contractingCols, lhsL1KernelRows int)

PackLHSFn is the signature for LHS packing functions.

type PackRHSFn

type PackRHSFn[T gotype.ScalarNotComplex] func(src, dst []T, srcRowStart, srcColStart, srcStrideCol, contractingRows, rhsCols, RHSL1KernelCols int)

PackRHSFn is the signature for RHS packing functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL