<?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 deadlock during debug in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021634#M108342</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I'm trying to find where inside my program appears the first NaN var. &amp;nbsp;So I created the following function:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;logical FUNCTION testanan(var)

implicit none            
real(8) var

if (var /= var) then
    print*, 'deu NAN na', var
    TESTANAN=.TRUE.
    READ(*,*)
endif

ENDFUNCTION
                 &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I run in debug mode and when the message appears in the screen, I press pause to find out in which line the NaN appears. But when I do that, deadlock happens...&lt;/P&gt;

&lt;P&gt;How can I identify where is my first NaN happens?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2014 06:42:02 GMT</pubDate>
    <dc:creator>Isabela_Z_</dc:creator>
    <dc:date>2014-08-12T06:42:02Z</dc:date>
    <item>
      <title>deadlock during debug</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021634#M108342</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I'm trying to find where inside my program appears the first NaN var. &amp;nbsp;So I created the following function:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;logical FUNCTION testanan(var)

implicit none            
real(8) var

if (var /= var) then
    print*, 'deu NAN na', var
    TESTANAN=.TRUE.
    READ(*,*)
endif

ENDFUNCTION
                 &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I run in debug mode and when the message appears in the screen, I press pause to find out in which line the NaN appears. But when I do that, deadlock happens...&lt;/P&gt;

&lt;P&gt;How can I identify where is my first NaN happens?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 06:42:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021634#M108342</guid>
      <dc:creator>Isabela_Z_</dc:creator>
      <dc:date>2014-08-12T06:42:02Z</dc:date>
    </item>
    <item>
      <title>Why not remove the READ and</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021635#M108343</link>
      <description>&lt;P&gt;Why not remove the READ and place a debugger break point on TESTNAN=?&lt;/P&gt;

&lt;P&gt;Then when break is hit, single step out of the function.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021635#M108343</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2014-08-12T12:26:00Z</dc:date>
    </item>
    <item>
      <title>I second Jim's comments.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021636#M108344</link>
      <description>&lt;P&gt;I second Jim's comments.&lt;/P&gt;

&lt;P&gt;NOTE: If "var /= var" is false, the function value is undefined.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:44:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021636#M108344</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-08-12T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot Jim, I will try</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021637#M108345</link>
      <description>&lt;P&gt;Thanks a lot Jim, I will try your suggestion and I gonna fix the result.&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:53:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021637#M108345</guid>
      <dc:creator>Isabela_Z_</dc:creator>
      <dc:date>2014-08-12T12:53:56Z</dc:date>
    </item>
    <item>
      <title>Please don't use var /= var</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021638#M108346</link>
      <description>&lt;P&gt;Please don't use var /= var to test for NaN. Use the intrinsic IEEE_ISNAN from intrinsic module IEEE_ARITHMETIC. The compiler might choose to delete your comparison under normal optimization. If you want to do such tests, you must compile with the option /fp:strict&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:16:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deadlock-during-debug/m-p/1021638#M108346</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-08-12T15:16:34Z</dc:date>
    </item>
  </channel>
</rss>

