Skip to content

Commit 992ba74

Browse files
author
aidan.belton
committed
Undo update bf16_conversion extension
1 parent e055600 commit 992ba74

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sycl/doc/extensions/experimental/SYCL_EXT_ONEAPI_BF16_CONVERSION.asciidoc renamed to sycl/doc/extensions/experimental/SYCL_EXT_INTEL_BF16_CONVERSION.asciidoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= SYCL_ONEAPI_bfloat16
1+
= SYCL_INTEL_bf16_conversion
22

33
:source-highlighter: coderay
44
:coderay-linenums-mode: table
@@ -73,7 +73,7 @@ command (e.g. from `parallel_for`).
7373
This extension provides a feature-test macro as described in the core SYCL
7474
specification section 6.3.3 "Feature test macros". Therefore, an implementation
7575
supporting this extension must predefine the macro
76-
`SYCL_EXT_ONEAPI_BFLOAT16_CONVERSION` to one of the values defined in the table
76+
`SYCL_EXT_INTEL_BF16_CONVERSION` to one of the values defined in the table
7777
below. Applications can test for the existence of this macro to determine if
7878
the implementation supports this feature, or applications can test the macro’s
7979
value to determine which of the extension’s APIs the implementation supports.
@@ -91,18 +91,18 @@ the implementation supports this feature, or applications can test the macro’s
9191
namespace sycl {
9292
enum class aspect {
9393
...
94-
ext_oneapi_bfloat16
94+
ext_intel_bf16_conversion
9595
}
9696
}
9797
----
9898

99-
If a SYCL device has the `ext_oneapi_bfloat16` aspect, then it natively
99+
If a SYCL device has the `ext_intel_bf16_conversion` aspect, then it natively
100100
supports conversion of values of `float` type to `bfloat16` and back.
101101

102102
If the device doesn't have the aspect, objects of `bfloat16` class must not be
103103
used in the device code.
104104

105-
**NOTE**: The `ext_oneapi_bfloat16` aspect is not yet supported. The
105+
**NOTE**: The `ext_intel_bf16_conversion` aspect is not yet supported. The
106106
`bfloat16` class is currently supported only on Xe HP GPU.
107107

108108
== New `bfloat16` class
@@ -115,7 +115,7 @@ mode.
115115
----
116116
namespace sycl {
117117
namespace ext {
118-
namespace oneapi {
118+
namespace intel {
119119
namespace experimental {
120120
121121
class bfloat16 {
@@ -171,7 +171,7 @@ public:
171171
};
172172
173173
} // namespace experimental
174-
} // namespace oneapi
174+
} // namespace intel
175175
} // namespace ext
176176
} // namespace sycl
177177
----
@@ -277,9 +277,9 @@ OP is `==, !=, <, >, <=, >=`
277277
[source]
278278
----
279279
#include <sycl/sycl.hpp>
280-
#include <sycl/ext/oneapi/experimental/bfloat16.hpp>
280+
#include <sycl/ext/intel/experimental/bfloat16.hpp>
281281
282-
using sycl::ext::oneapi::experimental::bfloat16;
282+
using sycl::ext::intel::experimental::bfloat16;
283283
284284
bfloat16 operator+(const bfloat16 &lhs, const bfloat16 &rhs) {
285285
return static_cast<float>(lhs) + static_cast<float>(rhs);
@@ -304,7 +304,7 @@ int main (int argc, char *argv[]) {
304304
sycl::queue deviceQueue{dev};
305305
sycl::buffer<float, 1> buf {data, sycl::range<1> {3}};
306306
307-
if (dev.has(sycl::aspect::ext_oneapi_bfloat16)) {
307+
if (dev.has(sycl::aspect::ext_intel_bf16_conversion)) {
308308
deviceQueue.submit ([&] (sycl::handler& cgh) {
309309
auto numbers = buf.get_access<sycl::access::mode::read_write> (cgh);
310310
cgh.single_task<class simple_kernel> ([=] () {

0 commit comments

Comments
 (0)