<?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: maximum array size in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761815#M17302</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How is it possible to evaluate this maximum size : I work on an 64b opteron and installed successfully Intel's fortran compiler 8.* for 64b processors. I have no problem for compiling or linking but I was surprised to observe that the maximum array size didn't change from my 32b installation ... !? Is it normal ??&lt;BR /&gt;&lt;BR /&gt;         Thanks for your answer(s), Edouard.</description>
    <pubDate>Thu, 09 Jun 2005 02:51:40 GMT</pubDate>
    <dc:creator>edouardoudet</dc:creator>
    <dc:date>2005-06-09T02:51:40Z</dc:date>
    <item>
      <title>maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761813#M17300</link>
      <description>&lt;DIV&gt;Is there a maximum array size that is allocatable using the intel compiler ?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jun 2005 01:49:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761813#M17300</guid>
      <dc:creator>Neil_S_</dc:creator>
      <dc:date>2005-06-09T01:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761814#M17301</link>
      <description>No - you're limited by what the operating system allows.  The compiler does not impose its own limit.</description>
      <pubDate>Thu, 09 Jun 2005 01:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761814#M17301</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T01:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761815#M17302</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How is it possible to evaluate this maximum size : I work on an 64b opteron and installed successfully Intel's fortran compiler 8.* for 64b processors. I have no problem for compiling or linking but I was surprised to observe that the maximum array size didn't change from my 32b installation ... !? Is it normal ??&lt;BR /&gt;&lt;BR /&gt;         Thanks for your answer(s), Edouard.</description>
      <pubDate>Thu, 09 Jun 2005 02:51:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761815#M17302</guid>
      <dc:creator>edouardoudet</dc:creator>
      <dc:date>2005-06-09T02:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761816#M17303</link>
      <description>There is no easy way to determine it. If you are declaring a static array, there are limits of the linker and the image activator.  Have you tried an allocatable array?  What was the maximum size you managed to see?</description>
      <pubDate>Thu, 09 Jun 2005 03:07:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761816#M17303</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T03:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761817#M17304</link>
      <description>Does the -mcmodel= switch influence the maximum size of static arrays?  I don't find documentation readily accessible.</description>
      <pubDate>Thu, 09 Jun 2005 03:25:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761817#M17304</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-06-09T03:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761818#M17305</link>
      <description>Hmm - yes, it might.  Try -mcmodel=medium and see if it helps.</description>
      <pubDate>Thu, 09 Jun 2005 03:42:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761818#M17305</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T03:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761819#M17306</link>
      <description>&lt;DIV&gt;/opt/fc-8.1.023/bin/ifort -mcmodel=medium -c frxx5.f&lt;/DIV&gt;
