Skip to content

Commit ed5a30e

Browse files
committed
Mention specializations in extension
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent ca1c081 commit ed5a30e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

sycl/doc/extensions/supported/sycl_ext_oneapi_bfloat16.asciidoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,23 @@ int main(int argc, char *argv[]) {
303303
}
304304
----
305305

306+
=== Standard C++ library specializations
307+
308+
The `bfloat16` class has specializations of the `std::numeric_limits` and
309+
`std::hash` standard C++ library classes. That is, an implementation must obey
310+
the following statements:
311+
312+
1. A specialization of `std::hash` for `sycl::ext::oneapi::bfloat16` must exist
313+
in the SYCL implementation that returns a unique value such that if two
314+
instances of `sycl::ext::oneapi::bfloat16` are equal, in accordance with the
315+
`==` operator, then their resulting hash values are also equal and
316+
subsequently if two hash values are not equal, then their corresponding
317+
instances are also not equal.
318+
2. A specialztion of `std::numeric_limits` for `sycl::ext::oneapi::bfloat16`
319+
defining the arithmetic properties of the `sycl::ext::oneapi::bfloat16` in
320+
accordance with the requirements specified by the standard C++ library
321+
specification.
322+
306323
== Revision History
307324

308325
[cols="5,15,15,70"]

0 commit comments

Comments
 (0)