Open GoogleCodeExporter opened 9 years ago
I have confirmed that by using the same random number generator, the
discrepancies are eliminated.
Original comment by jeffrey....@gmail.com
on 11 Jun 2012 at 9:34
[deleted comment]
Jeff,
Are you talking about a random number generator in ABC or VPR? VPR already
includes its own random number generator and doesn't call the C library one.
Over the years I've found many reasons why output differs on different
platforms, mostly due to different operation ordering leading to slightly
different floating point roundoff, and related floating point library round-off
differences etc. So in VPR at least, getting a guaranteed same result on
different platforms is not easy. Random numbers won't be a problem there, but
the rest of the code will be.
Vaughn
Original comment by vaughnb...@gmail.com
on 27 Jun 2012 at 7:46
Yes, I suppose that due to floating point it may be very difficult to make VPR
produce the same results on different platforms.
I'm not sure if we should bother doing anything at this point.
However, a few things to consider:
- ABC does not have an internal RNG. Possibly be adding one we could at least provide VPR with equivalent circuits across platforms. This would eliminate inconsistencies such as different # of CLBs. (Does this even matter?)
- VPR's integer RNG uses floating-point. In my testing it behaved differently with 32-bit vs 64-bit systems. However, changing the RNG to use double instead of float corrected this.
Original comment by jeffrey....@gmail.com
on 27 Jun 2012 at 10:34
Original issue reported on code.google.com by
jeffrey....@gmail.com
on 8 Jun 2012 at 10:26