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:
parent
56c625bfe4
commit
972be56eed
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
||||
ref = gitBranch;
|
||||
};
|
||||
|
||||
patches = [ ./print-times.patch ];
|
||||
|
||||
buildInputs = [
|
||||
mpi
|
||||
mcxx
|
||||
|
13
garlic/apps/heat/print-times.patch
Normal file
13
garlic/apps/heat/print-times.patch
Normal 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) {
|
Loading…
Reference in New Issue
Block a user