@@ -107,7 +107,7 @@ context queue::get_context() const { return impl->get_context(); }
107
107
device queue::get_device () const { return impl->get_device (); }
108
108
109
109
ext::oneapi::experimental::queue_state queue::ext_oneapi_get_state () const {
110
- return impl->getCommandGraph ()
110
+ return impl->hasCommandGraph ()
111
111
? ext::oneapi::experimental::queue_state::recording
112
112
: ext::oneapi::experimental::queue_state::executing;
113
113
}
@@ -299,7 +299,7 @@ getBarrierEventForInorderQueueHelper(const detail::QueueImplPtr QueueImpl) {
299
299
// as a graph can record from multiple queues and we cannot guarantee the
300
300
// last node added by an in-order queue will be the last node added to the
301
301
// graph.
302
- assert (!QueueImpl->getCommandGraph () &&
302
+ assert (!QueueImpl->hasCommandGraph () &&
303
303
" Should not be called in on graph recording." );
304
304
305
305
sycl::detail::optional<event> LastEvent = QueueImpl->getLastEvent ();
@@ -319,7 +319,7 @@ getBarrierEventForInorderQueueHelper(const detail::QueueImplPtr QueueImpl) {
319
319
// / \return a SYCL event object, which corresponds to the queue the command
320
320
// / group is being enqueued on.
321
321
event queue::ext_oneapi_submit_barrier (const detail::code_location &CodeLoc) {
322
- if (is_in_order () && !impl->getCommandGraph () && !impl->MDiscardEvents &&
322
+ if (is_in_order () && !impl->hasCommandGraph () && !impl->MDiscardEvents &&
323
323
!impl->MIsProfilingEnabled ) {
324
324
event InOrderLastEvent = getBarrierEventForInorderQueueHelper (impl);
325
325
// If the last event was discarded, fall back to enqueuing a barrier.
@@ -345,9 +345,9 @@ event queue::ext_oneapi_submit_barrier(const std::vector<event> &WaitList,
345
345
begin (WaitList), end (WaitList), [&](const event &Event) -> bool {
346
346
auto EventImpl = detail::getSyclObjImpl (Event);
347
347
return (EventImpl->isDefaultConstructed () || EventImpl->isNOP ()) &&
348
- !EventImpl->getCommandGraph ();
348
+ !EventImpl->hasCommandGraph ();
349
349
});
350
- if (is_in_order () && !impl->getCommandGraph () && !impl->MDiscardEvents &&
350
+ if (is_in_order () && !impl->hasCommandGraph () && !impl->MDiscardEvents &&
351
351
!impl->MIsProfilingEnabled && AllEventsEmptyOrNop) {
352
352
event InOrderLastEvent = getBarrierEventForInorderQueueHelper (impl);
353
353
// If the last event was discarded, fall back to enqueuing a barrier.
0 commit comments