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
ca912a0c
Commit
ca912a0c
authored
9 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
re-instate verbosity in engine_marktasks.
parent
deb696e9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!176
Tasks cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+4
-4
4 additions, 4 deletions
src/engine.c
with
4 additions
and
4 deletions
src/engine.c
+
4
−
4
View file @
ca912a0c
...
@@ -1637,12 +1637,12 @@ int engine_marktasks(struct engine *e) {
...
@@ -1637,12 +1637,12 @@ int engine_marktasks(struct engine *e) {
struct
scheduler
*
s
=
&
e
->
sched
;
struct
scheduler
*
s
=
&
e
->
sched
;
const
ticks
tic
=
getticks
();
const
ticks
tic
=
getticks
();
int
rebuild_space
=
0
;
/* Much less to do here if we're on a fixed time-step. */
/* Much less to do here if we're on a fixed time-step. */
if
(
e
->
policy
&
engine_policy_fixdt
)
{
if
(
e
->
policy
&
engine_policy_fixdt
)
{
/* Run through the tasks and mark as skip or not. */
/* Run through the tasks and mark as skip or not. */
int
rebuild_space
=
0
;
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_fixdt_mapper
,
s
->
tasks
,
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_fixdt_mapper
,
s
->
tasks
,
s
->
nr_tasks
,
sizeof
(
struct
task
),
&
rebuild_space
);
s
->
nr_tasks
,
sizeof
(
struct
task
),
&
rebuild_space
);
return
rebuild_space
;
return
rebuild_space
;
...
@@ -1651,12 +1651,12 @@ int engine_marktasks(struct engine *e) {
...
@@ -1651,12 +1651,12 @@ int engine_marktasks(struct engine *e) {
}
else
{
}
else
{
/* Run through the tasks and mark as skip or not. */
/* Run through the tasks and mark as skip or not. */
int
extra_data
[
2
]
=
{
e
->
ti_current
,
0
};
int
extra_data
[
2
]
=
{
e
->
ti_current
,
rebuild_space
};
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_sorts_mapper
,
s
->
tasks
,
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_sorts_mapper
,
s
->
tasks
,
s
->
nr_tasks
,
sizeof
(
struct
task
),
NULL
);
s
->
nr_tasks
,
sizeof
(
struct
task
),
NULL
);
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_mapper
,
s
->
tasks
,
threadpool_map
(
&
e
->
threadpool
,
engine_marktasks_mapper
,
s
->
tasks
,
s
->
nr_tasks
,
sizeof
(
struct
task
),
extra_data
);
s
->
nr_tasks
,
sizeof
(
struct
task
),
extra_data
);
re
turn
extra_data
[
1
];
re
build_space
=
extra_data
[
1
];
}
}
if
(
e
->
verbose
)
if
(
e
->
verbose
)
...
@@ -1664,7 +1664,7 @@ int engine_marktasks(struct engine *e) {
...
@@ -1664,7 +1664,7 @@ int engine_marktasks(struct engine *e) {
clocks_getunit
());
clocks_getunit
());
/* All is well... */
/* All is well... */
return
0
;
return
rebuild_space
;
}
}
/**
/**
...
...
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