ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
Namespaces | Functions
run.h File Reference
#include "ttg/fwd.h"
#include "ttg/util/bug.h"
#include "ttg/util/env.h"
#include "ttg/world.h"
Include dependency graph for run.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ttg
 top-level TTG namespace contains runtime-neutral functionality
 
namespace  ttg::detail
 

Functions

bool & ttg::detail::initialized_accessor ()
 
bool & ttg::detail::finalized_accessor ()
 
bool ttg::initialized ()
 
bool ttg::finalized ()
 
template<typename... RestOfArgs>
void ttg::initialize (int argc, char **argv, int num_threads, RestOfArgs &&... args)
 Initializes the TTG runtime with the default backend.
 
void ttg::finalize ()
 Finalizes the TTG runtime.
 
void ttg::abort ()
 Aborts the TTG program using the default backend's ttg_abort method.
 
World ttg::default_execution_context ()
 Accesses the default backend's default execution context.
 
void ttg::execute (World world=default_execution_context())
 Starts the execution in the given execution context.
 
void ttg::fence (World world=default_execution_context())
 Returns when all tasks associated with the given execution context have finished on all ranks.
 
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)