<?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: Module removes stack overflow error in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910069#M83186</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;&lt;BR /&gt;The property is Fortran &amp;gt; Optiimization &amp;gt; Heap Arrays. Set it to 0.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
In command line i typed /heap_arrays, but i didn't work and i still get stack overflow, in addition in property&amp;gt;Optimization i can't find the option 'heap-array'? please help me with this&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 18 Oct 2009 16:08:47 GMT</pubDate>
    <dc:creator>ymahmoudi</dc:creator>
    <dc:date>2009-10-18T16:08:47Z</dc:date>
    <item>
      <title>Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910062#M83179</link>
      <description>&lt;P&gt;Dear f 90 programmers&lt;BR /&gt;I run a simple code to solve 2-d heat equation using OPENMP&lt;BR /&gt;for array size more than (301*301) i got stack overflow error and the code has terminated. But as i defined variables in "MODULE" i got no error. Can anyone explain whay this is for??&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2009 15:13:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910062#M83179</guid>
      <dc:creator>ymahmoudi</dc:creator>
      <dc:date>2009-10-16T15:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910063#M83180</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Module variables are global and statically allocated. If you have local arrays, they will be allocated on the stack, which is good for threading but bad for stack usage. I'd suggest making these ALLOCATABLE arrays and allocating them to the proper size, or increase the stacksize of the application. Static arrays can introduce threading errors.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2009 15:18:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910063#M83180</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-16T15:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910064#M83181</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
You may have shifted some of your big arrays from local (default stack) allocation to global heap allocation. When you set /Qopenmp, implying /Qauto, if you don't set heap-arrays, the local arrays have to go on stack, as the compiler doesn't know whether they will be replicated for each thread. This use of MODULE may be a good strategy, to keep shared data off the stack.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2009 15:22:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910064#M83181</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-10-16T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910065#M83182</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;&lt;BR /&gt;Module variables are global and statically allocated. If you have local arrays, they will be allocated on the stack, which is good for threading but bad for stack usage. I'd suggest making these ALLOCATABLE arrays and allocating them to the proper size, or increase the stacksize of the application. Static arrays can introduce threading errors.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Deat Steve&lt;BR /&gt;Thanks for reply. Actually i'm so engage with stack overflow error inexecuting my code regarding to what i gonna do in my Ph.d thesis. My main code containsdiffetent variables which defined in common block and most of them are shared between different subroutines. when i run the code in sequential mode i got no error but with OPENMP igot stack overflow and i have to decrease the grid size. may you please tell me what can i do to remove the stack error, in additioni cant define array in allocating mode bacausethe arrays shoulb be share between different program units.</description>
      <pubDate>Sat, 17 Oct 2009 20:12:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910065#M83182</guid>
      <dc:creator>ymahmoudi</dc:creator>
      <dc:date>2009-10-17T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910066#M83183</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;You may have shifted some of your big arrays from local (default stack) allocation to global heap allocation. When you set /Qopenmp, implying /Qauto, if you don't set heap-arrays, the local arrays have to go on stack, as the compiler doesn't know whether they will be replicated for each thread. This use of MODULE may be a good strategy, to keep shared data off the stack.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for reply&lt;BR /&gt;May you please tell me, how can i use heap-array tocompile a program on intel windows?Inlinux adding this option to command line willdo this, but i don't know whatto doin windows.</description>
      <pubDate>Sat, 17 Oct 2009 20:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910066#M83183</guid>
      <dc:creator>ymahmoudi</dc:creator>
      <dc:date>2009-10-17T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910067#M83184</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/447062"&gt;ymahmoudi&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 id="quote_reply" style="margin-top: 5px; width: 100%; height: 0pt;"&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
May you please tell me, how can i use heap-array tocompile a program on intel windows?Inlinux adding this option to command line willdo this, but i don't know whatto doin windows. &lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I suppose (could be missing something) it's not one of the Properties options, so it would have to be added as additional command line option e.g. /heap-arrays:512&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Oct 2009 22:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910067#M83184</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-10-17T22:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910068#M83185</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The property is Fortran &amp;gt; Optiimization &amp;gt; Heap Arrays. Set it to 0.&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Oct 2009 23:12:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910068#M83185</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-17T23:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910069#M83186</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;&lt;BR /&gt;The property is Fortran &amp;gt; Optiimization &amp;gt; Heap Arrays. Set it to 0.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
In command line i typed /heap_arrays, but i didn't work and i still get stack overflow, in addition in property&amp;gt;Optimization i can't find the option 'heap-array'? please help me with this&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 18 Oct 2009 16:08:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910069#M83186</guid>
      <dc:creator>ymahmoudi</dc:creator>
      <dc:date>2009-10-18T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module removes stack overflow error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910070#M83187</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Which compiler version are you using?&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:22:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Module-removes-stack-overflow-error/m-p/910070#M83187</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-18T18:22:13Z</dc:date>
    </item>
  </channel>
</rss>

