@@ -342,40 +342,6 @@ graph_impl::~graph_impl() {
342
342
}
343
343
}
344
344
345
- std::shared_ptr<node_impl> graph_impl::addNodesToExits (
346
- const std::list<std::shared_ptr<node_impl>> &NodeList) {
347
- // Find all input and output nodes from the node list
348
- std::vector<std::shared_ptr<node_impl>> Inputs;
349
- std::vector<std::shared_ptr<node_impl>> Outputs;
350
- for (auto &NodeImpl : NodeList) {
351
- if (NodeImpl->MPredecessors .size () == 0 ) {
352
- Inputs.push_back (NodeImpl);
353
- }
354
- if (NodeImpl->MSuccessors .size () == 0 ) {
355
- Outputs.push_back (NodeImpl);
356
- }
357
- }
358
-
359
- // Find all exit nodes in the current graph and register the Inputs as
360
- // successors
361
- for (auto &NodeImpl : MNodeStorage) {
362
- if (NodeImpl->MSuccessors .size () == 0 ) {
363
- for (auto &Input : Inputs) {
364
- NodeImpl->registerSuccessor (Input);
365
- }
366
- }
367
- }
368
-
369
- // Add all the new nodes to the node storage
370
- for (auto &Node : NodeList) {
371
- MNodeStorage.push_back (Node);
372
- addEventForNode (sycl::detail::event_impl::create_completed_host_event (),
373
- Node);
374
- }
375
-
376
- return this ->add (Outputs);
377
- }
378
-
379
345
void graph_impl::addRoot (const std::shared_ptr<node_impl> &Root) {
380
346
MRoots.insert (Root);
381
347
}
@@ -538,25 +504,6 @@ graph_impl::add(std::function<void(handler &)> CGF,
538
504
return NodeImpl;
539
505
}
540
506
541
- std::shared_ptr<node_impl>
542
- graph_impl::add (const std::vector<sycl::detail::EventImplPtr> Events) {
543
-
544
- std::vector<node_impl *> Deps;
545
-
546
- // Add any nodes specified by event dependencies into the dependency list
547
- for (const auto &Dep : Events) {
548
- if (auto NodeImpl = MEventsMap.find (Dep); NodeImpl != MEventsMap.end ()) {
549
- Deps.push_back (NodeImpl->second .get ());
550
- } else {
551
- throw sycl::exception (sycl::make_error_code (errc::invalid),
552
- " Event dependency from handler::depends_on does "
553
- " not correspond to a node within the graph" );
554
- }
555
- }
556
-
557
- return this ->add (Deps);
558
- }
559
-
560
507
std::shared_ptr<node_impl>
561
508
graph_impl::add (node_type NodeType,
562
509
std::shared_ptr<sycl::detail::CG> CommandGroup,
0 commit comments