<?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 Allocate with STAT of a very large array on Mac outputs an inte in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764425#M19199</link>
    <description>Mat,&lt;BR /&gt;&lt;BR /&gt;The problem is:&lt;BR /&gt;&lt;BR /&gt; with default integer(4) huge(1) == 2147483647&lt;BR /&gt;d becomes 344, n becomes 59687&lt;BR /&gt; x(344,59687) * 4 = 82,129,312 bytes&lt;BR /&gt;&lt;BR /&gt;with default integer(8) huge(1) ==9223372036854775807&lt;BR /&gt;d becomes 88174, n becomes 3887459402&lt;BR /&gt; x(88174,3887459402) * 4 =1,371,091,381,247,792 bytes&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
    <pubDate>Wed, 07 Mar 2012 15:52:28 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2012-03-07T15:52:28Z</dc:date>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an internal error message with -i8</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764423#M19197</link>
      <description>$ uname -a&lt;BR /&gt;Darwin lion.nag.co.uk 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64&lt;BR /&gt;&lt;BR /&gt;$ ifort -V&lt;BR /&gt;Intel Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.1.246 Build 20111011&lt;BR /&gt;&lt;BR /&gt;$ cat big_alloc.f90&lt;BR /&gt;real, Allocatable :: x(:,:)&lt;BR /&gt;integer d, m, alloc_stat&lt;BR /&gt;d = int(1.6*huge(1)**0.25)&lt;BR /&gt;m = (d+1)*(d+2)/2 + 2&lt;BR /&gt;Allocate (x(d,m),Stat=alloc_stat)&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;$ ifort -i8 big_alloc.f90 ; ./a.out&lt;BR /&gt;a.out(81731) malloc: *** mmap(size=1371091381248000) failed (error code=12)&lt;BR /&gt;*** error: can't allocate region&lt;BR /&gt;*** set a breakpoint in malloc_error_break to debug&lt;BR /&gt;&lt;BR /&gt;alloc_stat is correctly set as /= 0, so this is just a bit unsightly really.&lt;BR /&gt;&lt;BR /&gt;It doesn't seem to happen on Linux.&lt;BR /&gt;&lt;BR /&gt;I'm not really a Mac user, so I'm not sure what other info to send that would be helpful!&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Mar 2012 10:54:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764423#M19197</guid>
      <dc:creator>Cross__Mat</dc:creator>
      <dc:date>2012-03-07T10:54:50Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764424#M19198</link>
      <description>I am not a Mac user, either, so this is just a guess: the message is probably from the underlying C library rather than from the Intel Fortran runtime. Sometimes there is an environmental variable that can be set to control messages from MALLOC and even to control subsequent action.</description>
      <pubDate>Wed, 07 Mar 2012 11:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764424#M19198</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-07T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764425#M19199</link>
      <description>Mat,&lt;BR /&gt;&lt;BR /&gt;The problem is:&lt;BR /&gt;&lt;BR /&gt; with default integer(4) huge(1) == 2147483647&lt;BR /&gt;d becomes 344, n becomes 59687&lt;BR /&gt; x(344,59687) * 4 = 82,129,312 bytes&lt;BR /&gt;&lt;BR /&gt;with default integer(8) huge(1) ==9223372036854775807&lt;BR /&gt;d becomes 88174, n becomes 3887459402&lt;BR /&gt; x(88174,3887459402) * 4 =1,371,091,381,247,792 bytes&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Wed, 07 Mar 2012 15:52:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764425#M19199</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-03-07T15:52:28Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764426#M19200</link>
      <description>Jim, your estimate is&lt;BR /&gt;&lt;BR /&gt; x(88174,3887459402) * 4 =1,371,091,381,247,792 bytes&lt;BR /&gt;&lt;BR /&gt;which, when rounded up, matches the value in the MALLOC error message,&lt;BR /&gt;&lt;BR /&gt; mmap(size=1371091381248000) failed (error code=12)&lt;BR /&gt;&lt;BR /&gt;This is about 1.4 petabytes.</description>
      <pubDate>Wed, 07 Mar 2012 16:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764426#M19200</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-07T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764427#M19201</link>
      <description>It's unfortunate though that it gets exposed like this. Wouldn't you expect the compiler to trap and control the subsequent action itself?</description>
      <pubDate>Wed, 07 Mar 2012 16:59:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764427#M19201</guid>
      <dc:creator>Cross__Mat</dc:creator>
      <dc:date>2012-03-07T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764428#M19202</link>
      <description>Thanks. I'm expecting the allocation to fail. The problem is that there's a nasty error message bubbling up from the guts of _somewhere_.</description>
      <pubDate>Wed, 07 Mar 2012 17:03:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764428#M19202</guid>
      <dc:creator>Cross__Mat</dc:creator>
      <dc:date>2012-03-07T17:03:59Z</dc:date>
    </item>
    <item>
      <title>Allocate with STAT of a very large array on Mac outputs an inte</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764429#M19203</link>
      <description>&amp;gt;&amp;gt;The problem is that there's a nasty error message bubbling up from the guts of _somewhere_.&lt;BR /&gt;&lt;BR /&gt;It is bubling up from the C Runtime Library in the malloc function.&lt;BR /&gt;&lt;BR /&gt;This is not an Intel Visual Fortran issue. It is an issue with the C Runtime Library as it interfaces with the O/S. In your case this is the MAC O/S. Consult with/on the MAC forums relating to too large of allocations causing error trap as opposed to returning NULL.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:46:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocate-with-STAT-of-a-very-large-array-on-Mac-outputs-an/m-p/764429#M19203</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-03-07T20:46:24Z</dc:date>
    </item>
  </channel>
</rss>

