Commit 3c2043e4 authored by Berenger Bramas's avatar Berenger Bramas

Update exp -- add volatile to ensure exp to be computed in scalar

parent 585b4a86
......@@ -314,6 +314,9 @@ void compareExpTime(const size_t NbOverLoop, const size_t NbExp){
timer.stop();
std::cout << "Scalar for " << NbExp * NbOverLoop
<< " exp took " << timer.getElapsed() << "s (" << timer.getElapsed()/double(NbExp * NbOverLoop) << "s per exp)\n";
// Ensure that optimization compute for real
volatile RealType tmp;
tmp = resScalar[0];
}
std::cout << "\n";
/////////////////////////////////////////////////////////////
......
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