[mesa-users] update on mesa platform dependency bugs

Bill Paxton paxton at kitp.ucsb.edu
Mon Nov 25 12:35:12 EST 2013


On Nov 25, 2013, at 3:13 AM, Stephane Charpinet wrote:

> Dear Bill,
> 
> Some CPUs work internally in 80 bits floating point precision and then
> round the result into 64 bit (standard double precision) while some
> processors don't (they use 64 bit registers). I noticed in the past
> (while porting some codes on different architectures) that this was
> responsible for some slight differences in the results when running
> codes on different platforms and could perhaps be related to the problem
> your are struggling with. There are compiler options that give you some
> control on this I think (like -mpc64 with gcc).
> 
> Just my 2 cents if they can help.
> 
> Cheers
> 
> Stephane


Hi Stephane,

Thanks for the 2 cents (we need every penny!) -- I am now running tests with -mpc64 and -ffloat-store 

But I am still finding cases in mesa of platform dependent results from the math lib.

For the same mesa and mesasdk, on Linux (Ubuntu) and Mac OS X 10.6.8 and 10.8.5,
running the wd_cool_0.6M test case, I find differences starting in the first step.

Here's a case of single precision difference that shows up in the opacities evaluation
(in this case, the Mac's agree but are different than Linux).

Linux (Dean)
     logK0   1.69233751    
 10**logK0   49.2422104    

mac 10.6.8 (Bill)
     logK0   1.69233751    
 10**logK0   49.2422066    

mac 10.8.5 (Ed)
     logK0   1.69233751    
 10**logK0   49.2422066    

double precision value:  49.242207398071720

Previously I reported finding a difference between the two Mac's.

-Bill




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20131125/a48d1ca1/attachment.html>


More information about the Mesa-users mailing list