Changed simd-7 test for C and Fortran to lower the execution time to ~0.6 and ~1 second respectively while keeping the test representative. Measured the time like:
$ time make check-target-libgomp RUNTESTFLAGS="c.exp"=simd-7.c on a Linux x86-64 machine. (Without the patch I also had a very long time: ~7.5 and ~60 seconds) 2015-07-20 22:40 GMT+03:00 H.J. Lu <hjl.to...@gmail.com>: > On Tue, Jul 14, 2015 at 11:04 AM, Jakub Jelinek <ja...@redhat.com> wrote: >> On Tue, Jul 14, 2015 at 08:40:50PM +0300, Maxim Blumental wrote: >>> The patch replaces all FP comparisons with inequalities and epsilons >>> in those tests for libgomp. >> > > libgomp.fortran/examples-4/simd-7.f90 takes a very long time to > run on Linux/ia32. I get random: > > FAIL: libgomp.fortran/examples-4/simd-7.f90 -O0 execution test > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66950 > > > -- > H.J. -- --------------------- Sincerely yours, Maxim Blumental
2015-07-22 Maxim Blumenthal <maxim.blument...@intel.com> PR libgomp/66950 * testsuite/libgomp.c/examples-4/simd-7.c: Lower the defined constant N to 30. Add iterative reference function for Fibonacci numbers - fib_ref. (fib): Correct corner cases in the recursion. (main): Replace the non-simd loop with fib_ref call. * testsuite/libgomp.fortran/examples-4/simd-7.f90: Add iterative reference subroutine for Fibonacci numbers - fib_ref. (fibonacci): Lower the parameter N to 30. Correct accordingly check for the last array element value. Replace the non-simd loop with fib_ref call. Remove redundant b_ref array. Remove the comparison of the last array element with according Fibbonacci sequence element. (fib): Correct corner cases in the recursion.
fib_fix.patch
Description: Binary data