|
Serac
0.1
Serac is an implicit thermal strucural mechanics simulation code.
|
Various helper functions and macros for profiling using Caliper. More...
#include <string>#include <sstream>#include "serac/serac_config.hpp"#include "mpi.h"

Go to the source code of this file.
Namespaces | |
| serac | |
| Accelerator functionality. | |
| serac::profiling | |
| profiling namespace | |
Macros | |
| #define | SERAC_SET_METADATA(name, data) |
| #define | SERAC_MARK_FUNCTION |
| #define | SERAC_MARK_LOOP_BEGIN(id, name) |
| #define | SERAC_MARK_LOOP_ITERATION(id, i) |
| #define | SERAC_MARK_LOOP_END(id) |
| #define | SERAC_MARK_BEGIN(name) |
| #define | SERAC_MARK_END(name) |
| #define | SERAC_MARK_SCOPE(name) |
Functions | |
| void | serac::profiling::initialize ([[maybe_unused]] MPI_Comm comm=MPI_COMM_WORLD,[[maybe_unused]] std::string options="") |
| Initializes performance monitoring using the Caliper and Adiak libraries. More... | |
| void | serac::profiling::finalize () |
| Concludes performance monitoring and writes collected data to a file. | |
| template<typename... T> | |
| std::string | serac::profiling::concat (T... args) |
| Produces a string by applying << to all arguments. | |
Various helper functions and macros for profiling using Caliper.
Definition in file profiling.hpp.
| #define SERAC_MARK_BEGIN | ( | name | ) |
Marks the start of a region Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 94 of file profiling.hpp.
| #define SERAC_MARK_END | ( | name | ) |
Marks the end of a region Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 95 of file profiling.hpp.
| #define SERAC_MARK_FUNCTION |
Marks a function for Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 90 of file profiling.hpp.
| #define SERAC_MARK_LOOP_BEGIN | ( | id, | |
| name | |||
| ) |
Marks the beginning of a loop block for Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 91 of file profiling.hpp.
| #define SERAC_MARK_LOOP_END | ( | id | ) |
Marks the end of a loop block for Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 93 of file profiling.hpp.
| #define SERAC_MARK_LOOP_ITERATION | ( | id, | |
| i | |||
| ) |
Marks the beginning of a loop iteration for Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 92 of file profiling.hpp.
| #define SERAC_MARK_SCOPE | ( | name | ) |
Marks a particular scope for Caliper profiling. No-op macro when ENABLE_PROFILING is off.
Definition at line 96 of file profiling.hpp.
| #define SERAC_SET_METADATA | ( | name, | |
| data | |||
| ) |
Sets metadata in adiak/caliper. Calls adiak::value
Definition at line 39 of file profiling.hpp.