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

math_brute_force: only test correctly rounded divide/sqrt for fp32 #1997

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Jul 2, 2024

Skip the correctly rounded divide (divide_cr) and sqrt (sqrt_cr) tests for fp16 and fp64.

The corresponding build option to enable correctly rounded divide and sqrt is named -cl-fp32-correctly-rounded-divide-sqrt and the description refers only to "single precision floating-point", so this option should not apply to fp16 or fp64.

The specification states that fp16 and fp64 divide and sqrt must be correctly rounded for the full profile, without needing any additional build options. This is already tested by the regular divide and sqrt tests. For the embedded profile the ULP requirement is non-zero, but there is no build option to request a correctly rounded implementation anyway.

Fixes #1901 .
Relates to #1996 .

lakshmih
lakshmih previously approved these changes Jul 29, 2024
Skip the correctly rounded divide (divide_cr) and sqrt (sqrt_cr)
tests for fp16 and fp64.

The corresponding build option to enable correctly rounded divide and
sqrt is named `-cl-fp32-correctly-rounded-divide-sqrt` and the
description refers only to "single precision floating-point", so this
option should not apply to fp16 or fp64.

The specification states that fp16 and fp64 divide and sqrt must be
correctly rounded for the full profile, without needing any additional
build options.  This is already tested by the regular divide and sqrt
tests.  For the embedded profile the ULP requirement is non-zero, but
there is no build option to request a correctly rounded implementation
anyway.

Fixes KhronosGroup#1901 .
Relates to KhronosGroup#1996 .

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
@bashbaug
Copy link
Contributor

bashbaug commented Aug 6, 2024

Discussed in the August 6th teleconference. Good to merge offline after @lakshmih 's review.

@bashbaug
Copy link
Contributor

bashbaug commented Aug 6, 2024

Approved in the August 6th teleconference. Merging!

@bashbaug bashbaug merged commit 1a9d418 into KhronosGroup:main Aug 6, 2024
7 checks passed
@svenvh svenvh deleted the math-cr branch August 7, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

determine and fix the conditions when the math brute force "divide_cr" test should be run
3 participants