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
33b75d25
Commit
33b75d25
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
add option --enable-task-debugging to configuration.
parent
64a26385
No related branches found
No related tags found
1 merge request
!273
Lean tasks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+13
-0
13 additions, 0 deletions
configure.ac
examples/main.c
+1
-1
1 addition, 1 deletion
examples/main.c
with
14 additions
and
1 deletion
configure.ac
+
13
−
0
View file @
33b75d25
...
@@ -170,6 +170,18 @@ if test "x$enable_debug" = "xyes"; then
...
@@ -170,6 +170,18 @@ if test "x$enable_debug" = "xyes"; then
fi
fi
fi
fi
# Check if task debugging is on.
AC_ARG_ENABLE([task-debugging],
[AS_HELP_STRING([--enable-task-debugging],
[Store task timing information and generate task dump files @<:@yes/no@:>@]
)],
[enable_task_debugging="$enableval"],
[enable_task_debugging="no"]
)
if test "$enable_task_debugging" = "yes"; then
AC_DEFINE([SWIFT_DEBUG_TASKS],1,[Enable task debugging])
fi
# Define HAVE_POSIX_MEMALIGN if it works.
# Define HAVE_POSIX_MEMALIGN if it works.
AX_FUNC_POSIX_MEMALIGN
AX_FUNC_POSIX_MEMALIGN
...
@@ -533,6 +545,7 @@ AC_MSG_RESULT([
...
@@ -533,6 +545,7 @@ AC_MSG_RESULT([
libNUMA enabled : $have_numa
libNUMA enabled : $have_numa
Using tcmalloc : $have_tcmalloc
Using tcmalloc : $have_tcmalloc
CPU profiler : $have_profiler
CPU profiler : $have_profiler
Task debugging : $enable_task_debugging
])
])
# Generate output.
# Generate output.
...
...
This diff is collapsed.
Click to expand it.
examples/main.c
+
1
−
1
View file @
33b75d25
...
@@ -605,7 +605,7 @@ int main(int argc, char *argv[]) {
...
@@ -605,7 +605,7 @@ int main(int argc, char *argv[]) {
MPI_Barrier
(
MPI_COMM_WORLD
);
MPI_Barrier
(
MPI_COMM_WORLD
);
}
}
#el
if
#el
se
char
dumpfile
[
30
];
char
dumpfile
[
30
];
snprintf
(
dumpfile
,
30
,
"thread_info-step%d.dat"
,
j
+
1
);
snprintf
(
dumpfile
,
30
,
"thread_info-step%d.dat"
,
j
+
1
);
FILE
*
file_thread
;
FILE
*
file_thread
;
...
...
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