-
Notifications
You must be signed in to change notification settings - Fork 117
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
OpenCL C: Update ULP requirements for half-precision divide #1293
base: main
Are you sure you want to change the base?
Conversation
…rocal Update ULP requirements for these builtins to 1.0 as per discussion on KhronosGroup#1278
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the SPIR-V environment spec also?
OpenCL-Docs/env/numerical_compliance.asciidoc
Lines 196 to 199 in 0f4b9a6
| *OpFDiv* | |
| Correctly rounded | |
| \<= 2.5 ulp | |
| Correctly rounded |
Note, there is no specific SPIR-V instruction for reciprocal, so only divide needs to be updated.
If we decide to restrict this relaxation to just divide, and not to reciprocal also, then we will need to rethink what we document in the SPIR-V environment spec.
@@ -16289,7 +16289,7 @@ is the infinitely precise result. | |||
| *_x_ - _y_* | Correctly rounded | Correctly rounded | |||
| *_x_ * _y_* | Correctly rounded | Correctly rounded | |||
| *1.0 / _x_* | Correctly rounded | \<= 1 ulp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed in the January 14th teleconference, and we decided to relax reciprocal (for now) as well.
| *1.0 / _x_* | Correctly rounded | \<= 1 ulp | |
| *1.0 / _x_* | \<= 1 ulp | \<= 1 ulp |
Update ULP requirements for these builtins to 1.0 as per discussion on #1278