A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add msg As getModel and GetHosts
[simgrid.git]
/
src
/
msg
/
msg_gos.c
diff --git
a/src/msg/msg_gos.c
b/src/msg/msg_gos.c
index
aeb6ad3
..
e8112ed
100644
(file)
--- a/
src/msg/msg_gos.c
+++ b/
src/msg/msg_gos.c
@@
-23,7
+23,15
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_gos, msg,
*/
msg_error_t MSG_task_execute(msg_task_t task)
{
*/
msg_error_t MSG_task_execute(msg_task_t task)
{
- return MSG_parallel_task_execute(task);
+ /* TODO: add this to other locations */
+ msg_host_t host = MSG_process_get_host(MSG_process_self());
+ MSG_host_add_task(host, task);
+
+ msg_error_t ret = MSG_parallel_task_execute(task);
+
+ MSG_host_del_task(host, task);
+
+ return ret;
}
/** \ingroup msg_task_usage
}
/** \ingroup msg_task_usage
@@
-77,7
+85,8
@@
msg_error_t MSG_parallel_task_execute(msg_task_t task)
simdata->compute = simcall_host_execute(task->name,
p_simdata->m_host,
simdata->computation_amount,
simdata->compute = simcall_host_execute(task->name,
p_simdata->m_host,
simdata->computation_amount,
- simdata->priority);
+ simdata->priority,
+ simdata->bound);
}
#ifdef HAVE_TRACING
}
#ifdef HAVE_TRACING
@@
-622,7
+631,7
@@
msg_comm_t MSG_task_irecv_bounded(msg_task_t *task, const char *name, double rat
smx_rdv_t rdv = MSG_mailbox_get_by_alias(name);
smx_rdv_t rdv = MSG_mailbox_get_by_alias(name);
- simcall_comm_change_rate_first_action(rdv,rate);
+
/* FIXME: these functions are not traceable */
/* Sanity check */
/* FIXME: these functions are not traceable */
/* Sanity check */
@@
-637,7
+646,7
@@
msg_comm_t MSG_task_irecv_bounded(msg_task_t *task, const char *name, double rat
comm->task_sent = NULL;
comm->task_received = task;
comm->status = MSG_OK;
comm->task_sent = NULL;
comm->task_received = task;
comm->status = MSG_OK;
- comm->s_comm = simcall_comm_irecv
(rdv, task, NULL, NULL, NULL
);
+ comm->s_comm = simcall_comm_irecv
_bounded(rdv, task, NULL, NULL, NULL, rate
);
return comm;
}
return comm;
}