Skip to content
Snippets Groups Projects
Commit 806a81b8 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

no need to explicitly mark send/recv tasks as skip either.

parent f5f7008f
No related branches found
No related tags found
1 merge request!267Mark tasks in drift2
...@@ -2144,19 +2144,8 @@ int engine_marktasks(struct engine *e) { ...@@ -2144,19 +2144,8 @@ int engine_marktasks(struct engine *e) {
/* Multiple-timestep case */ /* Multiple-timestep case */
} else { } else {
#ifdef WITH_MPI /* Run through the tasks and mark as skip or not. */
if (e->policy & engine_policy_mpi) { int extra_data[2] = {e->ti_current, rebuild_space};
/* Skip all sends and recvs, we will unmark if needed. */
for (int k = 0; k < s->nr_tasks; k++) {
struct task *t = &s->tasks[k];
if (t->type == task_type_send || t->type == task_type_recv) {
t->skip = 1;
}
}
}
#endif
threadpool_map(&e->threadpool, engine_marktasks_mapper, s->tasks, threadpool_map(&e->threadpool, engine_marktasks_mapper, s->tasks,
s->nr_tasks, sizeof(struct task), 10000, extra_data); s->nr_tasks, sizeof(struct task), 10000, extra_data);
rebuild_space = extra_data[1]; rebuild_space = extra_data[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment