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.
This commit is contained in:
Rodrigo Arias 2021-03-12 12:11:24 +01:00
parent 56c625bfe4
commit 972be56eed
2 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
ref = gitBranch;
};
patches = [ ./print-times.patch ];
buildInputs = [
mpi
mcxx

View File

@ -0,0 +1,13 @@
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) {