C++ binomial tree float versus double preformance

  • Thread starter Thread starter maciej
  • Start date Start date
Joined
2/23/09
Messages
11
Points
11
Hey guys, I'm implementing a binomial tree version in C++ to benchmark versus CUDA and I found an interesting issue: changing the CPU code to use doubles(64 bit) for everything instead of float(32 bit) actually increases performance of the CPU code significantly (~3.5x faster.) Anyone know whats going on here, I always assumed floats were faster than doubles???

Also the cpu is a 64 bit processor and the speed improvement occurred when compiled in both MS express edition and g++.
 
your system could be converting floats to doubles to do the underlying operations.
 
It is probably hardware dependent. Which GPU are you using ?
 
Back
Top Bottom