nq-parexp.cpp is too fast

nq-parexp.cpp is too fast

Hello,

I've been wondering why only nq-parexp.cpp, which is one of N-Queens samples, is so fast.
And I found something in code as below:

startTime = dtime();
solve();
endTime = dtime() - startTime;
endTime = endTime / 2.0; <---- ???

I really don't know why the endTime is halved.
It looks like it makes double performance.

Thanks,
Akio

3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Jennifer J. (Intel)

Wow!
Thanks for finding this. I'll create a ticket for it.

Jennifer

This is fixed in the latest update2 package that you can download and test it out, just FYI.

-regards,

Kittur

Connectez-vous pour laisser un commentaire.