Re: Suggestion needed on test failures due to double arithmetics

2021-11-25 Thread Andrey Rahmatullin
On Thu, Nov 25, 2021 at 01:45:49PM +0100, Giulio Paci wrote: > Moreover I am still wondering if the compiler behavior is correct in this > case and why it is so unstable. It's correct when you don't care about the amount of precision, and it's unstable for the reasons described in gcc(1) for the

Re: Suggestion needed on test failures due to double arithmetics

2021-11-25 Thread Giulio Paci
Il gio 25 nov 2021, 13:21 Andrey Rahmatullin ha scritto: > On Thu, Nov 25, 2021 at 01:13:20PM +0100, Giulio Paci wrote: > > The double values refer to timing information. The specific format, > > known as CTM, stores information in seconds in decimals (e.g. "30.66" > > seconds) from the

Re: Suggestion needed on test failures due to double arithmetics

2021-11-25 Thread Giulio Paci
Hi Paul, On Thu, Nov 25, 2021 at 3:24 AM Paul Wise wrote: > Giulio Paci wrote: > > > 3) what is the most appropriate solution. > > As I understand it, floating point values should not be compared > without some kind of accuracy/precision factor. Zero idea about the > best reference for how to do

Re: Suggestion needed on test failures due to double arithmetics

2021-11-25 Thread Andrey Rahmatullin
On Thu, Nov 25, 2021 at 01:13:20PM +0100, Giulio Paci wrote: > The double values refer to timing information. The specific format, > known as CTM, stores information in seconds in decimals (e.g. "30.66" > seconds) from the beginning of the stream. > The failing tool reads this information into

Re: Suggestion needed on test failures due to double arithmetics

2021-11-25 Thread Giulio Paci
On Thu, Nov 25, 2021 at 8:54 AM Andrey Rahmatullin wrote: > > On Wed, Nov 24, 2021 at 06:38:07PM +0100, Giulio Paci wrote: > > Dear mentors, > > while updating SCTK package I enabled the execution of the test suite > > which was previously disabled. The tests are working fine on x86_64 > >

Re: Suggestion needed on test failures due to double arithmetics

2021-11-24 Thread Andrey Rahmatullin
On Wed, Nov 24, 2021 at 06:38:07PM +0100, Giulio Paci wrote: > Dear mentors, > while updating SCTK package I enabled the execution of the test suite > which was previously disabled. The tests are working fine on x86_64 > architecture, but a couple of them are failing on i386. > After

Re: Suggestion needed on test failures due to double arithmetics

2021-11-24 Thread Paul Wise
Giulio Paci wrote: > 3) what is the most appropriate solution. As I understand it, floating point values should not be compared without some kind of accuracy/precision factor. Zero idea about the best reference for how to do it correctly, but here is a random one:

Suggestion needed on test failures due to double arithmetics

2021-11-24 Thread Giulio Paci
Dear mentors, while updating SCTK package I enabled the execution of the test suite which was previously disabled. The tests are working fine on x86_64 architecture, but a couple of them are failing on i386. After investigation [1] I found out that tests are failing because they rely on the