Commit 4f0fa185 authored by Luka Stanisic's avatar Luka Stanisic

Adding makespans timers that will work for both Native and SimGrid executions

parent 84904217
......@@ -125,9 +125,13 @@ int main(int argc, char* argv[]){
GroupKernelClass groupkernel(NbLevels, loader.getBoxWidth(), loader.getCenterOfBox(), &MatrixKernel);
GroupAlgorithm groupalgo(&groupedTree,&groupkernel);
// Extended for Native vs SimGrid makespans comparison
timer.tic();
double start_time = starpu_timing_now();
groupalgo.execute();
double end_time = starpu_timing_now();
std::cout << "Kernel executed in in " << timer.tacAndElapsed() << "s\n";
std::cout << (end_time - start_time)/1000 << "\n";
// Validate the result
if(FParameters::existParameter(argc, argv, LocalOptionNoValidate.options) == false){
......
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