Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
cd5f3868
Commit
cd5f3868
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
use different subcell task criteria for self and pair tasks.
parent
81269f6a
No related branches found
No related tags found
1 merge request
!365
Subsize
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/space.c
+10
-5
10 additions, 5 deletions
src/space.c
src/space.h
+4
-2
4 additions, 2 deletions
src/space.h
with
14 additions
and
7 deletions
src/space.c
+
10
−
5
View file @
cd5f3868
...
...
@@ -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
=
...
...
This diff is collapsed.
Click to expand it.
src/space.h
+
4
−
2
View file @
cd5f3868
...
...
@@ -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
;
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment