@@ -33,7 +33,7 @@ getUrEvents(const std::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
33
33
return RetUrEvents;
34
34
}
35
35
36
- std::vector<std::shared_ptr< detail::node_impl> > getDepGraphNodes (
36
+ std::vector<detail::node_impl* > getDepGraphNodes (
37
37
sycl::handler &Handler, detail::queue_impl *Queue,
38
38
const std::shared_ptr<detail::graph_impl> &Graph,
39
39
const std::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
@@ -42,12 +42,12 @@ std::vector<std::shared_ptr<detail::node_impl>> getDepGraphNodes(
42
42
auto DepNodes = Graph->getNodesForEvents (DepEvents);
43
43
// If this node was added explicitly we may have node deps in the handler as
44
44
// well, so add them to the list
45
- DepNodes. insert (DepNodes. end (), HandlerImpl.MNodeDeps . begin (),
46
- HandlerImpl. MNodeDeps . end ());
45
+ for ( auto &N : HandlerImpl.MNodeDeps )
46
+ DepNodes. push_back (N. get ());
47
47
// If this is being recorded from an in-order queue we need to get the last
48
48
// in-order node if any, since this will later become a dependency of the
49
49
// node being processed here.
50
- if (const auto & LastInOrderNode = Graph->getLastInorderNode (Queue);
50
+ if (detail::node_impl * LastInOrderNode = Graph->getLastInorderNode (Queue);
51
51
LastInOrderNode) {
52
52
DepNodes.push_back (LastInOrderNode);
53
53
}
0 commit comments