Commit 45dff3b
committed
Set -ffp-contract=off to aid cross-platform bit-reproducability
Currently when running VVenC on Arm machines, the md5sum of the output
video differs from x86 even when specifying `--SIMD=SCALAR`. This is due
to the default `-ffp-contract` setting on GCC and LLVM enabling fused
multiply-add instructions for floating-point arithmetic, which causes
small bit differences due to the lack of intermediate rounding in these
instructions.
Setting `-ffp-contract=off` disables this behaviour, ensuring the md5sum
output for the tested video now matches for `--SIMD=SCALAR`. There are
some remaining differences when other SIMD settings are used on Arm
which will be resolved in a separate PR.1 parent 5c2b2cb commit 45dff3b
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
0 commit comments