Skip to content

Commit 87af057

Browse files
committed
reserve NewNodes, remove commented code
1 parent e3b13d9 commit 87af057

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/source/detail/graph/graph_impl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ void partition::updateSchedule() {
181181
void exec_graph_impl::makePartitions() {
182182
int CurrentPartition = -1;
183183
std::list<node_impl *> HostTaskList;
184-
/* find all the host-tasks in the graph
184+
// find all the host-tasks in the graph
185185
for (node_impl &Node : nodes()) {
186186
if (Node.MCGType == sycl::detail::CGType::CodeplayHostTask) {
187187
HostTaskList.push_back(&Node);
188188
}
189-
}*/
189+
}
190190

191191
MContainsHostTask = HostTaskList.size() > 0;
192192
// Annotate nodes
@@ -1261,6 +1261,7 @@ void exec_graph_impl::duplicateNodes() {
12611261

12621262
const size_t NodeCount = ModifiableNodes.size();
12631263
NodesMap.reserve(NodeCount);
1264+
NewNodes.reserve(NodeCount);
12641265

12651266
bool foundSubgraph = false;
12661267

0 commit comments

Comments
 (0)