floating point inconsistency

Vincent Lefevre vincent+gcc@vinc17.org
Wed Feb 17 14:43:00 GMT 2010


On 2010-02-16 18:24:02 +0100, Christoph Groth wrote:
> It's not broken but I would like the runs to be reproducible, i.e. to
> get exactly (bit by bit) the same results when starting with the same
> parameters and the same random seed on all the platforms I use.

Then you should probably use CRlibm[1] (fast, for double precision)
or MPFR[2] (much slower, because not targeted at a fixed precision).

[1] https://lipforge.ens-lyon.fr/projects/crlibm/
[2] http://www.mpfr.org/

CRlibm is used by the LHC@home project at CERN precisely for this
reason.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



More information about the Gcc-help mailing list