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

Add "absolute error tolerance" accuracy mode check #892

Conversation

steffenlarsen
Copy link
Contributor

Though the expected precision of math builtins are now defined by the backend specifications, the CTS currently checks the error accuracy based on the tolerances specified by the OpenCL C specification. For mix and smoothstep these tolerances are defined in "absolute error tolerance" rather than in ULP. This commit makes it possible for the tests to switch between ULP and "absolute error tolerance" checks based on the builtins. Likewise, it applies these to mix and smoothstep in accordance with the OpenCL C specification.

Though the expected precision of math builtins are now defined by the
backend specifications, the CTS currently checks the error accuracy
based on the tolerances specified by the OpenCL C specification.
For `mix` and `smoothstep` these tolerances are defined in "absolute
error tolerance" rather than in ULP. This commit makes it possible for
the tests to switch between ULP and "absolute error tolerance" checks
based on the builtins. Likewise, it applies these to `mix` and
`smoothstep` in accordance with the OpenCL C specification.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen requested a review from a team as a code owner May 7, 2024 11:33
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Thanks!

@bader bader merged commit ea39a54 into KhronosGroup:SYCL-2020 May 30, 2024
8 checks passed
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.

None yet

3 participants