You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define cross/dot error in terms of HALF_EPSILON (#893)
The error for geometric cl_khr_fp16 builtins
`cross` & `dot` is currently defined in terms of
`HLF_EPSILON`. However `HLF_EPSILON` isn't defined,
the OpenCL language macro defined by cl_khr_fp16 is
`HALF_EPSILON`.
Copy file name to clipboardExpand all lines: env/numerical_compliance.asciidoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ devices given as ULP values.
285
285
286
286
// 3 operations from the 2 multiplications and 1 subtraction per component
287
287
| *OpExtInst* *cross*
288
-
| absolute error tolerance of 'max * max * (3 * HLF_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
288
+
| absolute error tolerance of 'max * max * (3 * HALF_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
289
289
| absolute error tolerance of 'max * max * (3 * FLT_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
290
290
| absolute error tolerance of 'max * max * (3 * FLT_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
291
291
@@ -305,7 +305,7 @@ devices given as ULP values.
305
305
// n + n-1 Number of operations from n multiples and (n-1) additions
306
306
// 2n - 1
307
307
| *OpExtInst* *dot*
308
-
| absolute error tolerance of 'max * max * (2n - 1) * HLF_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
308
+
| absolute error tolerance of 'max * max * (2n - 1) * HALF_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
309
309
| absolute error tolerance of 'max * max * (2n - 1) * FLT_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
310
310
| absolute error tolerance of 'max * max * (2n - 1) * FLT_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
Copy file name to clipboardExpand all lines: ext/cl_khr_fp16.asciidoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1513,7 +1513,7 @@ is the infinitely precise result.
1513
1513
1514
1514
// 3 operations from the 2 multiplications and 1 subtraction per component
1515
1515
| *cross*
1516
-
| absolute error tolerance of 'max * max * (3 * HLF_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
1516
+
| absolute error tolerance of 'max * max * (3 * HALF_EPSILON)' per vector component, where _max_ is the maximum input operand magnitude
1517
1517
| Implementation-defined
1518
1518
1519
1519
| *degrees*
@@ -1534,7 +1534,7 @@ is the infinitely precise result.
1534
1534
// n + n-1 Number of operations from n multiples and (n-1) additions
1535
1535
// 2n - 1
1536
1536
| *dot*
1537
-
| absolute error tolerance of 'max * max * (2n - 1) * HLF_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
1537
+
| absolute error tolerance of 'max * max * (2n - 1) * HALF_EPSILON', for vector width _n_ and maximum input operand magnitude _max_ across all vector components
0 commit comments