Peano 4
Loading...
Searching...
No Matches
otter.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "config.h"
6
103namespace otter {
104 namespace label {
105 static const char* root = "[ROOT TASK]";
106 static const char* step = "[STEP TASK]";
107 static const char* enclave = "[anonymous enclave task]";
108 static const char* enclave_with_typeid = "[enclave task (typeid=%d)]";
109 static const char* traverse_fmt = "[traversal task %d of %d]";
110 static const char* unknown = "unknown task";
111 static const char* TaskWithCopyOfFunctor = "TaskWithCopyOfFunctor";
112 static const char* TaskWithoutCopyOfFunctor = "TaskWithoutCopyOfFunctor";
113 } // namespace label
114
115 namespace phase {
116 static const char* init = "init";
117 static const char* plot = "plot";
118 static const char* timestep = "time-step";
119 static const char* create_grid = "create-grid";
120 static const char* create_grid_no_refine = "create-grid-but-postpone-refinement";
121 static const char* create_grid_converge = "create-grid-and-converge-load-balancing";
122 } // namespace phase
123
124} // namespace otter
125
126#if defined(UseOtter)
127#include <otter/otter-task-graph-user.h>
128#else
129
130#define OTTER_INITIALISE()
131#define OTTER_FINALISE()
132#define OTTER_DECLARE_HANDLE(...)
133#define OTTER_DEFINE_TASK(...)
134#define OTTER_INIT_TASK(...)
135#define OTTER_POOL_ADD(...)
136#define OTTER_POOL_POP(...)
137#define OTTER_POOL_BORROW(...)
138#define OTTER_POOL_DECL_POP(...)
139#define OTTER_POOL_DECL_BORROW(...)
140#define OTTER_TASK_START(...)
141#define OTTER_TASK_END(...)
142#define OTTER_TASK_WAIT_FOR(...)
143#define OTTER_PHASE_BEGIN(...)
144#define OTTER_PHASE_END(...)
145#define OTTER_PHASE_SWITCH(...)
146
147#endif
static const char * TaskWithCopyOfFunctor
Definition otter.h:111
static const char * traverse_fmt
Definition otter.h:109
static const char * root
Definition otter.h:105
static const char * enclave
Definition otter.h:107
static const char * enclave_with_typeid
Definition otter.h:108
static const char * TaskWithoutCopyOfFunctor
Definition otter.h:112
static const char * unknown
Definition otter.h:110
static const char * step
Definition otter.h:106
static const char * create_grid
Definition otter.h:119
static const char * init
Definition otter.h:116
static const char * timestep
Definition otter.h:118
static const char * create_grid_converge
Definition otter.h:121
static const char * create_grid_no_refine
Definition otter.h:120
Definition otter.h:103
-lift-drop-statistics