bugGNU Scientific Library - Bugs: bug #43015, eigen test fails on 32-bit (x86)...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43015: eigen test fails on 32-bit (x86) Linux with -O3

Submitter:  Patrick Alken <psa>
Submitted:  Mon 18 Aug 2014 06:19:04 PM UTC
   
 
Category:  Runtime error Severity:  3 - Normal
Operating System:  Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release: 

Fri 12 Aug 2016 02:49:51 PM UTC, comment #3: 

fixed in commit bbfe1be1458b43709a5fc9b36766ad3ae577e02c

Patrick Alken <psa>
Group administrator
Wed 17 Sep 2014 10:11:51 PM UTC, comment #2: 

Patch provided on help-gsl list:

Thanks for quick responses guys.

Patrick, please find attached the patch that implements your suggestion which does fix the test failures. I've reused GSL_EIGEN_SORT_VAL_{ASC,DESC}, that were previously unused for complex numbers, for the new type of comparison.

Victor

Patrick Alken <psa>
Group administrator
Mon 18 Aug 2014 06:20:41 PM UTC, comment #1: 

The problem is most likely due to these lines of eigen/test.c:

1270   gsl_eigen_nonsymmv_sort(w->eval, NULL, GSL_EIGEN_SORT_ABS_ASC);
1271   gsl_eigen_nonsymmv_sort(w->evalv, NULL, GSL_EIGEN_SORT_ABS_ASC);
1272   test_eigenvalues_complex(w->evalv, w->eval, "gen", desc);

With the extra optimization, the magnitudes of the eigenvalues could be slightly different leading to a different sort result. Perhaps the solution is to sort first by real part, then by imaginary part

Patrick Alken <psa>
Group administrator
Mon 18 Aug 2014 06:19:04 PM UTC, original submission:  

From victor.zverovich =at= gmail.com

Hello,

I noticed that eigen test fails on 32-bit Linux (x86) when compiled with -O3 flag:

$ ./configure CFLAGS="-O3"
$ make
$ eigen/test
FAIL: gen, direct eigenvalue(4) imag, random (-0.481216772353650846
observed vs 0.481216772353650846 expected) [877968]
FAIL: gen, direct eigenvalue(5) imag, random (0.481216772353650901 observed
vs -0.481216772353650846 expected) [877970]
FAIL: gen, direct eigenvalue(15) imag, random (6.85872455924790447 observed
vs -6.85872455924790536 expected) [877990]
FAIL: gen, direct eigenvalue(16) imag, random (-6.85872455924790536
observed vs 6.85872455924790625 expected) [877992]

I'm using GSL version 1.16, 32-bit Ubuntu 10.04 and GCC 4.4.3.

Best regards,
Victor

Patrick Alken <psa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psa (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-12 psa StatusNone Fixed
        Open/ClosedOpen Closed
    2014-09-17 psa Attached File- Added 0001-Sort-eigenvalues-by-real-then-imaginary-part.patch, #32124

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code