<?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 Capturing exceptions in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781767#M28094</link>
    <description>Excellent. I will try that.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Mar 2011 19:21:43 GMT</pubDate>
    <dc:creator>Reinaldo_Garcia</dc:creator>
    <dc:date>2011-03-17T19:21:43Z</dc:date>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781758#M28085</link>
      <description>&lt;DIV&gt;How can I capture runtime exceptions such as overflows, etc.? I am presently using "Produce Nan, signed infinities, and denormal results" (/fpe:3) and when an exception occurs the program just hangs. I would like it to generate an error message.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have tried /fpe:0 and 1 but the program results are incorrect and different from the ones with /fpe:3.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any suggestions?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;R&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Mar 2011 00:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781758#M28085</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-16T00:09:46Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781759#M28086</link>
      <description>The program "hanging" is not normal for an arithmetic exception. Note that the default is to allow underflows to produce denormals and your program might be trying to "converge" and not doing so. If /fpe:0 gives you different results, then you are very likely doing computations with denormalized values and this loses precision. Since you don't get exceptions, you're not seeing overflows so there's nothing to capture.&lt;BR /&gt;&lt;BR /&gt;The standard way to do what you want is through the IEEE_EXCEPTIONS and IEEE_ARITHMETIC intrinsic modules. You can set the behavior to give an error on an underflow.</description>
      <pubDate>Wed, 16 Mar 2011 13:35:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781759#M28086</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-16T13:35:27Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781760#M28087</link>
      <description>Thanks Steve.&lt;DIV&gt;When I said that the program was "hanging", I wanted to say that the program reported NaNs and became exceedingly slow. I just want it to bang and stop when an overflow occurs. Beside the IEEE modules, is there n equivalent option to /fpe:0 that would abort the program without reducing underflows to 0.0?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;R//G&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Mar 2011 20:13:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781760#M28087</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-16T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781761#M28088</link>
      <description>You could simply test a strategic value (outside any performance-critical loop) by ieee_isnan() so as to take a kill action.</description>
      <pubDate>Wed, 16 Mar 2011 20:58:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781761#M28088</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-03-16T20:58:36Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781762#M28089</link>
      <description>USE, INTRINSIC :: IEEE_EXCEPTIONS&lt;BR /&gt;...&lt;BR /&gt;CALL IEEE_SET_HALTING_MODE(IEEE_OVERFLOW,.TRUE.)&lt;BR /&gt;&lt;BR /&gt;I will comment, though, that if you're getting NaNs, you aren't seeing overflows.</description>
      <pubDate>Thu, 17 Mar 2011 00:01:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781762#M28089</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-17T00:01:37Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781763#M28090</link>
      <description>If I understand well, you are indicating that if my program was generating overflows, it would halt even when using /fpe:3?&lt;BR /&gt;&lt;BR /&gt;Are NaNs generated by Division by 0?&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2011 01:49:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781763#M28090</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-17T01:49:48Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781764#M28091</link>
      <description>Yes, that's what should happen.&lt;BR /&gt;&lt;BR /&gt;That's one way to generate NaNs, but not the only way.</description>
      <pubDate>Thu, 17 Mar 2011 15:48:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781764#M28091</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-17T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781765#M28092</link>
      <description>Thanks Steve.&lt;BR /&gt;&lt;BR /&gt;Is there a compiler option that would forcethe program halt when a NaN occurs in the same way of the Overflows and withouth assinging 0. to the underflows?&lt;BR /&gt;&lt;BR /&gt;R//G</description>
      <pubDate>Thu, 17 Mar 2011 19:08:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781765#M28092</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-17T19:08:09Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781766#M28093</link>
      <description>No, but you can call IEEE_SET_HALTING_MODE(IEEE_INVALID,.TRUE.) in the main program to do that.</description>
      <pubDate>Thu, 17 Mar 2011 19:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781766#M28093</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-17T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781767#M28094</link>
      <description>Excellent. I will try that.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2011 19:21:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781767#M28094</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-17T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781768#M28095</link>
      <description>&amp;gt; Are NaNs generated by Division by 0?&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2011 06:54:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781768#M28095</guid>
      <dc:creator>strohhaecker</dc:creator>
      <dc:date>2011-03-21T06:54:13Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781769#M28096</link>
      <description>Yes, division by zero is one way to generate a NaN.</description>
      <pubDate>Mon, 21 Mar 2011 15:34:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781769#M28096</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-21T15:34:48Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781770#M28097</link>
      <description>Only for the case 0./0,, or possibly cases involving subnormal, as well as (x/0.)*0.</description>
      <pubDate>Mon, 21 Mar 2011 19:49:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781770#M28097</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-03-21T19:49:56Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781771#M28098</link>
      <description>I am not sure. I created the following code:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;B&gt;call&lt;/B&gt; ieee_get_flag (ieee_usual, flag_values)&lt;/P&gt;
&lt;P&gt; &lt;B&gt;if&lt;/B&gt; (any(flag_values)) &lt;B&gt;then&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;  &lt;B&gt;write&lt;/B&gt;(*,*) ' Error code: ', flag_values&lt;/P&gt;
&lt;P&gt;  &lt;B&gt;stop&lt;/B&gt;&lt;/P&gt;
&lt;P&gt; &lt;B&gt;endif&lt;/B&gt;&lt;/P&gt;&lt;P&gt;That outputs: T F T when it captures an error.&lt;/P&gt;&lt;P&gt;I guess that reflects an ieee_invalid, but I am not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R//G&lt;/P&gt;&lt;DIV&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2011 21:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781771#M28098</guid>
      <dc:creator>Reinaldo_Garcia</dc:creator>
      <dc:date>2011-03-21T21:53:00Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781772#M28099</link>
      <description>&lt;P&gt;For whatever weird way posting on this forum is broken with IE9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways TimP posted the same (division by zero generates +-infinity, not NaN).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:39:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781772#M28099</guid>
      <dc:creator>strohhaecker</dc:creator>
      <dc:date>2011-03-22T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781773#M28100</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1300800176407="67" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=443031" href="https://community.intel.com/en-us/profile/443031/" class="basic"&gt;strohhaecker&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;&lt;P&gt;For whatever weird way posting on this forum is broken with IE9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways TimP posted the same (division by zero generates +-infinity, not NaN).&lt;/P&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;If you want to post to this forum with IE9 you need toswitch on the browsercompatibility mode (the iconshowing abrokenpage at the end of the address bar).&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 13:25:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781773#M28100</guid>
      <dc:creator>netphilou31</dc:creator>
      <dc:date>2011-03-22T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Capturing exceptions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781774#M28101</link>
      <description>I'm not seeing any problems posting with IE9 (using it to post this) and there is no compatibility mode icon in my browser bar.</description>
      <pubDate>Tue, 22 Mar 2011 18:49:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Capturing-exceptions/m-p/781774#M28101</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-03-22T18:49:43Z</dc:date>
    </item>
  </channel>
</rss>

