@@ -107,7 +107,7 @@ context queue::get_context() const { return impl->get_context(); }
107107device queue::get_device () const { return impl->get_device (); }
108108
109109ext::oneapi::experimental::queue_state queue::ext_oneapi_get_state () const {
110- return impl->getCommandGraph ()
110+ return impl->hasCommandGraph ()
111111 ? ext::oneapi::experimental::queue_state::recording
112112 : ext::oneapi::experimental::queue_state::executing;
113113}
@@ -299,7 +299,7 @@ getBarrierEventForInorderQueueHelper(const detail::QueueImplPtr QueueImpl) {
299299 // as a graph can record from multiple queues and we cannot guarantee the
300300 // last node added by an in-order queue will be the last node added to the
301301 // graph.
302- assert (!QueueImpl->getCommandGraph () &&
302+ assert (!QueueImpl->hasCommandGraph () &&
303303 " Should not be called in on graph recording." );
304304
305305 sycl::detail::optional<event> LastEvent = QueueImpl->getLastEvent ();
@@ -319,7 +319,7 @@ getBarrierEventForInorderQueueHelper(const detail::QueueImplPtr QueueImpl) {
319319// / \return a SYCL event object, which corresponds to the queue the command
320320// / group is being enqueued on.
321321event 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 &&
323323 !impl->MIsProfilingEnabled ) {
324324 event InOrderLastEvent = getBarrierEventForInorderQueueHelper (impl);
325325 // 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,
345345 begin (WaitList), end (WaitList), [&](const event &Event) -> bool {
346346 auto EventImpl = detail::getSyclObjImpl (Event);
347347 return (EventImpl->isDefaultConstructed () || EventImpl->isNOP ()) &&
348- !EventImpl->getCommandGraph ();
348+ !EventImpl->hasCommandGraph ();
349349 });
350- if (is_in_order () && !impl->getCommandGraph () && !impl->MDiscardEvents &&
350+ if (is_in_order () && !impl->hasCommandGraph () && !impl->MDiscardEvents &&
351351 !impl->MIsProfilingEnabled && AllEventsEmptyOrNop) {
352352 event InOrderLastEvent = getBarrierEventForInorderQueueHelper (impl);
353353 // If the last event was discarded, fall back to enqueuing a barrier.
0 commit comments