<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: invalid floating point operation in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861967#M69397</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;The array temporary message is just a performance warning.&lt;BR /&gt;&lt;BR /&gt;I suggest adding the option Fortran &amp;gt; Floating Point &amp;gt; Check Floating Point Stack &amp;gt; Yes.&lt;BR /&gt;&lt;BR /&gt;If you get an access violation when running with this on, this will indicate that the floating point stack has become corrupted.&lt;BR /&gt;&lt;BR /&gt;I also notice that the option "Generate Interface Blocks is NOT enabled. You should turn that on and rebuild.&lt;BR /&gt;&lt;BR /&gt;It would really help if we could see a complete test case.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Actually I am trying to preapare a test case, but it is really difficult to catch the error when I do not use all the project files as a whole.&lt;BR /&gt;&lt;BR /&gt;I added the "check floating point stack" option and ran again, however I did not receive any errors. Does this mean we can be sure that the problem is not originating from floating point stack corruption ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I enable "Generate Interface Blocks" option, I really get a lot of compilation errors stating that actual argument and expected parameter types do not match. Some of these violations are &lt;BR /&gt;&lt;BR /&gt;REAL(4) --&amp;gt; REAL(8)&lt;BR /&gt;REAL(8) --&amp;gt; REAL(4)&lt;BR /&gt;INTEGER(2) --&amp;gt; INTEGER(4)&lt;BR /&gt;INTEGER(4) --&amp;gt; INTEGER(2)&lt;BR /&gt;&lt;BR /&gt;As far as I know, the compiler will handle the situations where a smaller size is assigned to a larger sizevariable. Is this also the case in the opposite direction ? If not, the compiler is pushing the passed parameters asis ? If so,&lt;BR /&gt;why do not we getting an error when "Check Floating Point Stack"option is on ?</description>
    <pubDate>Thu, 22 Jan 2009 18:58:38 GMT</pubDate>
    <dc:creator>ylmz</dc:creator>
    <dc:date>2009-01-22T18:58:38Z</dc:date>
    <item>
      <title>invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861939#M69369</link>
      <description>Hi all;&lt;BR /&gt;&lt;BR /&gt;I am getting an invalid floating point operation error in release mode, which is not the case in the debug mode.I do not think thatthis is because of project setting differences between these two modes, since I already tried almost every combination.&lt;BR /&gt;&lt;BR /&gt;The most interesting point is, I get the same error also in debug mode with "debug information format = line numbers only".&lt;BR /&gt;I get the error in the following line:&lt;BR /&gt;&lt;BR /&gt;if (x .gt.0 .and. y .gt. 0) then&lt;BR /&gt; check=.not. ((REAL(t)/x .le. p/y).and.(REAL(t)/x .lt. 2))&lt;BR /&gt;else&lt;BR /&gt; check = .true.&lt;BR /&gt;&lt;BR /&gt;However, unfortunately,I cannot see the current values of these variables since debug information format is &lt;BR /&gt;"line numbers only".&lt;BR /&gt;&lt;BR /&gt;When I put a write statement in front of the lines above, the problem interestingly disappears.&lt;BR /&gt;&lt;BR /&gt;What may be the problem ? Someting about compiler optimization or floating point stack ?</description>
      <pubDate>Wed, 21 Jan 2009 14:16:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861939#M69369</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-21T14:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861940#M69370</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/412492"&gt;ylmz&lt;/A&gt;&lt;EM&gt;&lt;BR /&gt;if (x .gt.0 .and. y .gt. 0) then&lt;BR /&gt; check=.not. ((REAL(t)/x .le. p/y).and.(REAL(t)/x .lt. 2))&lt;BR /&gt;else&lt;BR /&gt; check = .true.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It does look like the compiler may be setting up to execute the division unconditionally. Did you set /fp:precise ?&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 15:12:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861940#M69370</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-01-21T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861941#M69371</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Try making a logical function out of the if/then/else/endif block passing in x, y, p (use conditional compilation so you can easily switch back and forth).&lt;BR /&gt;&lt;BR /&gt;If the problem goes away then the compiler optimization might be at fault. See if you can construct a simple test case and submit it to premier support.&lt;BR /&gt;&lt;BR /&gt;Also try&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;if (x .gt.0 .and. y .gt. 0) then&lt;BR /&gt; tOVERx = REAL(t)/x&lt;BR /&gt; check=.not.(tOVERx .le. p/y).and.(tOVERx .lt. 2.0))&lt;BR /&gt;else&lt;BR /&gt; check = .true.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Note the 2.0&lt;BR /&gt;&lt;BR /&gt;Also,what type are x, y, t and p?&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 15:15:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861941#M69371</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-01-21T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861942#M69372</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;It does look like the compiler may be setting up to execute the division unconditionally. Did you set /fp:precise ?&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Tim;&lt;BR /&gt;&lt;BR /&gt;Now I tried what you said, but it says:&lt;BR /&gt;&lt;BR /&gt;"ifort: command line error: use of '/fp:&lt;ARG&gt;' option along with a floating point precision option not supported"&lt;BR /&gt;&lt;BR /&gt;what should i do ?&lt;/ARG&gt;</description>
      <pubDate>Wed, 21 Jan 2009 15:43:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861942#M69372</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-21T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861943#M69373</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hi Jim;&lt;BR /&gt;&lt;BR /&gt;x is INTEGER(2)&lt;BR /&gt;y is REAL(4)&lt;BR /&gt;t is INTEGER(2)&lt;BR /&gt;p is REAL(4)</description>
      <pubDate>Wed, 21 Jan 2009 15:49:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861943#M69373</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-21T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861944#M69374</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/412492"&gt;ylmz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;"ifort: command line error: use of '/fp:&lt;ARG&gt;' option along with a floating point precision option not supported"&lt;BR /&gt;&lt;BR /&gt;what should i do ?&lt;/ARG&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Please show us the command line you are using to compile.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:24:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861944#M69374</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-21T16:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861945#M69375</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Please show us the command line you are using to compile.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;The following command line is for Visual Fortran compiler:&lt;BR /&gt;&lt;BR /&gt;/nologo /Oy- /Qparallel /assume:buffered_io /include:".Release2/" /DRELEASE_EXTERNAL /DNDEBUG /DDEBUG_CPU /DCOMPILER_IS_IVF /assume:nocc_omp /extend_source:132 /fpscomp:ioformat /fpscomp:logicals /warn:errors /stand:f90 /warn:declarations /warn:unused /warn:truncated_source /warn:interfaces /Qsave /align:commons /align:sequence /Qzero /fpe:0 /names:as_is /iface:cvf /module:".Release2ForLib/" /object:".Release2ForLib/" /traceback /check:format /check:output_conversion /libs:dll /threads /c&lt;BR /&gt;&lt;BR /&gt;and the following is for C++:&lt;BR /&gt;&lt;BR /&gt;/Ob2 /Oi /Ot /Oy /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "FATES2000" /D "_VC80_UPGRADE=0x0710" /D "_AFXDLL" /D "_MBCS" /GF /FD /EHsc /MD /Zp4 /Gy /Yu"stdafx.h" /Fp"Release2Fates.pch" /Fo"Release2" /Fd"Release2vc90.pdb" /W4 /nologo /c /Wp64 /TP /wd4290 /errorReport:prompt&lt;BR /&gt;&lt;BR /&gt;By the way, I do not believe that there are any unexpected numbers such as (0 / 0) in the lines of code that I gave before.</description>
      <pubDate>Wed, 21 Jan 2009 16:29:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861945#M69375</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-21T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861946#M69376</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I forgot to say that I'm making calls from a C++ project to a fortran function through a .lib file in MS Visual Studio 2008 environment. I'm using Intel's Visual Fortran compiler.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861946#M69376</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-21T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861947#M69377</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
