Closed antoine-morvan closed 2 weeks ago
Thanks for this Antoine - I'll take a look next week.
Well done for spotting that bug @antoine-morvan. The way we were previously calculating the median was pretty dumb. The branch above should resolve this issue.
Hello,
I was investigating some segfault when ectrans is built Intel ifort, without the
-heap-arrays 32
flags. After building both fiat & ectrans in debug mode, the benchmark utility crashes with the following error :This indicates that some accesses are made out of array boundaries.
To reproduce, simply give
-DCMAKE_BUILD_TYPE=Debug
to the CMake of fiat and ectrans. With an Intel suite, this leads to the following flags being used :Note the
-check all
on the fortran line : https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-2/check.htmlAnd the command line to start the benchmark to reproduce the error above :
Some earlier experiments, before adding the check flags, did show backtraces originating from other places, so I suscpect the one I report above is not the only one.
I tested this with
Best.