bscpkgs/garlic/apps/heat/print-times.patch
Rodrigo Arias Mallo 972be56eed heat: patch to print the start and end time
It will be used to cut the CTF traces to take only the computation part
in cosideration.
2021-03-12 12:11:24 +01:00

14 lines
476 B
Diff

diff --git a/src/mpi/main.c b/src/mpi/main.c
index 44f4a99..08a1f5c 100644
--- a/src/mpi/main.c
+++ b/src/mpi/main.c
@@ -83,6 +83,8 @@ int main(int argc, char **argv)
conf.rows, conf.cols, conf.rows/nranks, totalElements, totalElements/nranks,
conf.rbs, conf.cbs, nranks, threads, conf.timesteps, end-start, throughput);
printf("time %e\n", end - start);
+ printf("start_time %.9f\n", start);
+ printf("end_time %.9f\n", end);
}
if (conf.generateImage) {