[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 03:18:03 PDT 2016


rengolin added a comment.

In https://reviews.llvm.org/D25346#564230, @sebpop wrote:

> kernel() is compiled with whatever Cflags are specified by the end user of the test-suite.
>  The output of kernel() is matched with FP_TOLERANCE against the output of kernel_Strict_FP().
>  The output of kernel_Strict_FP() is hashed and compared against reference output.


Right, now I get it. So, you basically just duplicated the kernel to force FP=OFF on the second. Then you compare against the *real* timed run for FP_TOLERANCE.

This should work as intended, I imagine, but would that scale to *all* problematic benchmarks? If there are 50 of them, duplicating all the cores may bring more problems than solving...


https://reviews.llvm.org/D25346





More information about the llvm-commits mailing list