From 9da685f30e30e715cc44b79fe4e647eed5b772fd Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Fri, 3 May 2019 18:13:45 +0100 Subject: [PATCH] Need more links per task for new MPI tasks and SodShock --- examples/parameter_example.yml | 2 +- src/engine.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml index e904a0dd44..f0a3c398e3 100644 --- a/examples/parameter_example.yml +++ b/examples/parameter_example.yml @@ -72,7 +72,7 @@ Scheduler: cell_extra_sparts: 400 # (Optional) Number of spare sparts per top-level allocated at rebuild time for on-the-fly creation. max_top_level_cells: 12 # (Optional) Maximal number of top-level cells in any dimension. The number of top-level cells will be the cube of this (this is the default value). tasks_per_cell: 0.0 # (Optional) The average number of tasks per cell. If not large enough the simulation will fail (means guess...). - links_per_tasks: 10 # (Optional) The average number of links per tasks (before adding the communication tasks). If not large enough the simulation will fail (means guess...). Defaults to 10. + links_per_tasks: 25 # (Optional) The average number of links per tasks (before adding the communication tasks). If not large enough the simulation will fail (means guess...). Defaults to 10. mpi_message_limit: 4096 # (Optional) Maximum MPI task message size to send non-buffered, KB. engine_max_parts_per_ghost: 1000 # (Optional) Maximum number of parts per ghost. engine_max_sparts_per_ghost: 1000 # (Optional) Maximum number of sparts per ghost. diff --git a/src/engine.c b/src/engine.c index 4b3d356899..afa859e9ae 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5507,7 +5507,7 @@ void engine_config(int restart, struct engine *e, struct swift_params *params, /* Estimated number of links per tasks */ e->links_per_tasks = - parser_get_opt_param_int(params, "Scheduler:links_per_tasks", 15); + parser_get_opt_param_int(params, "Scheduler:links_per_tasks", 25); /* Init the scheduler. */ scheduler_init(&e->sched, e->s, maxtasks, nr_queues, -- GitLab