@@ -342,40 +342,6 @@ graph_impl::~graph_impl() {
342342 }
343343}
344344
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-
379345void graph_impl::addRoot (const std::shared_ptr<node_impl> &Root) {
380346 MRoots.insert (Root);
381347}
@@ -538,25 +504,6 @@ graph_impl::add(std::function<void(handler &)> CGF,
538504 return NodeImpl;
539505}
540506
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-
560507std::shared_ptr<node_impl>
561508graph_impl::add (node_type NodeType,
562509 std::shared_ptr<sycl::detail::CG> CommandGroup,
0 commit comments