From e5e3ca178addea9c08db4b82cd2c9f643d957e40 Mon Sep 17 00:00:00 2001 From: Bryce Allen Date: Mon, 24 Oct 2022 18:07:38 -0400 Subject: [PATCH] more precision when printing timings --- mpi_stencil2d_gt.cc | 2 +- mpi_stencil_gt.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpi_stencil2d_gt.cc b/mpi_stencil2d_gt.cc index 864ea55..20dae52 100644 --- a/mpi_stencil2d_gt.cc +++ b/mpi_stencil2d_gt.cc @@ -338,7 +338,7 @@ int main(int argc, char** argv) d_dzdy_numeric = stencil2d_1d_5(d_z, stencil5) * scale; gt::synchronize(); } - printf("%d/%d exchange time %0.4f\n", world_rank, world_size, total_time / n_iter); + printf("%d/%d exchange time %0.8f\n", world_rank, world_size, total_time / n_iter); gt::copy(d_dzdy_numeric, h_dzdy_numeric); // gt::synchronize(); diff --git a/mpi_stencil_gt.cc b/mpi_stencil_gt.cc index 5b1e37c..b2bb2e1 100644 --- a/mpi_stencil_gt.cc +++ b/mpi_stencil_gt.cc @@ -201,7 +201,7 @@ int main(int argc, char **argv) { boundary_exchange(MPI_COMM_WORLD, world_size, world_rank, d_y, n_bnd); clock_gettime(CLOCK_MONOTONIC, &end); seconds = ((end.tv_sec - start.tv_sec) + (end.tv_nsec - start.tv_nsec) * 1.0e-9); - printf("%d/%d exchange time %0.4f\n", world_rank, world_size, seconds); + printf("%d/%d exchange time %0.8f\n", world_rank, world_size, seconds); d_dydx_numeric = stencil1d_5(d_y, stencil5) * scale;