We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5805ce commit d076f4dCopy full SHA for d076f4d
sycl/test-e2e/EventMode/low_power_event_mode.cpp
@@ -14,10 +14,13 @@ namespace oneapiext = sycl::ext::oneapi::experimental;
14
int main() {
15
sycl::queue Q;
16
17
+ oneapiext::properties Props{
18
+ oneapiext::event_mode{oneapiext::event_mode_enum::low_power}};
19
+
20
sycl::event E = oneapiext::submit_with_event(
- Q, [&](sycl::handler &CGH) { oneapiext::barrier(CGH); });
21
+ Q, Props, [&](sycl::handler &CGH) { oneapiext::barrier(CGH); });
22
- oneapiext::submit_with_event(Q, [&](sycl::handler &CGH) {
23
+ oneapiext::submit_with_event(Q, Props, [&](sycl::handler &CGH) {
24
oneapiext::partial_barrier(CGH, {E});
25
}).wait_and_throw();
26
0 commit comments