DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::detail::partition Class Reference

#include <detail/graph_impl.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::experimental::detail::partition:

Public Member Functions

 partition ()
 Constructor. More...
bool isHostTask () const
void schedule ()
 Add nodes to MSchedule. More...

Public Attributes

std::set< std::weak_ptr< node_impl >, std::owner_less< std::weak_ptr< node_impl > > > MRoots
 List of root nodes. More...
std::list< std::shared_ptr< node_impl > > MSchedule
 Execution schedule of nodes in the graph. More...
std::unordered_map< sycl::device, sycl::detail::pi::PiExtCommandBufferMPiCommandBuffers
 Map of devices to command buffers. More...
std::vector< std::shared_ptr< partition > > MPredecessors
 List of predecessors to this partition. More...

Detailed Description

Definition at line 538 of file graph_impl.hpp.

Constructor & Destructor Documentation

◆ partition()

sycl::_V1::ext::oneapi::experimental::detail::partition::partition ( )


Definition at line 541 of file graph_impl.hpp.

Member Function Documentation

◆ isHostTask()

bool sycl::_V1::ext::oneapi::experimental::detail::partition::isHostTask ( ) const
True if the partition contains a host task

Definition at line 555 of file graph_impl.hpp.

References MRoots.

◆ schedule()

void sycl::_V1::ext::oneapi::experimental::detail::partition::schedule ( )

Add nodes to MSchedule.

Definition at line 179 of file graph_impl.cpp.

References MRoots, and MSchedule.

Member Data Documentation

◆ MPiCommandBuffers

std::unordered_map<sycl::device, sycl::detail::pi::PiExtCommandBuffer> sycl::_V1::ext::oneapi::experimental::detail::partition::MPiCommandBuffers

Map of devices to command buffers.

Definition at line 550 of file graph_impl.hpp.

◆ MPredecessors

std::vector<std::shared_ptr<partition> > sycl::_V1::ext::oneapi::experimental::detail::partition::MPredecessors

List of predecessors to this partition.

Definition at line 552 of file graph_impl.hpp.

◆ MRoots

std::set<std::weak_ptr<node_impl>, std::owner_less<std::weak_ptr<node_impl> > > sycl::_V1::ext::oneapi::experimental::detail::partition::MRoots

List of root nodes.

Definition at line 545 of file graph_impl.hpp.

Referenced by isHostTask(), and schedule().

◆ MSchedule

std::list<std::shared_ptr<node_impl> > sycl::_V1::ext::oneapi::experimental::detail::partition::MSchedule

Execution schedule of nodes in the graph.

Definition at line 547 of file graph_impl.hpp.

Referenced by schedule().

The documentation for this class was generated from the following files: