11 #ifdef SERAC_USE_CALIPER
17 #ifdef SERAC_USE_CALIPER
19 std::optional<cali::ConfigManager> mgr;
23 void initialize([[maybe_unused]] MPI_Comm comm, [[maybe_unused]] std::string options)
25 #ifdef SERAC_USE_ADIAK
39 #ifdef SERAC_USE_CALIPER
41 mgr = cali::ConfigManager();
42 auto check_result = mgr->check(options.c_str());
44 if (check_result.empty()) {
45 mgr->add(options.c_str());
47 SLIC_WARNING_ROOT(
"Caliper options invalid, ignoring: " << check_result);
51 mgr->add(
"runtime-report,spot");
58 #ifdef SERAC_USE_ADIAK
63 #ifdef SERAC_USE_CALIPER
79 #ifdef SERAC_USE_CALIPER
80 CALI_MARK_BEGIN(name);
86 #ifdef SERAC_USE_CALIPER
This file contains the all the necessary functions and macros required for logging as well as a helpe...
void endCaliperRegion(const char *name)
Caliper methods for marking the end of a region.
void startCaliperRegion(const char *name)
Caliper method for marking the start of a profiling region.
void finalize()
Concludes performance monitoring and writes collected data to a file.
void initialize([[maybe_unused]] MPI_Comm comm, [[maybe_unused]] std::string options)
Initializes performance monitoring using the Caliper and Adiak libraries.
Various helper functions and macros for profiling using Caliper.