Commit cd5f3868 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

use different subcell task criteria for self and pair tasks.

parent 81269f6a
......@@ -60,7 +60,8 @@
/* Split size. */
int space_splitsize = space_splitsize_default;
int space_subsize = space_subsize_default;
int space_subsize_pair = space_subsize_pair_default;
int space_subsize_self = space_subsize_self_default;
int space_maxsize = space_maxsize_default;
int space_maxcount = space_maxcount_default;
......@@ -2689,15 +2690,19 @@ void space_init(struct space *s, const struct swift_params *params,
/* Get the constants for the scheduler */
space_maxsize = parser_get_opt_param_int(params, "Scheduler:cell_max_size",
space_maxsize_default);
space_subsize = parser_get_opt_param_int(params, "Scheduler:cell_sub_size",
space_subsize_default);
space_subsize_pair = parser_get_opt_param_int(
params, "Scheduler:cell_sub_size_pair", space_subsize_pair_default);
space_subsize_self = parser_get_opt_param_int(
params, "Scheduler:cell_sub_size_self", space_subsize_self_default);
space_splitsize = parser_get_opt_param_int(
params, "Scheduler:cell_split_size", space_splitsize_default);
space_maxcount = parser_get_opt_param_int(params, "Scheduler:cell_max_count",
space_maxcount_default);
if (verbose)
message("max_size set to %d, sub_size set to %d, split_size set to %d",
space_maxsize, space_subsize, space_splitsize);
message(
"max_size set to %d, sub_size_pair set to %d, sub_size_self set to %d, "
"split_size set to %d",
space_maxsize, space_subsize_pair, space_subsize_self, space_splitsize);
/* Apply h scaling */
const double scaling =
......
......@@ -43,7 +43,8 @@ struct cell;
#define space_cellallocchunk 1000
#define space_splitsize_default 400
#define space_maxsize_default 8000000
#define space_subsize_default 64000000
#define space_subsize_pair_default 64000000
#define space_subsize_self_default 8000
#define space_maxcount_default 10000
#define space_max_top_level_cells_default 12
#define space_stretch 1.10f
......@@ -55,7 +56,8 @@ struct cell;
/* Split size. */
extern int space_splitsize;
extern int space_maxsize;
extern int space_subsize;
extern int space_subsize_pair;
extern int space_subsize_self;
extern int space_maxcount;
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment