Displaying 2 results from an estimated 2 matches for "reltolerance".
2016 Oct 14
3
[test-suite] making polybench/symm succeed with "-Ofast" and "-ffp-contract=on"
...see if these are inside the absolute tolerance
if (AbsTolerance < fabs(V1-V2)) {
// Nope, check the relative tolerance...
double Diff;
if (V2)
Diff = fabs(V1/V2 - 1.0);
else if (V1)
Diff = fabs(V2/V1 - 1.0);
else
Diff = 0; // Both zero.
if (Diff > RelTolerance) {
fprintf(stderr, ("%s: Compared: %e and %e\n"
"abs. diff = %e rel.diff = %e\n"
"Out of tolerance: rel/abs: %e/%e\n"),
g_program, V1, V2, fabs(V1-V2), Diff, RelTolerance, AbsTolerance);
return tru...
2016 Oct 14
2
[test-suite] making polybench/symm succeed with "-Ofast" and "-ffp-contract=on"
On 14 October 2016 at 15:50, Sebastian Pop <sebpop.llvm at gmail.com> wrote:
> These 3 tests are passing with the following configurations:
> -O3 -ffp-contract=off
> -O3 -ffp-contract=on
> -O0 -ffp-contract=off
> -O0 -ffp-contract=on
>
> They are not passing at:
> -Ofast -ffp-contract=on
> -Ofast -ffp-contract=off
Let's separate completely FP-contract and