Page MenuHome

Cycles: Fix failing avxf cross test on AVX2
ClosedPublic

Authored by Ray Molenkamp (LazyDodo) on Feb 18 2020, 4:29 AM.

Details

Summary

cycles_util_avxf_avx2_test was failing on the cross test, since
it wasn't immediately clear why, the test was disabled.

After looking into it, this test when build for AVX2 is
generating FMA instructions where the intermediate results
have "infinite" precision [1] leading to slightly different
results,

This diff re-enables the cross test and allows for a small error
in the results.

[1] https://www.felixcloutier.com/x86/vfmadd132ps:vfmadd213ps:vfmadd231ps

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) added inline comments.
intern/cycles/test/util_avxf_test.h
49

Missing space after comma, need to run clang-format?

This revision is now accepted and ready to land.Feb 18 2020, 9:12 AM