<?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 heap exhaustion in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745444#M3596</link>
    <description>Try this for hunting down the problem&lt;BR /&gt;&lt;BR /&gt;Insert into your code statements which emits a trace of the allocations to the console window (or stderr). Since the problem seems to vary with compiler this is suspicious of uninitialized variables (causing overly large allocations). The allocation trace log may show something funny with the allocations.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Apr 2010 04:43:17 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2010-04-09T04:43:17Z</dc:date>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745439#M3591</link>
      <description>Running ifort 64 version 11.1 on linux. Upon entering a subroutine the following error is generated:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;chemsor (time=240002.56659331446, dol=Internal Error: out of memory&lt;BR /&gt;Heap exhausted with 28332032 bytes.&lt;BR /&gt;Intel Debugger for applications running on Intel 64 caught signal "Aborted" (6).&lt;BR /&gt;This is an unexpected condition and may indicate the presence of a defect.&lt;BR /&gt;If you wish to report this, please include the stack trace that follows.&lt;BR /&gt;/lib64/libc.so.6 [0x34b80302d0]&lt;BR /&gt;/lib64/libc.so.6(gsignal+0x35) [0x34b8030265]&lt;BR /&gt;/lib64/libc.so.6(abort+0x110) [0x34b8031d10]&lt;BR /&gt;/usr/lib64/libstdc++.so.5 [0x2ac679d2f046]&lt;BR /&gt;/usr/lib64/libstdc++.so.5 [0x2ac679d2f083]&lt;BR /&gt;/usr/lib64/libstdc++.so.5 [0x2ac679d2f096]&lt;BR /&gt;/usr/lib64/libstdc++.so.5(__cxa_call_unexpected+0x4e) [0x2ac679d2ef4e]&lt;BR /&gt;/usr/lib64/libstdc++.so.5 [0x2ac679d2f3be]&lt;BR /&gt;/usr/lib64/libstdc++.so.5(_Znam+0x9) [0x2ac679d2f449]&lt;BR /&gt;/opt/intel/Compiler/11.1/069/bin/intel64/iidb(_ZN4Bits10initializeEmPKc+0x36) [0x6b4392]&lt;BR /&gt;&lt;BR /&gt;etc &lt;BR /&gt;&lt;BR /&gt;How can this be fixed ?&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2010 00:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745439#M3591</guid>
      <dc:creator>ifortman</dc:creator>
      <dc:date>2010-04-08T00:06:40Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745440#M3592</link>
      <description>1) Examine your code for memory leaks.&lt;BR /&gt;2) Examine your code for allocation and dealocation sequencing that promotes fragmentation of heap.&lt;BR /&gt;3) Exaimine your code for run away recursion that performs allocations.&lt;BR /&gt;&lt;BR /&gt;Your stack trace is relatively small so 3) is likely not a problem&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Apr 2010 15:30:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745440#M3592</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-04-08T15:30:36Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745441#M3593</link>
      <description>Does it respond to increases in stack limit in your shell, e.g. ulimit -s unlimited (or, if applicable, a system level stack limit)?</description>
      <pubDate>Thu, 08 Apr 2010 15:46:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745441#M3593</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-04-08T15:46:29Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745442#M3594</link>
      <description>I have been running with ulimit -s = unlimited&lt;BR /&gt;&lt;BR /&gt;This problem happens upon an allocate command and does not happen with pgf90 compiled code. It also does not happen sith sunF95 compiled code. In that case, there is still a problem, however, in that calculations are not done properly in a certain different routine. I cannot track it down in sunF95 compiled code as for some reason dbx seems to be unable to print automatic arrays. &lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestion</description>
      <pubDate>Thu, 08 Apr 2010 20:23:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745442#M3594</guid>
      <dc:creator>ifortman</dc:creator>
      <dc:date>2010-04-08T20:23:25Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745443#M3595</link>
      <description>What compiler options are you using?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I suspect you may just be running out of memory. How much physical RAM do you have, and do you have any estimate of your dynamic memory requirement? Do you run &lt;BR /&gt;&lt;BR /&gt;vmstat 1&lt;BR /&gt;&lt;BR /&gt;in separate window when you run? This only has a 1 second resolution, so if you allocate all your data rapidly it may miss if you start to allocate too much memory.&lt;BR /&gt;&lt;BR /&gt;ron</description>
      <pubDate>Thu, 08 Apr 2010 20:54:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745443#M3595</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2010-04-08T20:54:16Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745444#M3596</link>
      <description>Try this for hunting down the problem&lt;BR /&gt;&lt;BR /&gt;Insert into your code statements which emits a trace of the allocations to the console window (or stderr). Since the problem seems to vary with compiler this is suspicious of uninitialized variables (causing overly large allocations). The allocation trace log may show something funny with the allocations.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2010 04:43:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745444#M3596</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-04-09T04:43:17Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745445#M3597</link>
      <description>I have 12 GB of ram, which I believe is more than on other machines that I have run this program without a problem. &lt;BR /&gt;&lt;BR /&gt;vmstat 1 yields the following: &lt;BR /&gt;&lt;BR /&gt;r b swpd free buff cache si so bi bo in cs us sy id wa st&lt;BR /&gt;1 0 0 10337228 128484 1109788 0 0 0 0 1088 511 6 0 94 0 0&lt;BR /&gt;1 0 0 10337608 128484 1109788 0 0 0 0 1113 623 6 0 94 0 0&lt;BR /&gt;1 0 0 10337608 128492 1109780 0 0 0 80 1101 576 6 0 94 0 0&lt;BR /&gt;1 0 0 10337608 128492 1109788 0 0 0 0 1121 606 6 0 94 0 0&lt;BR /&gt;1 0 0 10337608 128492 1109788 0 0 0 0 1083 518 6 0 94 0 0&lt;BR /&gt;1 0 0 10338100 128492 1109788 0 0 0 0 1121 597 6 0 94 0 0&lt;BR /&gt;2 0 0 10336612 128504 1109412 0 0 0 17092 1244 564 6 0 93 0 0&lt;BR /&gt;2 0 0 10325200 128504 1109620 0 0 0 0 1115 2101 8 1 91 0 0&lt;BR /&gt;2 0 0 10317760 128504 1109620 0 0 0 0 1089 589 9 4 87 0 0&lt;BR /&gt;3 0 0 10221248 128572 1114336 0 0 616 0 1131 1062 12 3 84 0 0&lt;BR /&gt;3 0 0 10163836 128648 1161580 0 0 0 44 1099 632 16 3 81 0 0&lt;BR /&gt;2 0 0 10166316 128736 1174140 0 0 0 40 1159 752 13 0 87 0 0&lt;BR /&gt;2 1 0 10157512 128736 1174140 0 0 0 96992 1364 639 12 1 83 3 0&lt;BR /&gt;&lt;BR /&gt;This includes the entry into the allocation block that triggers the error. &lt;BR /&gt;&lt;BR /&gt;Top gives the following for resource use on a computer where it runs &lt;BR /&gt;&lt;BR /&gt; virt res shr&lt;BR /&gt;18620 max 25 0 1908m 85m 1344 R 99.2 0.7 0:35.73 zeusmp.x &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:19:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745445#M3597</guid>
      <dc:creator>ifortman</dc:creator>
      <dc:date>2010-04-09T19:19:51Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745446#M3598</link>
      <description>Jim&lt;BR /&gt;&lt;BR /&gt;Could you give me an example of how to emit a trace ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 09 Apr 2010 19:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745446#M3598</guid>
      <dc:creator>ifortman</dc:creator>
      <dc:date>2010-04-09T19:23:13Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745447#M3599</link>
      <description>real(8), allocatable:: array(:,:)&lt;BR /&gt;...&lt;BR /&gt;write(*,*) 'allocating array', nX, nY&lt;BR /&gt;allocate(array(nX, nY))&lt;BR /&gt;&lt;BR /&gt;or variations on the theme&lt;BR /&gt;&lt;BR /&gt;If you use FPP you additionly can include __FILE__ and __LINE__ in your trace&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2010 20:14:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745447#M3599</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-04-09T20:14:13Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745448#M3600</link>
      <description>Thanks for the information. It seems that your comment about unitialized variables is significant. I used the -save option and that problem has vanished. I still have to check whether the calculation is proceeding properly.&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestions.</description>
      <pubDate>Sat, 10 Apr 2010 00:34:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745448#M3600</guid>
      <dc:creator>ifortman</dc:creator>
      <dc:date>2010-04-10T00:34:10Z</dc:date>
    </item>
    <item>
      <title>heap exhaustion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745449#M3601</link>
      <description>&lt;P&gt;caution&lt;BR /&gt;&lt;BR /&gt;-save my make the symptom go away, but it may not necessarily make the problem go away. It may hide an insidious problem.&lt;BR /&gt;&lt;BR /&gt;Find out what the problem is, and be certain that -save is correct action. It is better to explicitly mark those variables SAVE that require save as opposed to making all variables save.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2010 02:30:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/heap-exhaustion/m-p/745449#M3601</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-04-10T02:30:08Z</dc:date>
    </item>
  </channel>
</rss>

