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 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today