[PATCH] D25346: [test-suite] [Polybench] run tests twice with -ffp-contract=on/off
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 02:25:07 PDT 2016
rengolin added a comment.
> What I mean by bisimulation is that we would copy the kernel()
> function of each polybench/test.c and name it kernelNoFP() and add
> flag attributes "-fno-fast-math -ffp-contract=off" (can be split
> compilation if flag attributes do not work.)
> main() will call kernel() and kernelNoFP() and compare their output
> with FP_TOLERANCE.
> Only the execution of kernel() will be timed for benchmark performance result.
> main() will only print the output from kernelNoFP() that will be
> hashed and compared against the reference hash (as we currently expect
> exact match of the output hash.)
So, the end result is that we'll *test* what we don't ship and we'll *benchmark* what we don't test.
Meaning we'll have green bots and fast benchmarks, but we'll have no idea if the "fast" is correct of if the correct is fast.
--renato
https://reviews.llvm.org/D25346
More information about the llvm-commits
mailing list