Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
f574464b
Commit
f574464b
authored
8 years ago
by
Guillaume Sylvand
Browse files
Options
Downloads
Patches
Plain Diff
progress indicator is now written in stderr
parent
7a0889ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/starpu/control/runtime_async.c
+3
-4
3 additions, 4 deletions
runtime/starpu/control/runtime_async.c
with
3 additions
and
4 deletions
runtime/starpu/control/runtime_async.c
+
3
−
4
View file @
f574464b
...
...
@@ -61,16 +61,15 @@ void update_progress(int currentValue, int maximumValue) {
}
// Print the percentage
if
(
res
.
quot
>
progress
)
printf
(
"%3d%%
\b\b\b\b
"
,
res
.
quot
)
;
f
printf
(
stderr
,
"%3d%%
\b\b\b\b
"
,
res
.
quot
)
;
progress
=
res
.
quot
;
if
(
currentValue
>=
maximumValue
)
{
progress
=-
1
;
}
fflush
(
stdout
);
}
// no progress indicator for algorithms faster than 'PROGRESS_MINIMUM_DURATION' seconds
#define PROGRESS_MINIMUM_DURATION 10
/*******************************************************************************
...
...
@@ -89,7 +88,7 @@ int RUNTIME_progress( MORSE_context_t *morse)
// update_progress(0, max);
while
((
tasksLeft
=
starpu_task_nsubmitted
())
>
0
)
{
current
=
max
-
tasksLeft
;
if
(
timer
>
PROGRESS_MINIMUM_DURATION
)
// no progress indicator for algorithms faster than 'PROGRESS_MINIMUM_DURATION' seconds
if
(
timer
>
PROGRESS_MINIMUM_DURATION
)
update_progress
(
current
,
max
);
sleep
(
1
);
timer
++
;
...
...
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