wgblas
    Preparing search index...

    Function runFixtures

    • Runs numRuns property-based random tests comparing the GPU routine against a CPU reference. Passes if computeUlp(gpuResult, refResult, args) <= threshold for every run. Emits a diagnostic with the maximum observed value.

      Parameters

      • t: any

        node:test context

      • routineName: any

        used in the diagnostic label

      • device: any

        WebGPU device instance

      • numRuns: any

        number of random inputs to generate (typically 100)

      • threshold: any

        maximum allowed value from computeUlp

      • specsOrArb: any

        param specs from loadParam, or a pre-built fc arbitrary

      • callGpu: any

        async function that calls the GPU routine

      • callRef: any

        function that calls the CPU reference

      • computeUlp: any

        error metric: (gpuResult, refResult, args) => number

      • extras: {} = {}

        optional extra arbitraries for routine-specific params (e.g. srotm's param)

      Returns Promise<void>

      promise that resolves when all runs pass, or rejects on the first failing run