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

Submitted by:  Patrick Alken <psa>
Submitted on:  Mon 18 Aug 2014 06:19:04 PM UTC  
 
Category: Runtime errorSeverity: 3 - Normal
Operating System: Status: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: 

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

fixed in commit bbfe1be1458b43709a5fc9b36766ad3ae577e02c

Patrick Alken <psa>
Project 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>
Project 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>
Project 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>
Project Administrator

 

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Aug 2016 02:49:51 PM UTCpsaStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 17 Sep 2014 10:11:03 PM UTCpsaAttached File-=>Added 0001-Sort-eigenvalues-by-real-then-imaginary-part.patch, #32124

    Back to the top


    Powered by Savane 3.1-cleanup1