9 #ifdef SMITH_USE_CALIPER
18 #ifdef SMITH_USE_CALIPER
20 std::optional<cali::ConfigManager> mgr;
24 void initialize([[maybe_unused]] MPI_Comm comm, [[maybe_unused]] std::string options)
26 #ifdef SMITH_USE_ADIAK
42 #ifdef SMITH_USE_CALIPER
44 mgr = cali::ConfigManager();
45 auto check_result = mgr->check(options.c_str());
47 if (check_result.empty()) {
48 mgr->add(options.c_str());
50 SLIC_WARNING_ROOT(
"Caliper options invalid, ignoring: " << check_result);
54 mgr->add(
"runtime-report,spot");
61 #ifdef SMITH_USE_ADIAK
66 #ifdef SMITH_USE_CALIPER
This file contains the interface used for retrieving information about how the driver is configured.
This file contains the all the necessary functions and macros required for logging as well as a helpe...
void initialize([[maybe_unused]] MPI_Comm comm, [[maybe_unused]] std::string options)
Initializes performance monitoring using the Caliper and Adiak libraries.
void finalize()
Concludes performance monitoring and writes collected data to a file.
std::string version(bool add_SHA)
Returns a string for the version of Smith.
std::string compiler()
Returns a string for the current compiler name and version.
Various helper functions and macros for profiling using Caliper.
#define SMITH_SET_METADATA(name, data)