ttg::device::detail Namespace Reference

Classes

struct  default_stream
 
struct  default_stream< Stream >
 

Functions

void reset_current ()
 
void set_current (int device, Stream stream)
 

Variables

template<typename Stream >
constexpr const Stream default_stream_v = default_stream<Stream>::value
 
thread_local ttg::device::Device current_device_ts = {}
 
thread_local Stream current_stream_ts = detail::default_stream_v<Stream>
 

Function Documentation

◆ reset_current()

void ttg::device::detail::reset_current ( )
inline

Definition at line 119 of file device.h.

◆ set_current()

void ttg::device::detail::set_current ( int  device,
Stream  stream 
)
inline

Definition at line 124 of file device.h.

Variable Documentation

◆ current_device_ts

thread_local ttg::device::Device ttg::device::detail::current_device_ts = {}
inline

Definition at line 116 of file device.h.

◆ current_stream_ts

thread_local Stream ttg::device::detail::current_stream_ts = detail::default_stream_v<Stream>
inline

Definition at line 117 of file device.h.

◆ default_stream_v

template<typename Stream >
constexpr const Stream ttg::device::detail::default_stream_v = default_stream<Stream>::value
constexpr

Definition at line 76 of file device.h.