Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fpe compiling option on mac M1

EdieM
Beginner
420 Views

Dear all, I have compiled a simple program given in the following webpage to test the fpe compiling option on my mac M1:

http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/fc/10.0.026/doc/main_for/mergedProjects/fpops_for/fortran/fpops_fpew_f.htm

 

Using ifort fpe.f90 -fpe0 -fp-model strict -g the output is 

Underflow:  0.1E-29 * 0.1E-09 =   0.1E-39

    Overflow:  0.1E+31 * 0.1E+31 =  Infinity

Div-by-zero: -0.1E+31 / 0.0E+00 = -Infinity

     Invalid:  0.0E+00 / 0.0E+00 =       NaN

 

So apparently the option does not work. The same code compiled in the same way on my Linux machine gives the expected results. 

I would like to know the reason of this behavior.

Thanks in advance

    Regards

       Edie

0 Kudos
1 Reply
Barbara_P_Intel
Employee
380 Views

I wonder if that's because ifort on macOS is only supported for Intel processors. See the macOS note in the Fortran System Requirements article.

 

0 Kudos
Reply