@@ -59,13 +59,9 @@ incompatible ways before it is finalized. *Shipping software products should
5959not rely on APIs defined in this specification.*
6060
6161
62- == Backend support status
63-
64- This extension is currently implemented in {dpcpp} only for all device targets.
65-
6662== Overview
6763
68- On some backends, calling `wait()` on a `event` will synchronize using a
64+ On some backends, calling `wait()` on an `event` will synchronize using a
6965busy-waiting implementation. Though this comes at a low latency for the
7066synchronization of the event, it has the downside of consuming high amounts of
7167CPU time for no meaningful work. This extension introduces a new property for
@@ -82,7 +78,7 @@ cost of latency.
8278
8379This extension provides a feature-test macro as described in the core SYCL
8480specification. An implementation supporting this extension must predefine the
85- macro `SYCL_EXT_ONEAPI_LOW_POWER_EVENT ` to one of the values defined in the table
81+ macro `SYCL_EXT_INTEL_LOW_POWER_EVENT ` to one of the values defined in the table
8682below. Applications can test for the existence of this macro to determine if
8783the implementation supports this feature, or applications can test the macro's
8884value to determine which of the extension's features the implementation
@@ -104,9 +100,9 @@ supports.
104100This extension adds a new property which can be used with the
105101`submit_with_event` free function from
106102link:../experimental/sycl_ext_oneapi_enqueue_functions.asciidoc[sycl_ext_oneapi_enqueue_functions].
107- Passing this property to either of these functions will act as a hint to the
108- `event` created from the corresponding commands to do low-power synchronization.
109- If the backend is able to handle low-power events, calling `event::wait()` or
103+ Passing this property to this function will act as a hint to the `event` created
104+ from the corresponding commands to do low-power synchronization. If the backend
105+ is able to handle low-power events, calling `event::wait()` or
110106`event::wait_and_throw()` will cause the thread to yield and only do occasional
111107wake-ups to check the event progress.
112108
@@ -146,9 +142,10 @@ int main() {
146142 oneapiex::submit(Q, [&](sycl::handler &CGH) {...});
147143
148144 // Submit a command with the low-power event property.
149- sycl::event E = oneapiex::submit_with_event(Q, [&](sycl::handler &CGH) {
145+ oneapiex::properties Props{intelex::low_power_event};
146+ sycl::event E = oneapiex::submit_with_event(Q, Props, [&](sycl::handler &CGH) {
150147 ...
151- }, oneapiex::properties{intelex::low_power_event} );
148+ });
152149
153150 // Waiting for the resulting event will use low-power waiting if possible.
154151 E.wait();
0 commit comments