Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

Intel Fortran 15 compiler error -- pointer becomes unassociated when compiling with --check boudnds and -O2

$
0
0

Hello,

My group has found what we think is a bug in the Intel Fortran Compiler version 15.0.0.  I have prepared a test case that compiles and runs properly when using older versions of Intel Fortran (such as version 11 or version 13).  The same test case dies with an error when compiling with Intel version 15.

Long story short: we think that there is a bug in the optimizer which causes a pointer to become disassociated where it should not be.  This error happens when compiling with --check bounds -O2, and -openmp.

I am attaching a tar file with a short Fortran program and Makefile that you can use to reproduce the error.  A detailed README file is also available in the tar file.

Steps to Reproduce:
1.  tar xvf intel_bug_v2.tar
2.  cd intel_bug
3.  Make sure ifort 15 is loaded (e.g. module load ifort/15.0.0 or similar command)
4.  make > test_with_ifort15.log  2>&1

Actual results:
The test case dies with this error:
 ###########################################################
 ### THE FOLLOWING OUTPUT TESTS IF THE LON2 VARIABLE IS
 ### STILL ASSOCIATED WITHIN THE PARALLEL LOOP FOR EACH
 ### ITERATION OF I, J, and M:
 ### I, J, M, Is_Associated?            1           1          -1 F
forrtl: severe (408): fort: (2): Subscript #1 of the array LON2 has value 1 which is greater than the upper bound of -1

Image              PC                Routine            Line        Source             
libifcoremt.so.5   00002B58CD54D8D3  Unknown               Unknown  Unknown
main.x             000000000040237A  main_IP_xmap_r4r4         306  main.F90
libiomp5.so        00002B58CEA2C8A3  Unknown               Unknown  Unknown

Expected results:
The code should get all the way down to this output:

 ### EXITING XMAP_R4R4 SUCCESSFULLY!
 ###########################################
 ### TEST CASE FINISHED WITHOUT ERRORS!  ###
###########################################

You can verify this with the following additional steps
5. make clean
6. Make sure Intel Fortran Compiler 13 is loaded (e.g. module load intel/13.0.0.079 or similar command)
7.  make > test_with_ifort13.log 2>&1

The test case works with Intel Fortran Compiler versions 11 and 13, but not version 15.

Additional info:
See the README file in the intel_bug_v2.tar distribution

Can you recommend a solution for us?  Or is there a later version of the Intel Fortran Compiler which does not have this problem?

Thank you for your assistance,

Bob Yantosca
yantosca@seas.harvard.edu

AttachmentSize
Downloadintel_bug_v2.tar80 KB

Viewing all articles
Browse latest Browse all 2746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>