Skip to content

Account for cancellation in dot precision tests - #387

Merged
blegat merged 1 commit into
mainfrom
bl/bool_multiplication_copy
Oct 30, 2026
Merged

blegat merged 1 commit into
mainfrom
bl/bool_multiplication_copy

Conversation

@blegat

@blegat blegat commented Oct 29, 2026

Copy link
Copy Markdown
Member

The BigFloat dot kernel compensates the sum of rounded products. Product rounding errors can be large relative to a nearly cancelling dot product, so the previous relative-error check could fail for valid results. Normalize by the sum of absolute products computed at higher precision, and add a deterministic cancellation regression.

Replayed the exact failing RNG state from PR #386 and twenty additional seeds.

The BigFloat dot kernel compensates the sum of rounded products. Product
rounding errors can be large relative to a nearly cancelling dot product,
so the previous relative-error check could fail for valid results.
Normalize by the sum of absolute products computed at higher precision,
and add a deterministic cancellation regression.

Replayed the exact failing RNG state from PR #386 and twenty additional
seeds. The modified numeric test file also passes on Julia 1.10.
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (e547781) to head (9f0ba4a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #387   +/-   ##
=======================================
  Coverage   92.11%   92.11%           
=======================================
  Files          23       23           
  Lines        2396     2396           
=======================================
  Hits         2207     2207           
  Misses        189      189           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blegat
blegat merged commit 37c0a4d into main Oct 30, 2026
13 checks passed
@blegat
blegat deleted the bl/bool_multiplication_copy branch October 30, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant