Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wgsl: Add AF remainder (%) execution tests #3075

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

zoddicus
Copy link
Contributor

Issue #1626


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.)

Requirements for reviewer sign-off:

  • Tests are properly located in the test tree.
  • Test descriptions allow a reader to "read only the test plans and evaluate coverage completeness", and accurately reflect the test code.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Helpers and types promote readability and maintainability.

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

@zoddicus zoddicus added the wgsl label Oct 19, 2023
@zoddicus zoddicus self-assigned this Oct 19, 2023
@zoddicus
Copy link
Contributor Author

Depends on division PR, so new code is in the last patch, f9dcf2b

@zoddicus zoddicus force-pushed the addAFRemainderTests branch from f9dcf2b to d4df945 Compare October 19, 2023 18:45
@github-actions
Copy link

Previews, as seen when this build job started (d4df945):
Run tests | View tsdoc

Copy link
Contributor

@jiangzhaoming jiangzhaoming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks

@@ -4400,17 +4405,21 @@ g.test('divisionInterval')
})
)
.fn(t => {
const trait = FP[t.params.trait];
// This is a ULP based interval, so abstract should behave like f32, so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side task: After a quick review it looked like the FP primer didn't discuss this issue (i.e. using f32 error tolerances for AbstractFloat tolerances for operations whose errors are expressed in ULPs, and why). Please update it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue filed, #3079

@zoddicus zoddicus force-pushed the addAFRemainderTests branch from d4df945 to 9c025aa Compare October 23, 2023 17:43
@github-actions
Copy link

Previews, as seen when this build job started (9c025aa):
Run tests | View tsdoc

@zoddicus zoddicus merged commit 2757809 into gpuweb:main Oct 23, 2023
2 checks passed
@zoddicus zoddicus deleted the addAFRemainderTests branch October 23, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants