-
Notifications
You must be signed in to change notification settings - Fork 199
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
determine and fix the conditions when the math brute force "divide_cr" test should be run #1901
Comments
In #1681 (comment) you already mentioned that "the safest thing to do would be to disable the |
Moving to mobica-backlog, as discussed in the March 26th teleconference. At the moment, this should probably be done as a PR to the fp16-staging branch, since it will be part of the fp16 fixes. |
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>
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>
Currently, the math brute force "divide_cr" test checks whether
CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT
is in the query result forCL_DEVICE_SINGLE_FP_CONFIG
. If it is, it runs thedivide_cr
test for 32-bitfloat
types and 64-bitdouble
types.With the latest code in the
fp16-staging
branch, thedivide_cr
test is additionally run for 16-bithalf
types.Is this correct?
Notes:
-cl-fp32-correctly-rounded-divide-sqrt
, and the description refers only to "single precision floating-point" specifically, so it is not clear this option should apply to fp64 or fp16 regardless.The text was updated successfully, but these errors were encountered: