1#ifndef MESSAGE_LOGGING_H
2#define MESSAGE_LOGGING_H
8#include "fenix_ext.hpp"
9#include "fenix/logging/comm_log.h"
11#define CONSISTENCY_TAG 22234652
12#define COLLECTIVE_CONSISTENCY_TAG 22234653
14namespace fenix::mlog {
15using namespace fenix::logging;
17namespace fenix::logging {
18using namespace fenix::mlog;
21namespace fenix::mlog::impl {
24std::shared_ptr<CommLog> search_mlog(
int id);
26std::shared_ptr<CommLog> find_mlog(
27 int id, std::source_location loc = std::source_location::current()
31inline bool is_logging(MPI_Comm c) {
32 return fenix_rt.active_mlog && fenix_rt.active_mlog->comm == c;