Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
SWIFTsim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Milestones
Merge Requests
13
Merge Requests
13
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SWIFT
SWIFTsim
Commits
d26fa3b1
Commit
d26fa3b1
authored
May 09, 2017
by
Matthieu Schaller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset the task debugging timers every time-step
parent
de4d7b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/scheduler.c
src/scheduler.c
+9
-0
No files found.
src/scheduler.c
View file @
d26fa3b1
...
...
@@ -1107,6 +1107,15 @@ void scheduler_enqueue_mapper(void *map_data, int num_elements,
*/
void
scheduler_start
(
struct
scheduler
*
s
)
{
/* Reset all task debugging timers */
#ifdef SWIFT_DEBUG_TASKS
for
(
int
i
=
0
;
i
<
s
->
nr_tasks
;
++
i
)
{
s
->
tasks
[
i
].
tic
=
0
;
s
->
tasks
[
i
].
toc
=
0
;
s
->
tasks
[
i
].
rid
=
-
1
;
}
#endif
/* Re-wait the tasks. */
if
(
s
->
active_count
>
1000
)
{
threadpool_map
(
s
->
threadpool
,
scheduler_rewait_mapper
,
s
->
tid_active
,
...
...
Write
Preview
Markdown
is supported
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