Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
QuickSched
Commits
4c6c814f
Commit
4c6c814f
authored
8 years ago
by
Aidan Chalk
Browse files
Options
Downloads
Patches
Plain Diff
Update to
#15
, now TASKTIMERS is output and configure is fixed
parent
9e4d1d1e
No related branches found
No related tags found
1 merge request
!9
Task timers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+9
-8
9 additions, 8 deletions
configure.ac
src/qsched.c
+4
-4
4 additions, 4 deletions
src/qsched.c
with
13 additions
and
12 deletions
configure.ac
+
9
−
8
View file @
4c6c814f
...
...
@@ -99,22 +99,23 @@ if test "$enable_san" = "yes"; then
fi
fi
# Autoconf stuff
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_HEADER_STDC
AC_ARG_ENABLE([task-timers],
[AS_HELP_STRING([--enable-task-timers],
[Enables task timer output and collection of extra data to enable it])]
.
[enable_tts
]
="$enableval
$
"],
[enable_tts
]
="no"]
[Enables task timer output and collection of extra data to enable it])]
,
[enable_tts="$enableval"],
[enable_tts="no"]
)
if test "$enable_tts" = "yes"; then
AC_DEFINE(WITH_TASK_TIMERS,1,[Define if Task Timer recording is enabled])
fi
# Autoconf stuff
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_HEADER_STDC
# Check for pthreads.
AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC" LDFLAGS="$LDFLAGS $PTHREAD_LIBS $LIBS"]
...
...
This diff is collapsed.
Click to expand it.
src/qsched.c
+
4
−
4
View file @
4c6c814f
...
...
@@ -609,7 +609,7 @@ void qsched_done ( struct qsched *s , struct task *t ) {
/* Set the task stats. */
t
->
toc
=
getticks
();
#ifdef WITH_TASK_TIMERS
t
->
tid
=
qsched_get_tid
();
t
->
tid
=
omp_get_thread_num
();
#endif
if
(
!
(
s
->
flags
&
qsched_flag_norecost
))
t
->
cost
=
t
->
toc
-
t
->
tic
;
...
...
@@ -1658,11 +1658,11 @@ FILE *task_file;
task_file
=
fopen
(
filename
,
"w"
);
for
(
int
i
=
0
;
i
<
s
->
nr_tasks
;
i
++
)
for
(
int
i
=
0
;
i
<
s
->
count
;
i
++
)
{
struct
task
*
t
=
s
->
tasks
[
i
];
struct
task
*
t
=
&
s
->
tasks
[
i
];
fprintf
(
"%i %i %lli %lli
\n
"
,
t
->
type
,
t
->
tid
,
t
->
tic
,
t
->
toc
);
fprintf
(
task_file
,
"%i %i %lli %lli
\n
"
,
t
->
type
,
t
->
tid
,
t
->
tic
,
t
->
toc
);
}
...
...
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