Skip to content

Add finite math violation safety tests - #4743

Open
alan-baker wants to merge 1 commit into
gpuweb:mainfrom
alan-baker:finite-math-tests
Open

alan-baker wants to merge 1 commit into
gpuweb:mainfrom
alan-baker:finite-math-tests

Conversation

@alan-baker

Copy link
Copy Markdown
Contributor
  • Add tests to cover violations of the finite math assumption at runtime
    • ensures robustness remains
    • covers floating-point expressions and built-in functions
    • covers f16 and f32
    • covers scalar, vector, matrix and mixed operands

Issue: #


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • Tests are properly located.
  • Test descriptions are accurate and complete.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Tests avoid over-parameterization (see case count report).

When landing this PR, be sure to make any necessary issue status updates.

* Add tests to cover violations of the finite math assumption at runtime
  * ensures robustness remains
  * covers floating-point expressions and built-in functions
  * covers f16 and f32
  * covers scalar, vector, matrix and mixed operands
@alan-baker
alan-baker requested review from dneto0 and jrprice December 4, 2026 00:18
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Results for build job (at d1e963a):

+webgpu:shader,execution,finite_math:out_of_bounds_storage_write:* - 394 cases, 1576 subcases (~4/case)
+webgpu:shader,execution,finite_math:out_of_bounds_storage_read:* - 394 cases, 1576 subcases (~4/case)
+webgpu:shader,execution,finite_math:out_of_bounds_workgroup_read:* - 394 cases, 788 subcases (~2/case)
+webgpu:shader,execution,finite_math:out_of_bounds_function_read:* - 394 cases, 788 subcases (~2/case)
-TOTAL: 290323 cases, 2383078 subcases
+TOTAL: 291899 cases, 2387806 subcases

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant