bugGNU Scientific Library - Bugs: bug #39152, make check errors with Intel icc...

 
 

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

bug #39152: make check errors with Intel icc 13.0.1

Submitter:  Patrick Alken <psa>
Submitted:  Mon 03 Jun 2013 03:26:28 PM UTC
   
 
Category:  Accuracy problem Severity:  3 - Normal
Operating System:  Status:  None
Assigned to:  None Open/Closed:  Open
Release: 

Wed 05 Jun 2013 09:21:51 PM UTC, comment #4: 

I made a new bug report (39171) to track the -ffast-math issue. For this report I think the main thing is to get make check working out of the box on intel compilers.

I like the idea of adding some autoconf code to add in -fp-model precise when icc is detected, though older icc's don't have this flag.

Patrick Alken <psa>
Group administrator
Wed 05 Jun 2013 10:36:21 AM UTC, comment #3: 

Do you think a good approach would be to (a) determine exactly which Intel optimizations are problematic and to disable them or to (b) isolate the files for which GCC's -ffast-math causes problems, resolve those first, and revisit this?

Rhys Ulerich <rhysu>
Group administrator
Mon 03 Jun 2013 04:43:38 PM UTC, comment #2: 

Intel icc turns on unsafe floating point optimizations by default, where gcc does not (gcc must specify -ffast-math for these). Compiling GSL with gcc -ffast-math produces many similar errors as seen by the icc logs below. To turn off unsafe optimizations in icc use -fp-model precise:

make CFLAGS="-fp-model precise -g -O2"
make CFLAGS="-fp-model double -g -O2"

Both of these pass all tests

Patrick Alken <psa>
Group administrator
Mon 03 Jun 2013 03:37:05 PM UTC, comment #1: 

make CFLAGS="-O0" check passes all tests

The default flags -g -O2 fail

Patrick Alken <psa>
Group administrator
Mon 03 Jun 2013 03:26:28 PM UTC, original submission:  

see attached log

Patrick Alken <psa>
Group administrator

 

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

Attached Files
file #28239:  test-suite_sf.log added by psa (15KiB - text/x-log)
file #28240:  test-suite_ode2.log added by psa (2KiB - text/x-log)
file #28241:  test-suite_poly.log added by psa (639B - text/x-log)
file #28242:  test-suite_multiroots.log added by psa (336B - text/x-log)
file #28238:  test-suite.log added by psa (46KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-03 psa Attached File- Added test-suite_sf.log, #28239
        Attached File- Added test-suite_ode2.log, #28240
        Attached File- Added test-suite_poly.log, #28241
        Attached File- Added test-suite_multiroots.log, #28242
    2013-06-03 psa Attached File- Added test-suite.log, #28238

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code