run.h File Reference
#include "ttg/fwd.h"
#include "ttg/util/bug.h"
#include "ttg/util/env.h"
#include "ttg/world.h"

Namespaces

 ttg
 top-level TTG namespace contains runtime-neutral functionality
 

Functions

template<typename... RestOfArgs>
void ttg::initialize (int argc, char **argv, int num_threads, RestOfArgs &&... args)
 Initializes the TTG runtime with the default backend. More...
 
template<std::size_t i>
void ttg::finalize ()
 Finalizes the TTG runtime. More...
 
void ttg::abort ()
 Aborts the TTG program using the default backend's ttg_abort method. More...
 
World ttg::default_execution_context ()
 Accesses the default backend's default execution context. More...
 
void ttg::execute (World world=default_execution_context())
 Starts the execution in the given execution context. More...
 
void ttg::fence (World world=default_execution_context())
 Returns when all tasks associated with the given execution context have finished on all ranks. More...
 
int ttg::rank (World world=default_execution_context())
 
int ttg::size (World world=default_execution_context())
 
template<typename TT >
void ttg::invoke_once (TT &tt)
 
template<typename TT , typename Key >
void ttg::invoke_once (TT &&tt, Key &&key)