<?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 Segmentation fault -- memory problem? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760257#M15744</link>
    <description>hi everyone,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I wrote the following code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]REAL   ,DIMENSION(nDOF,nVar,nElem)   :: QHAT 
REAL   ,DIMENSION(nDOF,nVar,nElem)   :: FHAT,FHATSTAR [/bash]&lt;/PRE&gt; when nElem is greater than 10000 I get aSegmentation fault and the program stops&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In the program now there are no more code so I think that is a memory program.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using the intel fortran compiler, are there any possibilities to check this? Can I extend the memory that I can use.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you&lt;/DIV&gt;</description>
    <pubDate>Wed, 14 Dec 2011 21:59:23 GMT</pubDate>
    <dc:creator>diedro</dc:creator>
    <dc:date>2011-12-14T21:59:23Z</dc:date>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760257#M15744</link>
      <description>hi everyone,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I wrote the following code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]REAL   ,DIMENSION(nDOF,nVar,nElem)   :: QHAT 
REAL   ,DIMENSION(nDOF,nVar,nElem)   :: FHAT,FHATSTAR [/bash]&lt;/PRE&gt; when nElem is greater than 10000 I get aSegmentation fault and the program stops&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In the program now there are no more code so I think that is a memory program.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using the intel fortran compiler, are there any possibilities to check this? Can I extend the memory that I can use.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:59:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760257#M15744</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-12-14T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760258#M15745</link>
      <description>If these arrays are local variables, you may be running out of stack. Increase the stack limit, or compile with the -heap-arrays option, or modify your program to allocate the arrays.</description>
      <pubDate>Thu, 15 Dec 2011 01:42:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760258#M15745</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-12-15T01:42:51Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760259#M15746</link>
      <description>hi,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;how can I do it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I mean the first option is:&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]REAL   ,ALLOCATABLE,DIMENSION(:,:,:)   :: QHAT,FHAT 

ALLOCATE(QHAT(nDOF,nVar,nElem))
ALLOCATE(FHAT(nDOF,nVar,nElem))[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;How Can I apply the other two options?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Dec 2011 08:38:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760259#M15746</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-12-15T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760260#M15747</link>
      <description>For the -heap-arrays option, read the Intel Fortran documentation.&lt;BR /&gt;&lt;BR /&gt;The method of setting the stack limit is OS-specific. Usually, the shell command&lt;BR /&gt;&lt;BR /&gt; ulimit -s unlimited&lt;BR /&gt;&lt;BR /&gt;is enough. See &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=43795"&gt;How to raise my stack limit to solve Segmentation fault .&lt;BR /&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 15 Dec 2011 10:04:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760260#M15747</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-12-15T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760261#M15748</link>
      <description>hi,&lt;DIV&gt;thank you I'll check.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;with allocate I have a strange problem&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;consider:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]nElem = 40000[/bash]&lt;/PRE&gt; when I allocate with:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]ALLOCATE(QHAT     (nDOF,nVar,nElem))
         QHAT = 0.D0[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;then I write to screen as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]WRITE(*,*) "QHAT"   ,QHAT(1,2,40001)[/bash]&lt;/PRE&gt; I have no segmentation fault&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;why?&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:19:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760261#M15748</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-12-15T12:19:12Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760262#M15749</link>
      <description>You cannot depend on seg-faults being forced whenever you overrun an array. Often, one variable follows another, as in&lt;BR /&gt;&lt;BR /&gt;COMMON /ABC/A(10),B(10)&lt;BR /&gt;&lt;BR /&gt;It can happen that a reference to A(11) uses B(1). From the Fortran point of view, this is an error, but the OS will not see this as an illegal memory reference.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:38:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760262#M15749</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-12-15T15:38:44Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760263#M15750</link>
      <description>hi,&lt;DIV&gt;so what Can I do?&lt;/DIV&gt;&lt;DIV&gt;I have to be more carefull in programming?&lt;/DIV&gt;&lt;DIV&gt;or to not use allocatable and increase the cache?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:49:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760263#M15750</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-12-15T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760264#M15751</link>
      <description>No short recommendations can be given beyond what mecej4 said already. The heap-arrays option is reliable when you don't use threaded parallel, although it may hurt performance when unexpected temporary arrays are created.&lt;BR /&gt;When writing parallel code, you may need to be careful, as you say, to minimize the unintended use of private arrays and make those you do use work with stack settings.</description>
      <pubDate>Thu, 15 Dec 2011 15:58:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760264#M15751</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-12-15T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760265#M15752</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;so the best way seems to change the stack limits.&lt;/DIV&gt;&lt;DIV&gt;I am sorry but I am not very able with bash things.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It is correct if I open the bash file:&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]/etc/bash.bashrc[/bash]&lt;/PRE&gt; and then a copy and paste:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]ulimit -s unlimited[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;Thank you&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:57:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760265#M15752</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-12-16T15:57:26Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault -- memory problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760266#M15753</link>
      <description>that should work, test it with&lt;BR /&gt;&lt;BR /&gt;ulimit -a&lt;BR /&gt;&lt;BR /&gt;next time you login</description>
      <pubDate>Fri, 16 Dec 2011 17:09:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Segmentation-fault-memory-problem/m-p/760266#M15753</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2011-12-16T17:09:37Z</dc:date>
    </item>
  </channel>
</rss>

