<?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: Oversized array ? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762481#M17968</link>
    <description>With t_alex%toto = t_alex%titi, I have a sigv... I have also tried with titi, and toto as pointers and not as allocatable and with &lt;BR /&gt;ALLOCATE(t_alex%toto(i)) and ALLOCATE(t_alex%titi(i)) instead of i+1, nothing changes,  I have always a sigv.&lt;BR /&gt;&lt;BR /&gt;I have tried to fill up a request with Intel Premier support but I can't access to &lt;A href="https://premier.intel.com" target="_blank"&gt;https://premier.intel.com&lt;/A&gt; (error 403)&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 22 Dec 2005 02:51:41 GMT</pubDate>
    <dc:creator>alexposts</dc:creator>
    <dc:date>2005-12-22T02:51:41Z</dc:date>
    <item>
      <title>Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762475#M17962</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Could you tell me why the piece of code below give a "segmentation error". There is a limit for the size of an array, in this case what is this limit and how can I avoid it ?&lt;BR /&gt;&lt;BR /&gt;Thanks !&lt;BR /&gt;&lt;BR /&gt;I know that for a value of i = 1577536, everything works well, I didn't try to know for which value of i exactly, the code failed&lt;BR /&gt;&lt;BR /&gt;PROGRAM TEST&lt;BR /&gt;&lt;BR /&gt;TYPE ALEX&lt;BR /&gt;real,allocatable :: toto(:)&lt;BR /&gt;real,allocatable :: titi(:)&lt;BR /&gt;END TYPE&lt;BR /&gt;&lt;BR /&gt;type(alex) :: t_alex&lt;BR /&gt;integer :: i&lt;BR /&gt;&lt;BR /&gt;i=11577536&lt;BR /&gt;&lt;BR /&gt;ALLOCATE(t_alex%toto(i+1))&lt;BR /&gt;ALLOCATE(t_alex%titi(i+1))&lt;BR /&gt;&lt;BR /&gt;t_alex%toto(1:i) = t_alex%titi(1:i)&lt;BR /&gt;&lt;BR /&gt;END PROGRAM&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2005 09:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762475#M17962</guid>
      <dc:creator>alexposts</dc:creator>
      <dc:date>2005-12-20T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762476#M17963</link>
      <description>Does a:&lt;BR /&gt;&lt;BR /&gt;limit stacksize unlimited&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;ulimit&lt;BR /&gt;&lt;BR /&gt;command make a difference?  While I don't think it should, the compiler may be creating a stack temporary for the assignment.</description>
      <pubDate>Tue, 20 Dec 2005 22:04:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762476#M17963</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-20T22:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762477#M17964</link>
      <description>ulimit is set to "unlimited", I 'm not sure it comes from that ... there is a limitation of the stack size with ifort ? if yes, how I can avoid this limitation&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 20 Dec 2005 23:03:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762477#M17964</guid>
      <dc:creator>alexposts</dc:creator>
      <dc:date>2005-12-20T23:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762478#M17965</link>
      <description>ifort does not establish a stacksize limit, the OS does.  You set the limit using shell commands, as I noted.&lt;BR /&gt;&lt;BR /&gt;Does the segv happen on the assignment or before?  I note that these are components of a derived type - I know we don't do as good a job on these as we could, and I have filed a request to improve it.  I'd recommend that you send a test case to Intel Premier Support.</description>
      <pubDate>Tue, 20 Dec 2005 23:07:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762478#M17965</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-20T23:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762479#M17966</link>
      <description>the sigv happen just after :&lt;BR /&gt;&lt;BR /&gt; t_alex%toto(1:i) = t_alex%titi(1:i)&lt;BR /&gt;&lt;BR /&gt;I have tried with several values of i, this morning for i=2096726, I have the sigv, I restarted my computer and I recompile the code and the value of i to have a sigv was not the same (i&amp;lt;2096726).&lt;BR /&gt;I also try with toto and titi as pointer and not allocatable type, I have the same error.&lt;BR /&gt;&lt;BR /&gt;It runs on a debian sarge with ifort 9.0 20050430, my kernel is a 2.6.11.&lt;BR /&gt;&lt;BR /&gt;If you need other informations&lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Wed, 21 Dec 2005 08:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762479#M17966</guid>
      <dc:creator>alexposts</dc:creator>
      <dc:date>2005-12-21T08:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762480#M17967</link>
      <description>You definitely are running out of stack, then.&lt;BR /&gt;&lt;BR /&gt;As an experiment, try this:&lt;BR /&gt;&lt;BR /&gt;t_alex%toto = t_alex%titi&lt;BR /&gt;&lt;BR /&gt;What happens?</description>
      <pubDate>Wed, 21 Dec 2005 22:18:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762480#M17967</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-21T22:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762481#M17968</link>
      <description>With t_alex%toto = t_alex%titi, I have a sigv... I have also tried with titi, and toto as pointers and not as allocatable and with &lt;BR /&gt;ALLOCATE(t_alex%toto(i)) and ALLOCATE(t_alex%titi(i)) instead of i+1, nothing changes,  I have always a sigv.&lt;BR /&gt;&lt;BR /&gt;I have tried to fill up a request with Intel Premier support but I can't access to &lt;A href="https://premier.intel.com" target="_blank"&gt;https://premier.intel.com&lt;/A&gt; (error 403)&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 22 Dec 2005 02:51:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762481#M17968</guid>
      <dc:creator>alexposts</dc:creator>
      <dc:date>2005-12-22T02:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762482#M17969</link>
      <description>Try &lt;A href="https://registrationcenter.intel.com/support" target="_blank"&gt;https://registrationcenter.intel.com/support&lt;/A&gt; if you're having trouble with Intel Premier Support.</description>
      <pubDate>Thu, 22 Dec 2005 03:08:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762482#M17969</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T03:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762483#M17970</link>
      <description>Suggestion 1: modify you allocate statements from&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;ALLOCATE(t_alex%toto(i+1))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;to&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;ALLOCATE(t_alex%toto(i+1),STAT = err_num)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;P&gt;and test to see what the value of err_num is upon return.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;Suggestion 2: check to see if you can use allocatable arrays as components of user-defined types.&lt;P&gt;Message Edited by emc-nyc on &lt;SPAN class="date_text"&gt;12-27-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:27 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by emc-nyc on &lt;SPAN class="date_text"&gt;12-27-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:28 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2005 06:25:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762483#M17970</guid>
      <dc:creator>emc-nyc</dc:creator>
      <dc:date>2005-12-28T06:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Oversized array ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762484#M17971</link>
      <description>My suggestion would be to change the allocation commands from&lt;BR /&gt;allocate(t_alex%toto(i+1))&lt;BR /&gt;to&lt;BR /&gt;allocate(t_alex%toto(i+1))&lt;STRONG&gt;,STAT = err_num&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;This will permit you to catch the error and see what it is.</description>
      <pubDate>Wed, 28 Dec 2005 06:32:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Oversized-array/m-p/762484#M17971</guid>
      <dc:creator>emc-nyc</dc:creator>
      <dc:date>2005-12-28T06:32:11Z</dc:date>
    </item>
  </channel>
</rss>

