From f5f7008f552c9a7b7c44f9c5b44249a030625e3f Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Tue, 6 Sep 2016 20:36:46 +0200 Subject: [PATCH] no need to skip the sorts, they are now skipped by default. --- src/engine.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/engine.c b/src/engine.c index b9f903237a..4b54e0b808 100644 --- a/src/engine.c +++ b/src/engine.c @@ -1987,27 +1987,6 @@ void engine_marktasks_fixdt_mapper(void *map_data, int num_elements, } } -/** - * @brief Mark any sort tasks as initially skipped. - * Threadpool mapper function. - * - * @param map_data pointer to the tasks - * @param num_elements number of tasks - * @param extra_data unused - */ -void engine_marktasks_sorts_mapper(void *map_data, int num_elements, - void *extra_data) { - /* Unpack the arguments. */ - struct task *tasks = (struct task *)map_data; - for (int ind = 0; ind < num_elements; ind++) { - struct task *t = &tasks[ind]; - if (t->type == task_type_sort) { - t->flags = 0; - t->skip = 1; - } - } -} - /** * @brief Mark tasks to be skipped and set the sort flags accordingly. * Threadpool mapper function. @@ -2165,11 +2144,6 @@ int engine_marktasks(struct engine *e) { /* Multiple-timestep case */ } else { - /* Run through the tasks and mark as skip or not. */ - int extra_data[2] = {e->ti_current, rebuild_space}; - threadpool_map(&e->threadpool, engine_marktasks_sorts_mapper, s->tasks, - s->nr_tasks, sizeof(struct task), 10000, NULL); - #ifdef WITH_MPI if (e->policy & engine_policy_mpi) { -- GitLab