centreborelli / ransac

Python wrapper for Enric Meinhardt's imscript RANSAC C implementation
5 stars 3 forks source link

makefile: disable avx512 instructions #5

Closed kidanger closed 3 years ago

kidanger commented 3 years ago

On high-end skylake CPUs, march=native is skylake-avx512 and enables a series of avx512 instructions, changing the behaviour of the algorithm for some reason:

>>> inliers, F = ransac.find_fundamental_matrix(matches)

FAIL("python"): No convergence in 30 SVDCMP iterations

fish: 'python' terminated by signal SIGSEGV (Address boundary error)

This fix disables the avx512 instructions to avoid the issue.