ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
diagnose.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2#ifndef TTG_DIAGNOSE_H
3#define TTG_DIAGNOSE_H
4
5namespace ttg {
6 namespace detail {
7 inline bool &diagnose_accessor() {
8 static bool diagnose = true;
9 return diagnose;
10 }
11 } // namespace detail
12
13 inline bool diagnose() { return detail::diagnose_accessor(); }
14 inline void diagnose_on() { detail::diagnose_accessor() = true; }
15 inline void diagnose_off() { detail::diagnose_accessor() = false; }
16
17} // namespace ttg
18
19#endif // TTG_DIAGNOSE_H
bool & diagnose_accessor()
Definition diagnose.h:7
top-level TTG namespace contains runtime-neutral functionality
Definition keymap.h:9
void diagnose_on()
Definition diagnose.h:14
bool diagnose()
Definition diagnose.h:13
void diagnose_off()
Definition diagnose.h:15