device.h File Reference
#include "ttg/config.h"
#include "ttg/execution.h"
#include "ttg/impl_selector.h"
#include "ttg/fwd.h"
#include "ttg/util/meta.h"
Classes | |
class | ttg::device::Device |
Represents a device in a specific execution space. More... | |
struct | ttg::device::detail::default_stream< Stream > |
struct | ttg::device::Stream |
struct | ttg::device::detail::default_stream< Stream > |
Namespaces | |
ttg | |
top-level TTG namespace contains runtime-neutral functionality | |
ttg::device | |
ttg::device::detail | |
Functions | |
std::ostream & | std::operator<< (std::ostream &os, ttg::device::Device device) |
void | ttg::device::detail::reset_current () |
void | ttg::device::detail::set_current (int device, Stream stream) |
Device | ttg::device::current_device () |
Stream | ttg::device::current_stream () |
int | ttg::device::num_devices () |
Variables | |
template<typename Stream > | |
constexpr const Stream | ttg::device::detail::default_stream_v = default_stream<Stream>::value |
constexpr ttg::ExecutionSpace | ttg::device::available_execution_space = ttg::ExecutionSpace::Host |
thread_local ttg::device::Device | ttg::device::detail::current_device_ts = {} |
thread_local Stream | ttg::device::detail::current_stream_ts = detail::default_stream_v<Stream> |
Function Documentation
◆ operator<<()
|
inline |
- Examples
- iterative.cc, and reducing.cc.