<?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 Stack overflow in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798041#M36282</link>
    <description>It's me again&lt;BR /&gt;&lt;BR /&gt;I try to keep refining my solution but another error appeared:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]forrtl: severe (41): insufficient virtual memory[/bash]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;Can that restriction be circumvented?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards</description>
    <pubDate>Wed, 03 Nov 2010 23:39:13 GMT</pubDate>
    <dc:creator>bcartolos</dc:creator>
    <dc:date>2010-11-03T23:39:13Z</dc:date>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798036#M36277</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am coding a little fea solver. I use imsl to solve the stiffness matrix but I get a stack overflow error when I refine my solution (The program works well with a limited number of nodes, when I attempt to solve more exact solution the error appears)&lt;BR /&gt;&lt;BR /&gt;The error I get is this:&lt;BR /&gt;&lt;BR /&gt;Unhandled exception at 0x000000014023e1b7 in Problema1.exe: 0xC00000FD: Stack overflow.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The line that is causing the problem is located in a subroutine called from the main program&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]Desp(DI) = Rigidez(DI, DI) .ix. F(DI)[/fortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;Rigidez, Desp and F are variables declared in a module called Globals&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]real(8), allocatable:: Rigidez(:,:)&lt;BR /&gt;&lt;BR /&gt;real(8), allocatable:: Desp(:)&lt;BR /&gt;&lt;BR /&gt;real(8), allocatable:: F(:)&lt;BR /&gt;[/fortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;DI is a vector declared inside the subroutine and the values are set by another subroutine&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[fortran]integer,allocatable:: DI(:)&lt;BR /&gt;&lt;BR /&gt;call DIncognitas(DI, NDI)[/fortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:26:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798036#M36277</guid>
      <dc:creator>bcartolos</dc:creator>
      <dc:date>2010-10-28T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798037#M36278</link>
      <description>You can, if you wish, increase the stack size in the project settings :&lt;BR /&gt;&lt;BR /&gt;Project-&amp;gt;Properties-&amp;gt;Linker-&amp;gt;System-&amp;gt; Stack Reserve Size &lt;VALUE&gt;&lt;BR /&gt;&lt;BR /&gt;You can also force temporary arrays to be allocated on the heap instead of the stack&lt;BR /&gt;&lt;BR /&gt;Project-&amp;gt;Properties-&amp;gt;Fortran-&amp;gt;Optimization-&amp;gt;Heap Arrays 0 (zero)&lt;BR /&gt;&lt;BR /&gt;Les&lt;/VALUE&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:39:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798037#M36278</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2010-10-28T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798038#M36279</link>
      <description>Thank Les for your reply&lt;BR /&gt;&lt;BR /&gt;How large should the stack reserve be?&lt;BR /&gt;&lt;BR /&gt;and also Changing the stack size will not affect performance?&lt;BR /&gt;&lt;BR /&gt;Best Regards</description>
      <pubDate>Thu, 28 Oct 2010 11:48:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798038#M36279</guid>
      <dc:creator>bcartolos</dc:creator>
      <dc:date>2010-10-28T11:48:37Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798039#M36280</link>
      <description>I just took a quick look at one of our (smaller) projects and it is set to 4,000,000&lt;BR /&gt;(another, mixed language project, sets the stack at 8Gb!)&lt;BR /&gt;&lt;BR /&gt;I doubt you will notice any performance issues unless you profile the code.&lt;BR /&gt;&lt;BR /&gt;Les</description>
      <pubDate>Thu, 28 Oct 2010 12:03:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798039#M36280</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2010-10-28T12:03:01Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798040#M36281</link>
      <description>Thank you very much for your answer&lt;BR /&gt;&lt;BR /&gt;Best Regards</description>
      <pubDate>Thu, 28 Oct 2010 12:31:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798040#M36281</guid>
      <dc:creator>bcartolos</dc:creator>
      <dc:date>2010-10-28T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798041#M36282</link>
      <description>It's me again&lt;BR /&gt;&lt;BR /&gt;I try to keep refining my solution but another error appeared:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]forrtl: severe (41): insufficient virtual memory[/bash]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;Can that restriction be circumvented?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards</description>
      <pubDate>Wed, 03 Nov 2010 23:39:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798041#M36282</guid>
      <dc:creator>bcartolos</dc:creator>
      <dc:date>2010-11-03T23:39:13Z</dc:date>
    </item>
    <item>
      <title>Stack overflow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798042#M36283</link>
      <description>The stack is limited to 1GB in Windows. You may be bumping into the 2GB addressable limit in 32-bit Windows. How much data are you trying to allocate? Are you building a 64-bit application? The exception address in the first post suggests you are.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2010 00:19:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Stack-overflow/m-p/798042#M36283</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-04T00:19:13Z</dc:date>
    </item>
  </channel>
</rss>