We very recently hit a similar problem, though I wouldn't expect it to happen without at least some optimization turned on. Is the code shown inside a loop?&lt;BR /&gt;&lt;BR /&gt;There is a mismatch between the C++ and FORTRAN expectations as to whether or not FP exceptions are enabled. It gets worse when you are writing FORTRAN libraries than can be called with either setting. We used the "safe" setting for fp speculation to get around it.&lt;BR /&gt;&lt;BR /&gt;The code in our case was a tight loop doing conditional assignment with an explicit division in the RHS, conditional on the divisor being not-too-close-to-zero. This was being compiled as an SSE2 vector sequence using and/or masking logic to overwrite the result of the division with the "else" case value (a simple array lookup) in the register before writing the result back to the array. Nice pretty branch-free vector code but not semantically equivalent to the source when FP exceptions are enabled.&lt;BR /&gt;&lt;BR /&gt;That's probably what you're seeing but why it's dependent on the type of DB info generated is puzzling. Perhaps the setting to choose that DB format is equivalen to no debugging in terms of the resultant optimizer settings?&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 17:54:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861947#M69377</guid>
      <dc:creator>Steve_Nuchia</dc:creator>
      <dc:date>2009-01-21T17:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861948#M69378</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/412492"&gt;ylmz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The following command line is for Visual Fortran compiler:&lt;BR /&gt;&lt;BR /&gt;/nologo /Oy- /Qparallel /assume:buffered_io /include:".Release2/" /DRELEASE_EXTERNAL /DNDEBUG /DDEBUG_CPU /DCOMPILER_IS_IVF /assume:nocc_omp /extend_source:132 /fpscomp:ioformat /fpscomp:logicals /warn:errors /stand:f90 /warn:declarations /warn:unused /warn:truncated_source /warn:interfaces /Qsave /align:commons /align:sequence /Qzero /fpe:0 /names:as_is /iface:cvf /module:".Release2ForLib/" /object:".Release2ForLib/" /traceback /check:format /check:output_conversion /libs:dll /threads /c&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Wow - that's a lot of options for Fortran. Do you know what all of them do?&lt;BR /&gt;&lt;BR /&gt;Unless you know you have a need for these, reset to the defaults these: /fpe:0, /Qsave, /Qzero, /fpscomp:ioformat, /fpscomp:logicals, /iface:cvf&lt;BR /&gt;&lt;BR /&gt;I VERY strongly recommend against using /names:as_is. That has no bearing on the problem at hand, but why is it there?&lt;BR /&gt;&lt;BR /&gt;What does your declaration of the Fortran routine on the C++ side look like? I'm going to guess that you're corrupting the stack because of a C-STDCALL mismatch. Removing /iface:cvf could be a test of that.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 18:51:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861948#M69378</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-21T18:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861949#M69379</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
