ttg 1.0.0-alpha
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ttg::device::Device Class Reference

Represents a device in a specific execution space. More...

#include <device.h>

Public Member Functions

 Device ()=default
 
 Device (int id, ttg::ExecutionSpace space)
 
 Device (const Device &)=default
 
Deviceoperator= (const Device &)=default
 
int id () const
 
 operator int () const
 
ttg::ExecutionSpace space () const
 
bool is_device () const
 
bool is_host () const
 
bool is_invalid () const
 
Device cycle () const
 
bool operator== (const Device &other) const
 

Static Public Member Functions

static Device host ()
 

Detailed Description

Represents a device in a specific execution space.

Definition at line 18 of file device.h.

Constructor & Destructor Documentation

◆ Device() [1/3]

ttg::device::Device::Device ( )
default

◆ Device() [2/3]

ttg::device::Device::Device ( int  id,
ttg::ExecutionSpace  space 
)
inline

Definition at line 24 of file device.h.

◆ Device() [3/3]

ttg::device::Device::Device ( const Device )
default

Member Function Documentation

◆ cycle()

Device ttg::device::Device::cycle ( ) const
inline

Definition at line 64 of file device.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ host()

static Device ttg::device::Device::host ( )
inlinestatic

Definition at line 71 of file device.h.

Here is the caller graph for this function:

◆ id()

int ttg::device::Device::id ( ) const
inline

Definition at line 33 of file device.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_device()

bool ttg::device::Device::is_device ( ) const
inline

Definition at line 51 of file device.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_host()

bool ttg::device::Device::is_host ( ) const
inline

Definition at line 55 of file device.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_invalid()

bool ttg::device::Device::is_invalid ( ) const
inline

Definition at line 59 of file device.h.

Here is the caller graph for this function:

◆ operator int()

ttg::device::Device::operator int ( ) const
inline

Definition at line 43 of file device.h.

Here is the call graph for this function:

◆ operator=()

Device & ttg::device::Device::operator= ( const Device )
default

◆ operator==()

bool ttg::device::Device::operator== ( const Device other) const
inline

Definition at line 75 of file device.h.

◆ space()

ttg::ExecutionSpace ttg::device::Device::space ( ) const
inline

Definition at line 47 of file device.h.

Here is the caller graph for this function:

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