ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
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"
Include dependency graph for device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

namespace  ttg
 top-level TTG namespace contains runtime-neutral functionality
 
namespace  ttg::device
 
namespace  std
 STL namespace.
 
namespace  ttg::device::detail
 

Functions

int ttg::device::num_devices ()
 
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 ()
 

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>