Commit 81d0709e authored by Antoine Jego's avatar Antoine Jego
Browse files

fix warmup

parent 34dbc460
......@@ -487,6 +487,7 @@ int main(int argc, char *argv[])
arguments.prune_handles = 0;
arguments.context = 0;
arguments.delay = 0;
arguments.warmup = 1;
argp_parse(&argp, argc, argv, 0, 0, &arguments);
M = arguments.m;
......@@ -507,6 +508,7 @@ int main(int argc, char *argv[])
prune_handles = arguments.prune_handles;
context = arguments.context;
delay = arguments.delay;
warmup = arguments.warmup;
/* Initializes StarPU and the StarPU-MPI layer */
starpu_fxt_autostart_profiling(0);
......@@ -657,7 +659,7 @@ int main(int argc, char *argv[])
barrier_ret = starpu_mpi_barrier(MPI_COMM_WORLD);
stop = starpu_timing_now();
double timing = stop - start;
if (comm_rank==0 && (!warmup || trial > 1)) printf("RANK %d -> took %f s | %f Gflop/s\n", comm_rank, timing/1000/1000, 2.0*M*N*K/(timing*1000));
if (comm_rank==0 && (!warmup || trial > 0)) printf("RANK %d -> took %f s | %f Gflop/s\n", comm_rank, timing/1000/1000, 2.0*M*N*K/(timing*1000));
if (check) {
Matrix* Acheck, *Bcheck, *Ccheck;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment