Commit 8972d96c authored by BRAMAS Berenger's avatar BRAMAS Berenger

Start loop for consecutive spec from 0 even it is useless (but it was not...

Start loop for consecutive spec from 0 even it is useless (but it was not working some, it shows that the bug does not appear anymore)
parent 0526879e
......@@ -482,7 +482,7 @@ int main(){
}
}
if(runSpec){
for(int idxConsecutiveSpec = 1 ; idxConsecutiveSpec < MaxidxConsecutiveSpec ; ++idxConsecutiveSpec){
for(int idxConsecutiveSpec = 0 ; idxConsecutiveSpec < MaxidxConsecutiveSpec ; ++idxConsecutiveSpec){
SpRuntime runtime(NumThreads);
runtime.setSpeculationTest([](const int /*inNbReadyTasks*/, const SpProbability& /*inProbability*/) -> bool{
......@@ -826,7 +826,7 @@ int main(){
std::cout << "task = " << timerTask.getElapsed() << std::endl;
std::cout << "spec = " << timerSpec.getElapsed() << std::endl;
std::cout << "spec-reject = " << timerSpecAllReject.getElapsed() << std::endl;
for(int idxConsecutiveSpec = 1 ; idxConsecutiveSpec < MaxidxConsecutiveSpec ; ++idxConsecutiveSpec){
for(int idxConsecutiveSpec = 0 ; idxConsecutiveSpec < MaxidxConsecutiveSpec ; ++idxConsecutiveSpec){
std::cout << "spec-max-" << idxConsecutiveSpec << " = " << timerSpecNoCons[idxConsecutiveSpec].getElapsed() << std::endl;
}
......
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