From b2233aab187fae609b1e02f2f7ed8b37819f9762 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Wed, 23 Oct 2013 17:07:08 +0200 Subject: CarpetInterp2: Time only interpolation using Interpolate timer, and enable more timers for tracing --- Carpet/CarpetInterp2/src/fasterp.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc index 12c8c6678..0f6056868 100644 --- a/Carpet/CarpetInterp2/src/fasterp.cc +++ b/Carpet/CarpetInterp2/src/fasterp.cc @@ -1656,7 +1656,7 @@ namespace CarpetInterp2 { // Post Irecvs if (verbose) CCTK_INFO ("Posting MPI_Irecvs"); - static Timers::Timer irecvs_timer ("PostIrecvs"); + static Timers::Timer irecvs_timer ("PostIrecvs",0,true); irecvs_timer.start(); @@ -1685,8 +1685,9 @@ namespace CarpetInterp2 { // Interpolate data and post Isends if (verbose) CCTK_INFO ("Interpolating and posting MPI_Isends"); - static Timers::Timer interpolate_timer ("Interpolate"); - interpolate_timer.start(); + static Timers::Timer interpolate_timer ("Interpolate",0,true); + + interpolate_timer.instantiate(); // TODO: Use one array per processor? vector send_points (send_descr.npoints * nvars); @@ -1729,6 +1730,7 @@ namespace CarpetInterp2 { // TODO: This loops seems unbalanced. Maybe the different // interpolations have different costs. + interpolate_timer.start(); #pragma omp parallel for schedule (dynamic, 1000) for (int n=0; n