#include "misc.h"
#include "options.h"
+#include "tracing.h"
#include "communicator.h"
if (msg->get_type() == message::LOAD)
msg_size += opt::comm_cost(msg->get_amount());
m_task_t task = MSG_task_create("message", 0.0, msg_size, msg);
+ TRACE_msg_set_task_category(task,
+ msg->get_type() == message::LOAD ?
+ TRACE_CAT_DATA : TRACE_CAT_CTRL);
msg_comm_t comm = MSG_task_isend(task, dest);
sent_comm.push_back(comm);
}
#include "options.h"
#include "process.h"
#include "timer.h"
+#include "tracing.h"
#include "version.h"
namespace {
MSG_launch_application(opt::deployment_file.c_str());
}
+ // Register tracing categories
+ TRACE_category(TRACE_CAT_COMP);
+ TRACE_category(TRACE_CAT_CTRL);
+ TRACE_category(TRACE_CAT_DATA);
+
exit_status = EXIT_FAILURE_SIMU; // =====
// Launch the MSG simulation.
#include "misc.h"
#include "options.h"
+#include "tracing.h"
#include "process.h"
if (load > 0.0) {
double flops = opt::comp_cost(load);
m_task_t task = MSG_task_create("computation", flops, 0.0, NULL);
+ TRACE_msg_set_task_category(task, TRACE_CAT_COMP);
DEBUG2("compute %g flop%s", flops, ESSE(flops));
MSG_task_execute(task);
comp += flops;
--- /dev/null
+#ifndef TRACING_H
+#define TRACING_H
+
+#define TRACE_CAT_COMP "comp_task"
+#define TRACE_CAT_CTRL "ctrl_mesg"
+#define TRACE_CAT_DATA "data_mesg"
+
+#endif // !TRACING_H
+
+// Local variables:
+// mode: c++
+// End: