Skip to content

Commit

Permalink
Remove unneeded Graph case in handler::finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmi committed Jun 20, 2023
1 parent 850acc6 commit c5ef4b4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sycl/source/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,20 +389,6 @@ event handler::finalize() {
GraphImpl = QueueGraph;
}

if (GraphImpl) {
auto EventImpl = std::make_shared<detail::event_impl>();

// Extract relevant data from the handler and pass to graph to create a
// new node representing this command group.
std::shared_ptr<ext::oneapi::experimental::detail::node_impl> NodeImpl =
GraphImpl->add(CGData.MEvents);

// Associate an event with this new node and return the event.
GraphImpl->add_event_for_node(EventImpl, NodeImpl);

return detail::createSyclObjFromImpl<event>(EventImpl);
}

detail::EventImplPtr Event = std::make_shared<sycl::detail::event_impl>();
MLastEvent = detail::createSyclObjFromImpl<event>(Event);
return MLastEvent;
Expand Down

0 comments on commit c5ef4b4

Please sign in to comment.