From d5bb5e4a973b0e6e2346204eb743da3676b92821 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 25 Jun 2012 11:49:12 +0200 Subject: [PATCH] Tracing API has changed. Disable it until its usage is fixed. --- communicator.cpp | 7 +++---- process.cpp | 2 +- simgrid_features.h | 5 ----- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/communicator.cpp b/communicator.cpp index e841116..2ba91a0 100644 --- a/communicator.cpp +++ b/communicator.cpp @@ -6,7 +6,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm); #include "misc.h" -#include "simgrid_features.h" #include "tracing.h" #include "communicator.h" @@ -54,9 +53,9 @@ msg_comm_t communicator::real_send(const char* dest, message* msg) { 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); - MSG_task_set_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); } diff --git a/process.cpp b/process.cpp index 722013f..6c72d45 100644 --- a/process.cpp +++ b/process.cpp @@ -257,7 +257,7 @@ void process::compute_loop() ++comp_iter; double flops = opt::comp_cost(real_load); m_task_t task = MSG_task_create("computation", flops, 0.0, NULL); - MSG_task_set_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); diff --git a/simgrid_features.h b/simgrid_features.h index f407ffd..458d6cf 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -7,11 +7,6 @@ # 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 -- 2.39.5