- double msg_size = sizeof *msg;
- 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);
+ 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);
+ return MSG_task_isend(task, dest);