&lt;DIV&gt;ifort: Command line warning: ignoring unknown option '-mcmodel=medium'&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have seen this option on other compilers, not yours.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jun 2005 05:07:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761819#M17306</guid>
      <dc:creator>Neil_S_</dc:creator>
      <dc:date>2005-06-09T05:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761820#M17307</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Try -fpic on your 64b machine, i think thismight help.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jun 2005 05:20:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761820#M17307</guid>
      <dc:creator>Neil_S_</dc:creator>
      <dc:date>2005-06-09T05:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761821#M17308</link>
      <description>Actually the limit of size on my computer (the 64b Opteron AND on my 32b PC) is between 1E8 and 1E9 for the maximum size of an allocatable array for a DOUBLE PRECISION. I checked also that the stack size and the data seg size are unlimited.&lt;BR /&gt;&lt;BR /&gt;The /proc/meminfo file gives me :&lt;BR /&gt;&lt;BR /&gt;total:    used:    free:  shared: buffers:  cached:&lt;BR /&gt;Mem:  4088872960 97042432 3991830528        0 11104256 59793408&lt;BR /&gt;Swap: 4293910528 270786560 4023123968&lt;BR /&gt;MemTotal:      3993040 kB&lt;BR /&gt;MemFree:       3898272 kB&lt;BR /&gt;&lt;BR /&gt;which seems to be sufficient !?&lt;BR /&gt;&lt;BR /&gt;On the other hand, the greatest integer of kind=8 (obtained with the huge command) is the same as on a 32b :  2147483647. Again, I do not know if it is normal.&lt;BR /&gt;&lt;BR /&gt;           Thanks for your comments, Edouard.</description>
      <pubDate>Thu, 09 Jun 2005 11:35:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761821#M17308</guid>
      <dc:creator>edouardoudet</dc:creator>
      <dc:date>2005-06-09T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761822#M17309</link>
      <description>If you are seeing the same result for HUGE of an INTEGER(8) as an INTEGER(4), there's an error in your program.  Perhaps you are also misinterpreting the size numbers.</description>
      <pubDate>Thu, 09 Jun 2005 19:22:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761822#M17309</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761823#M17310</link>
      <description>As you suggest, there was a problem in my program : I used a "Integer :: variable=kind(8)" statement instead of the declaration "Integer(8):: variable". I thought it was equivalent ! &lt;BR /&gt;&lt;BR /&gt;Yet I still do not understand why it is not possible to allocate a bigger array on my 64b processor than on my 32b PC. Do you have any idea considering the datas in a previous message ?&lt;BR /&gt;&lt;BR /&gt;   Thanks a lot for your answers.</description>
      <pubDate>Thu, 09 Jun 2005 19:43:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761823#M17310</guid>
      <dc:creator>edouardoudet</dc:creator>
      <dc:date>2005-06-09T19:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761824#M17311</link>
      <description>Let's see an example program, the commands you used to build it, and the results of running it.  I know this works - I have seen it myself.</description>
      <pubDate>Thu, 09 Jun 2005 19:58:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761824#M17311</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T19:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761825#M17312</link>
      <description>I used the followig test program :&lt;BR /&gt;&lt;BR /&gt;**********************************************************&lt;BR /&gt;PROGRAM test64&lt;BR /&gt;&lt;BR /&gt;  IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt;  INTEGER(8)                                  :: dimarray&lt;BR /&gt;  DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: testalloc&lt;BR /&gt;&lt;BR /&gt;  dimarray = 260000000&lt;BR /&gt;  PRINT*,HUGE(dimarray)&lt;BR /&gt;&lt;BR /&gt;  PRINT*,"BEGIN ALLOCATION"&lt;BR /&gt;  ALLOCATE(testalloc(dimarray))&lt;BR /&gt;  PRINT*,"ALLOCATION  SUCCESFULL",dimarray&lt;BR /&gt;  DEALLOCATE(testalloc)&lt;BR /&gt;&lt;BR /&gt;END PROGRAM test64&lt;BR /&gt;**********************************************************&lt;BR /&gt;&lt;BR /&gt;+ I compiled and executed it on my PC (32b) with the standard &lt;BR /&gt;&lt;BR /&gt;ifort test64.f90 -o test64&lt;BR /&gt;./test64&lt;BR /&gt;&lt;BR /&gt;instructions. It is successfull. If ichange the value dimarray to 270000000. Iget the message :&lt;BR /&gt;&lt;BR /&gt;Allocate error 494: Allocation of Array with extent of 270000000 failed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;+ On the 64b processor compiled with the instruction :&lt;BR /&gt;&lt;BR /&gt;/opt/intel_fce_80/bin/ifort test64.f90&lt;BR /&gt;&lt;BR /&gt;the limit (computed manually changing the value of dimarray) is close from 1000000000. That is less than 5 times larger than the previous one.&lt;BR /&gt;&lt;BR /&gt;With a greater integer I got the following message :&lt;BR /&gt;&lt;BR /&gt;forrtl: severe (41): insufficient virtual memory&lt;BR /&gt;Image              PC                Routine            Line        Source&lt;BR /&gt;a.out              000000000043A2BE  Unknown               Unknown  Unknown&lt;BR /&gt;a.out              0000000000439CE2  Unknown               Unknown  Unknown&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;         Thanks.</description>
      <pubDate>Thu, 09 Jun 2005 21:23:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761825#M17312</guid>
      <dc:creator>edouardoudet</dc:creator>
      <dc:date>2005-06-09T21:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761826#M17313</link>
      <description>You're hitting an OS limit determined by your configuration.  I don't know enough about Linux to advise you on this, except to say that it's not straightforward to configure a system that will allow more than 2GB allocations.</description>
      <pubDate>Thu, 09 Jun 2005 21:38:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761826#M17313</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T21:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: maximum array size</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761827#M17314</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;I am able to compile and run the test program up to the size of the physical memory limit of 32 GB:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;c5i5n13 .../development/x86_64 $ ifort test64.f90&lt;BR /&gt;c5i5n13 .../development/x86_64 $ a.out&lt;BR /&gt; 9223372036854775807&lt;BR /&gt;BEGIN ALLOCATION&lt;BR /&gt;ALLOCATIONSUCCESFULL 4000000000&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;It's a SuSE 9.1 x86_64 with Kernel 2.6.5-7.97-smpand Intel l_fce_pc_8.1.025&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hans&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2005 15:26:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/maximum-array-size/m-p/761827#M17314</guid>
      <dc:creator>hanswb</dc:creator>
      <dc:date>2005-06-10T15:26:43Z</dc:date>
    </item>
  </channel>
</rss>

