Skip to content

Commit 05d00da

Browse files
WIP
1 parent bc04d13 commit 05d00da

File tree

8 files changed

+364
-502
lines changed

8 files changed

+364
-502
lines changed

sycl/source/detail/async_alloc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ getUrEvents(const std::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
3333
return RetUrEvents;
3434
}
3535

36-
std::vector<std::shared_ptr<detail::node_impl>> getDepGraphNodes(
36+
std::vector<detail::node_impl*> getDepGraphNodes(
3737
sycl::handler &Handler, detail::queue_impl *Queue,
3838
const std::shared_ptr<detail::graph_impl> &Graph,
3939
const std::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
@@ -42,12 +42,12 @@ std::vector<std::shared_ptr<detail::node_impl>> getDepGraphNodes(
4242
auto DepNodes = Graph->getNodesForEvents(DepEvents);
4343
// If this node was added explicitly we may have node deps in the handler as
4444
// 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());
4747
// If this is being recorded from an in-order queue we need to get the last
4848
// in-order node if any, since this will later become a dependency of the
4949
// node being processed here.
50-
if (const auto &LastInOrderNode = Graph->getLastInorderNode(Queue);
50+
if (detail::node_impl *LastInOrderNode = Graph->getLastInorderNode(Queue);
5151
LastInOrderNode) {
5252
DepNodes.push_back(LastInOrderNode);
5353
}

0 commit comments

Comments
 (0)