From 421bf882c78d637febf4af3f80af305c13c51b45 Mon Sep 17 00:00:00 2001 From: Jonathan Hu Date: Tue, 15 Jan 2019 14:45:07 -0700 Subject: [PATCH] Panzer: miniem: explicitly stop stacked timer This necessary for the Kokkos profiling tools to work properly with the stacked timers. See comment in item 1 of https://github.com/trilinos/Trilinos/pull/4138#issue-242162728. --- packages/panzer/mini-em/example/BlockPrec/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/panzer/mini-em/example/BlockPrec/main.cpp b/packages/panzer/mini-em/example/BlockPrec/main.cpp index bc8ef5ca40d4..4b13c6a811cc 100644 --- a/packages/panzer/mini-em/example/BlockPrec/main.cpp +++ b/packages/panzer/mini-em/example/BlockPrec/main.cpp @@ -694,6 +694,7 @@ int main_(Teuchos::CommandLineProcessor &clp, int argc,char * argv[]) // Output timer data if (use_stacked_timer) { + stacked_timer->stop("Mini-EM"); Teuchos::StackedTimer::OutputOptions options; options.output_fraction = options.output_histogram = options.output_minmax = true; stacked_timer->report(*out, comm, options);