Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
0f7a66e3
Commit
0f7a66e3
authored
Jun 22, 2013
by
Pedro Gonnet
Browse files
more precise estimate of costs for splitting pairs.
Former-commit-id: 3a3e0d5d4c6cc076e1e75445d3488f56846e2dc8
parent
f869bed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
0f7a66e3
...
...
@@ -103,6 +103,9 @@ void scheduler_splittasks ( struct scheduler *s ) {
{
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
12
,
10
,
9
}
,
{
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
11
,
10
}
,
{
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
12
}
};
float
sid_scale
[
13
]
=
{
0
.
036
f
,
0
.
162
f
,
0
.
036
f
,
0
.
162
f
,
0
.
335
f
,
0
.
162
f
,
0
.
036
f
,
0
.
162
f
,
0
.
036
f
,
0
.
162
f
,
0
.
335
f
,
0
.
162
f
,
0
.
335
f
};
/* Loop through the tasks... */
// #pragma omp parallel default(none) shared(s,tid,pts,space_subsize) private(ind,j,k,t,t_old,redo,ci,cj,hi,hj,sid,shift)
...
...
@@ -203,7 +206,7 @@ void scheduler_splittasks ( struct scheduler *s ) {
/* Replace by a single sub-task? */
if
(
scheduler_dosub
&&
ci
->
count
<
space_subsize
&&
cj
->
count
<
space_subsize
&&
(
ci
->
count
+
cj
->
count
)
*
sid_scale
[
sid
]
<
space_subsize
&&
ci
->
maxdepth
-
ci
->
depth
<
scheduler_maxsubdepth
&&
cj
->
maxdepth
-
cj
->
depth
<
scheduler_maxsubdepth
&&
sid
!=
0
&&
sid
!=
2
&&
sid
!=
6
&&
sid
!=
8
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment