Skip to content
Snippets Groups Projects
Commit 3b4fe407 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the code abort if --dump-tasks-threshold is used without...

Make the code abort if --dump-tasks-threshold is used without --enable-task-debugging passed at configure time
parent 0d61877e
Branches
Tags
1 merge request!1071Output a report about tasks that use more than 5% of the runtime in a step
......@@ -406,6 +406,16 @@ int main(int argc, char *argv[]) {
}
#endif
if (dump_tasks_threshold > 0.f) {
#ifndef SWIFT_DEBUG_TASKS
if (myrank == 0) {
error(
"Error: Dumping task plot data above a fixed time threshold is only "
"valid when the code is configured with --enable-task-debugging.");
}
#endif
}
#ifndef SWIFT_CELL_GRAPH
if (dump_cells) {
if (myrank == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment