Skip to content
Snippets Groups Projects
Commit 33b75d25 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add option --enable-task-debugging to configuration.

parent 64a26385
No related branches found
No related tags found
1 merge request!273Lean tasks
...@@ -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.
......
...@@ -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);
} }
#elif #else
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment