Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4f0fa185 authored by Luka Stanisic's avatar Luka Stanisic
Browse files

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

parent 84904217
Branches
Tags
No related merge requests found
...@@ -125,9 +125,13 @@ int main(int argc, char* argv[]){ ...@@ -125,9 +125,13 @@ int main(int argc, char* argv[]){
GroupKernelClass groupkernel(NbLevels, loader.getBoxWidth(), loader.getCenterOfBox(), &MatrixKernel); GroupKernelClass groupkernel(NbLevels, loader.getBoxWidth(), loader.getCenterOfBox(), &MatrixKernel);
GroupAlgorithm groupalgo(&groupedTree,&groupkernel); GroupAlgorithm groupalgo(&groupedTree,&groupkernel);
// Extended for Native vs SimGrid makespans comparison
timer.tic(); timer.tic();
double start_time = starpu_timing_now();
groupalgo.execute(); groupalgo.execute();
double end_time = starpu_timing_now();
std::cout << "Kernel executed in in " << timer.tacAndElapsed() << "s\n"; std::cout << "Kernel executed in in " << timer.tacAndElapsed() << "s\n";
std::cout << (end_time - start_time)/1000 << "\n";
// Validate the result // Validate the result
if(FParameters::existParameter(argc, argv, LocalOptionNoValidate.options) == false){ if(FParameters::existParameter(argc, argv, LocalOptionNoValidate.options) == false){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment