ttg::device::Device Class Reference

Documentation

Represents a device in a specific execution space.

Definition at line 23 of file device.h.

Public Member Functions

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

Constructor & Destructor Documentation

◆ Device() [1/2]

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

◆ Device() [2/2]

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

Definition at line 29 of file device.h.

Member Function Documentation

◆ id()

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

Definition at line 34 of file device.h.

◆ is_device()

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

Definition at line 52 of file device.h.

◆ is_host()

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

Definition at line 56 of file device.h.

◆ is_invalid()

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

Definition at line 60 of file device.h.

◆ operator int()

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

Definition at line 44 of file device.h.

◆ space()

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

Definition at line 48 of file device.h.


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