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
4d345471
Commit
4d345471
authored
9 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
replace all this 'super' sillines and just store the previous task.
parent
3a405f36
No related branches found
No related tags found
2 merge requests
!136
Master
,
!75
Overlapping tasks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner.c
+5
-12
5 additions, 12 deletions
src/runner.c
with
5 additions
and
12 deletions
src/runner.c
+
5
−
12
View file @
4d345471
...
...
@@ -1177,7 +1177,7 @@ void *runner_main(void *data) {
struct
engine
*
e
=
r
->
e
;
struct
scheduler
*
sched
=
&
e
->
sched
;
struct
task
*
t
=
NULL
;
struct
cell
*
ci
,
*
cj
,
*
super
;
struct
cell
*
ci
,
*
cj
;
struct
part
*
parts
;
int
k
,
nr_parts
;
...
...
@@ -1187,8 +1187,8 @@ void *runner_main(void *data) {
/* Wait at the barrier. */
engine_barrier
(
e
,
r
->
id
);
/* Re-set the pointer to the previous
super cell
. */
s
uper
=
NULL
;
/* Re-set the pointer to the previous
task, as there is none
. */
s
truct
task
*
prev
=
NULL
;
/* Loop while there are tasks... */
while
(
1
)
{
...
...
@@ -1198,7 +1198,7 @@ void *runner_main(void *data) {
/* Get the task. */
TIMER_TIC
t
=
scheduler_gettask
(
sched
,
r
->
qid
,
super
);
t
=
scheduler_gettask
(
sched
,
r
->
qid
,
prev
);
TIMER_TOC
(
timer_gettask
);
/* Did I get anything? */
...
...
@@ -1210,14 +1210,6 @@ void *runner_main(void *data) {
cj
=
t
->
cj
;
t
->
rid
=
r
->
cpuid
;
/* Set super to the first cell that I own. */
if
(
t
->
type
!=
task_type_rewait
&&
t
->
type
!=
task_type_psort
)
{
if
(
ci
->
super
!=
NULL
&&
ci
->
super
->
owner
==
r
->
qid
)
super
=
ci
->
super
;
else
if
(
cj
!=
NULL
&&
cj
->
super
!=
NULL
&&
cj
->
super
->
owner
==
r
->
qid
)
super
=
cj
->
super
;
}
/* Different types of tasks... */
switch
(
t
->
type
)
{
case
task_type_self
:
...
...
@@ -1302,6 +1294,7 @@ void *runner_main(void *data) {
}
/* We're done with this task, see if we get a next one. */
prev
=
t
;
t
=
scheduler_done
(
sched
,
t
);
}
/* main loop. */
...
...
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