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
9978f3ed
Commit
9978f3ed
authored
9 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
fixed engine_rebuild and engine_prepare.
parent
26ddd08a
No related branches found
No related tags found
2 merge requests
!136
Master
,
!113
Local variable 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 @
9978f3ed
...
...
@@ -1427,7 +1427,6 @@ int engine_marktasks(struct engine *e) {
void
engine_rebuild
(
struct
engine
*
e
)
{
int
k
;
struct
scheduler
*
sched
=
&
e
->
sched
;
/* Clear the forcerebuild flag, whatever it was. */
...
...
@@ -1462,19 +1461,20 @@ void engine_rebuild(struct engine *e) {
/* Count and print the number of each task type. */
int
counts
[
task_type_count
+
1
];
for
(
k
=
0
;
k
<=
task_type_count
;
k
++
)
counts
[
k
]
=
0
;
for
(
k
=
0
;
k
<
sched
->
nr_tasks
;
k
++
)
for
(
int
k
=
0
;
k
<=
task_type_count
;
k
++
)
counts
[
k
]
=
0
;
for
(
int
k
=
0
;
k
<
sched
->
nr_tasks
;
k
++
)
{
if
(
!
sched
->
tasks
[
k
].
skip
)
counts
[(
int
)
sched
->
tasks
[
k
].
type
]
+=
1
;
else
counts
[
task_type_count
]
+=
1
;
}
#ifdef WITH_MPI
printf
(
"[%03i] engine_rebuild: task counts are [ %s=%i"
,
e
->
nodeID
,
taskID_names
[
0
],
counts
[
0
]);
#else
printf
(
"engine_rebuild: task counts are [ %s=%i"
,
taskID_names
[
0
],
counts
[
0
]);
#endif
for
(
k
=
1
;
k
<
task_type_count
;
k
++
)
for
(
int
k
=
1
;
k
<
task_type_count
;
k
++
)
printf
(
" %s=%i"
,
taskID_names
[
k
],
counts
[
k
]);
printf
(
" skipped=%i ]
\n
"
,
counts
[
task_type_count
]);
fflush
(
stdout
);
...
...
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