Skip to content

Commit 7cf93b4

Browse files
Update sycl_ext_intel_event_mode.asciidoc
1 parent f96675e commit 7cf93b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/doc/extensions/proposed/sycl_ext_intel_event_mode.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ _{endnote}_]
138138

139139
=== New property usage example
140140

141-
As an example of how to use the new `low_power_event` property, see the
142-
following code:
141+
As an example of how to use the new `event_mode` property using the
142+
`event_modes::low_power` mode, see the following code:
143143

144144
```
145145
#include <sycl/sycl.hpp>
@@ -153,8 +153,8 @@ int main() {
153153
// Submit some work to the queue.
154154
oneapiex::submit(Q, [&](sycl::handler &CGH) {...});
155155

156-
// Submit a command with the low-power event property.
157-
oneapiex::properties Props{intelex::low_power_event};
156+
// Submit a command with the low-power event mode.
157+
oneapiex::properties Props{intelex::event_mode{intelex::event_modes::low_power}};
158158
sycl::event E = oneapiex::submit_with_event(Q, Props, [&](sycl::handler &CGH) {
159159
...
160160
});

0 commit comments

Comments
 (0)