File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,11 @@ void event_impl::cleanDepEventsThroughOneLevel() {
444
444
}
445
445
}
446
446
447
+ bool event_impl::isCompleted () {
448
+ return get_info<info::event::command_execution_status>() ==
449
+ info::event_command_status::complete;
450
+ }
451
+
447
452
} // namespace detail
448
453
} // __SYCL_INLINE_VER_NAMESPACE(_V1)
449
454
} // namespace sycl
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class event_impl {
237
237
// / Checks if this event is complete.
238
238
// /
239
239
// / \return true if this event is complete.
240
- bool isComplete () const { return MState == HES_Complete; }
240
+ bool isCompleted ();
241
241
242
242
private:
243
243
// When instrumentation is enabled emits trace event for event wait begin and
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class Command {
149
149
}
150
150
// Shows thst command could be enqueud, but is blocking enqueue of all
151
151
// commands depending on it. Regular usage - host task.
152
- bool isBlocking () const { return isHostTask () && !MEvent->isComplete (); }
152
+ bool isBlocking () const { return isHostTask () && !MEvent->isCompleted (); }
153
153
154
154
void addBlockedUserUnique (const EventImplPtr &NewUser) {
155
155
if (std::find (MBlockedUsers.begin (), MBlockedUsers.end (), NewUser) !=
You can’t perform that action at this time.
0 commit comments