Skip to content
Snippets Groups Projects
Commit 42f89f51 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Allow the user to tweak the maximal depth of gravity tasks.

parent 5e33f262
No related branches found
No related tags found
1 merge request!576Gravity splittask (non-MPI)
...@@ -55,6 +55,7 @@ Scheduler: ...@@ -55,6 +55,7 @@ Scheduler:
cell_sub_size_pair_grav: 256000000 # (Optional) Maximal number of interactions per sub-pair gravity task (this is the default value). cell_sub_size_pair_grav: 256000000 # (Optional) Maximal number of interactions per sub-pair gravity task (this is the default value).
cell_sub_size_self_grav: 32000 # (Optional) Maximal number of interactions per sub-self gravity task (this is the default value). cell_sub_size_self_grav: 32000 # (Optional) Maximal number of interactions per sub-self gravity task (this is the default value).
cell_split_size: 400 # (Optional) Maximal number of particles per cell (this is the default value). cell_split_size: 400 # (Optional) Maximal number of particles per cell (this is the default value).
cell_subdepth_grav: 2 # (Optional) Maximal depth the gravity tasks can be pushed down (this is the default value).
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). 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 # (Optional) The average number of tasks per cell. If not large enough the simulation will fail (means guess...). tasks_per_cell: 0 # (Optional) The average number of tasks per cell. If not large enough the simulation will fail (means guess...).
mpi_message_limit: 4096 # (Optional) Maximum MPI task message size to send non-buffered, KB. mpi_message_limit: 4096 # (Optional) Maximum MPI task message size to send non-buffered, KB.
......
...@@ -2758,10 +2758,13 @@ void space_init(struct space *s, struct swift_params *params, ...@@ -2758,10 +2758,13 @@ void space_init(struct space *s, struct swift_params *params,
space_subsize_self_grav_default); space_subsize_self_grav_default);
space_splitsize = parser_get_opt_param_int( space_splitsize = parser_get_opt_param_int(
params, "Scheduler:cell_split_size", space_splitsize_default); params, "Scheduler:cell_split_size", space_splitsize_default);
space_subdepth_grav = parser_get_opt_param_int(
params, "Scheduler:cell_subdepth_grav", space_subdepth_grav_default);
if (verbose) { if (verbose) {
message("max_size set to %d split_size set to %d", space_maxsize, message("max_size set to %d split_size set to %d", space_maxsize,
space_splitsize); space_splitsize);
message("subdepth_grav set to %d", space_subdepth_grav);
message("sub_size_pair_hydro set to %d, sub_size_self_hydro set to %d", message("sub_size_pair_hydro set to %d, sub_size_self_hydro set to %d",
space_subsize_pair_hydro, space_subsize_self_hydro); space_subsize_pair_hydro, space_subsize_self_hydro);
message("sub_size_pair_grav set to %d, sub_size_self_grav set to %d", message("sub_size_pair_grav set to %d, sub_size_self_grav set to %d",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment