ttg::device::Device Class Reference

Documentation

Represents a device in a specific execution space.

Definition at line 14 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 20 of file device.h.

Member Function Documentation

◆ id()

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

Definition at line 25 of file device.h.

◆ is_device()

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

Definition at line 43 of file device.h.

◆ is_host()

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

Definition at line 47 of file device.h.

◆ is_invalid()

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

Definition at line 51 of file device.h.

◆ operator int()

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

Definition at line 35 of file device.h.

◆ space()

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

Definition at line 39 of file device.h.


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