The IEEE_HANDLER can catch an Invalid Operation if the IEEE_FLAG has been set. Shouldn't Traceback kick in and identify the module and other gory details in which the exception is flagged?, it not always being where you think is.&lt;BR /&gt;&lt;BR /&gt;Gerry&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 19:25:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861949#M69379</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2009-01-21T19:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861950#M69380</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/412492"&gt;ylmz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi Jim;&lt;BR /&gt;&lt;BR /&gt;x is INTEGER(2)&lt;BR /&gt;y is REAL(4)&lt;BR /&gt;t is INTEGER(2)&lt;BR /&gt;p is REAL(4)&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;You might find this faster:&lt;BR /&gt;
&lt;PRE&gt;[cpp]check = .true. 
if (x .gt. 0 .and. y .gt. 0.0_4) then
   if(t/x .lt. 2) then
     check =((REAL(t)/REAL(x) .gt. p/y)
   endif
endif

------------------------------------[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 20:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861950#M69380</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-01-21T20:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861951#M69381</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Oops I ment&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]check = .true. 
if (x .gt. 0) then
   if(y .gt. 0.0_4) then
     if(t/x .lt. 2) then
       check =((REAL(t)/REAL(x) .gt. p/y)
     endif
   endif
endif
[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;Fortran evaluates all terms of the (expr .and. expr) as opposed to C/C++ breaking out in the middle of the evaluation.&lt;BR /&gt;&lt;BR /&gt;The above code reduces the number of tests and conversions from integer to real&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 20:50:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861951#M69381</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-01-21T20:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861952#M69382</link>
      <description>&lt;DIV style="margin:0px;"&gt;Steve;&lt;BR /&gt;&lt;BR /&gt;Yes, indeed this line is executed inside a large loop. But what is the effect of a loop in this situation ?&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2009 08:45:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861952#M69382</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T08:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861953#M69383</link>
      <description>&lt;BR /&gt;Hi Steve;&lt;BR /&gt;&lt;BR /&gt;The function declaration is as follows:&lt;BR /&gt;&lt;BR /&gt;bool __stdcall fortranCall(long *p_res);&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2009 08:54:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861953#M69383</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861954#M69384</link>
      <description>Gerry;&lt;BR /&gt;&lt;BR /&gt;Actually wedisabled the associated exception bit in the control register and &lt;BR /&gt;traced the problem ourselves by checking the status register after almost&lt;BR /&gt;every block. We detected the problemat the same place. But the most interesting pointis,&lt;BR /&gt;when we put an additional line of code just above to the line where we are getting the error,&lt;BR /&gt;the problem disappears. &lt;BR /&gt;( this additional line may be even completely irrelevant,&lt;BR /&gt; for example: write (1, *) 'zzz' )&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2009 09:07:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861954#M69384</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T09:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861955#M69385</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/412492"&gt;ylmz&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Gerry;&lt;BR /&gt;&lt;BR /&gt;Actually wedisabled the associated exception bit in the control register and &lt;BR /&gt;traced the problem ourselves by checking the status register after almost&lt;BR /&gt;every block. We detected the problemat the same place. But the most interesting pointis,&lt;BR /&gt;when we put an additional line of code just above to the line where we are getting the error,&lt;BR /&gt;the problem disappears. &lt;BR /&gt;( this additional line may be even completely irrelevant,&lt;BR /&gt; for example: write (1, *) 'zzz' )&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
That sounds a lot like stack or memory corruption to me.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2009 09:23:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861955#M69385</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2009-01-22T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861956#M69386</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi Jim;&lt;BR /&gt;&lt;BR /&gt;I tried what you proposed. But still I'm getting the error. I guess the error is not specific to this line, because the numbers at that point are even not close to zero. Can it be something related to floating point stack, etc. ?</description>
      <pubDate>Thu, 22 Jan 2009 09:38:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861956#M69386</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861957#M69387</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/311276"&gt;gib&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
That sounds a lot like stack or memory corruption to me.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Gib,&lt;BR /&gt;&lt;BR /&gt;Yes, that is why we rarely get it in the debug mode, I guess.</description>
      <pubDate>Thu, 22 Jan 2009 09:41:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861957#M69387</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: invalid floating point operation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861958#M69388</link>
      <description>I changed some compiler options, and now I geta completely differenterror:&lt;BR /&gt;&lt;BR /&gt;"access violationREADING location 0x..." (and sometimes, "access violation WRITING location 0x...")&lt;BR /&gt;&lt;BR /&gt;Here is the line where it occurs:&lt;BR /&gt;&lt;BR /&gt;stddev_x = MAX(stddev_y, SQRT(stddev_x / MAX(icount, 1_2)))&lt;BR /&gt;&lt;BR /&gt;Now in the code on this line, there is neither an explicit read nor write ata specific memory location.&lt;BR /&gt;&lt;BR /&gt;Doesthe problem occurmaybe because parameters to functions SQRT and MAX cannot be passed correctly ?&lt;BR /&gt;Corrupted stack etc. ?</description>
      <pubDate>Thu, 22 Jan 2009 10:50:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/invalid-floating-point-operation/m-p/861958#M69388</guid>
      <dc:creator>ylmz</dc:creator>
      <dc:date>2009-01-22T10:50:32Z</dc:date>
    </item>
  </channel>
</rss>

