33 "loglevel must be below 128");
38 "If you've seen spam in your life i can garantee you, this is worst");
45 logger::print_active_level();
65 logger::raw_ln(git_info_str);
81 "get_compiler_id_string",
83 return shamrock_compiler_id_string;
86 Return compiler_id_string
92 logger::raw_ln(compile_arg);
101 return version_string;
104 Return version_string
117 "enable_experimental_features",
122 Enable experimental features
127 [](std::string prefix) {
128#ifdef SHAMROCK_USE_PROFILING
137 "dump_profiling_chrome",
138 [](std::string prefix) {
139#ifdef SHAMROCK_USE_PROFILING
148 "clear_profiling_data",
150#ifdef SHAMROCK_USE_PROFILING
158 py::module sys_module = m.def_submodule("sys",
"system handling part of shamrock");
159 sys_module.def(
"signal_handler", &shamsys::details::signal_callback_handler);
161 shamsys::instance::register_pymodules(sys_module);
std::uint32_t u32
32 bit unsigned integer
This header file contains utility functions related to exception handling in the code.
void set_loglevel(i8 val)
Set the global log level.
i8 get_loglevel()
Get the current global log level.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
i32 world_rank()
Gives the rank of the current process in the MPI communicator.
void enable_experimental_features()
Allow the use of experimental features.
constexpr i8 i8_max
i8 max value
Pybind11 include and definitions.
#define Register_pymod(placeholdername)
Register a python module init function using static initialisation.
This file contains the definition for the stacktrace related functionality.
void dump_profilings(const std::string &process_prefix, u32 world_rank)
Dump the profiling data in a JSON format to a file.
void dump_profilings_chrome(const std::string &process_prefix, u32 world_rank)
Dump the profiling data in a Chrome Tracing format.
void clear_profiling_data()
Clear the profiling data. (should be done in large run to avoid out-of-memory)