{
XBT_DEBUG("send %s to %s", msg->to_string().c_str(), dest);
m_task_t task = MSG_task_create("message", 0.0, msg->get_size(), msg);
- TRACE_msg_set_task_category(task,
- msg->get_type() == message::DATA ?
- TRACE_CAT_DATA : TRACE_CAT_CTRL);
+ MSG_task_set_category(task,
+ msg->get_type() == message::DATA ?
+ TRACE_CAT_DATA : TRACE_CAT_CTRL);
return MSG_task_isend(task, dest);
}
++comp_iter;
double flops = opt::comp_cost(real_load);
m_task_t task = MSG_task_create("computation", flops, 0.0, NULL);
- TRACE_msg_set_task_category(task, TRACE_CAT_COMP);
+ MSG_task_set_category(task, TRACE_CAT_COMP);
XBT_DEBUG("compute %g flop%s", flops, ESSE(flops));
MSG_task_execute(task);
add_comp_amount(flops);
# error "Unsupported SimGrid version. Need version > 3.5"
#endif // ============================================================= //
+#if SIMGRID_VERSION < MAKE_SIMGRID_VERSION(3, 7, 0)
+
+#define MSG_task_set_category(task, cat) TRACE_msg_set_task_category(task, cat)
+
+#endif
+
#endif // !SIMGRID_FEATURES_H
// Local variables: