<?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 Indeed, the problem should be in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081274#M121925</link>
    <description>&lt;P&gt;Indeed, the problem should be connected to the stack. If I decreased stack size to 5000 kB, then the program also crashed at n=1000 000.&lt;/P&gt;

&lt;P&gt;In the case of ifort 16.0.2. The mentioned problem could be solved/avoided by using the &lt;STRONG&gt;-heap-arrays&lt;/STRONG&gt; switch. But with the standard stack size (8192 kB) and with the &lt;STRONG&gt;-heap-arrays 100000 &lt;/STRONG&gt;(means that temporary array larger then 100MB is allocated on heap memory) the program is&amp;nbsp; running well. For me, there is something wrong or I do not understand the idea of the &lt;STRONG&gt;-heap-arrays&lt;/STRONG&gt; switch&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2016 19:08:58 GMT</pubDate>
    <dc:creator>janusz_andrzejewski</dc:creator>
    <dc:date>2016-02-21T19:08:58Z</dc:date>
    <item>
      <title>intrinsinc REAL &amp; ifort 16.0.2 - bug?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081271#M121922</link>
      <description>&lt;P&gt;Here is a small code:&lt;/P&gt;

&lt;P&gt;PROGRAM test&lt;BR /&gt;
	IMPLICIT NONE&lt;BR /&gt;
	&amp;nbsp;INTEGER, PARAMETER :: wp=KIND(1.0d0)&lt;BR /&gt;
	&amp;nbsp;REAL(wp), ALLOCATABLE, DIMENSION(:) :: rr&lt;BR /&gt;
	&amp;nbsp;COMPLEX(wp), ALLOCATABLE, DIMENSION(:)&amp;nbsp; :: cc&lt;BR /&gt;
	&amp;nbsp;INTEGER :: n&lt;/P&gt;

&lt;P&gt;&amp;nbsp;n=1000000 !&amp;lt;= this value is OK&lt;BR /&gt;
	&amp;nbsp;n=1100000 !&amp;lt;= this value causes error&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; ALLOCATE(cc(n))&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; cc=(1.0_wp, 1.0_wp)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; ALLOCATE(rr(n))&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; rr(:)=REAL(cc(:), KIND=wp)&amp;nbsp; !&amp;lt;= here is runtime error&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; ! rr(:)=REAL(cc(:))&amp;nbsp;&amp;nbsp;&amp;nbsp; !&amp;lt;= it's OK&lt;/P&gt;

&lt;P&gt;END PROGRAM&lt;/P&gt;

&lt;P&gt;When I compile&amp;nbsp; without any switch under ifort 16.0.2 program crashes. It runs well under -O3 optimization level and crushes under the&lt;/P&gt;

&lt;P&gt;-O0, -O1 -O2 optimization levels.&lt;/P&gt;

&lt;P&gt;It run well if one switch the working precision (wp) from DOUBLE PRECISION to SINGLE PRECISION (i.e. wp=KIND(1.0) )&lt;/P&gt;

&lt;P&gt;Under ifort 16.0.1 everything is OK.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 15:19:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081271#M121922</guid>
      <dc:creator>janusz_andrzejewski</dc:creator>
      <dc:date>2016-02-20T15:19:45Z</dc:date>
    </item>
    <item>
      <title>I get a stack overflow,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081272#M121923</link>
      <description>&lt;P&gt;I get a stack overflow, avoided simply by boosting the stack limit.&lt;/P&gt;

&lt;P&gt;No doubt that the update is causing you a slightly increased stack consumption.&amp;nbsp;&amp;nbsp; I see that an extra temporary array and copy is created at the lower optimizations.&amp;nbsp; I don't know whether that would be accepted as a bug.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 15:47:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081272#M121923</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-02-20T15:47:18Z</dc:date>
    </item>
    <item>
      <title>Thank you.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081273#M121924</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Setting stack unlimited (&lt;STRONG&gt; ulimit -s unlimited&lt;/STRONG&gt;) the problem for intel 16.0.2 has gone.&lt;/P&gt;

&lt;P&gt;Regarding ifort 16.0.1. In standard stack size (8192 kB) even if I enlarge n 1000 times, program still runs well.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 16:38:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081273#M121924</guid>
      <dc:creator>janusz_andrzejewski</dc:creator>
      <dc:date>2016-02-20T16:38:02Z</dc:date>
    </item>
    <item>
      <title>Indeed, the problem should be</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081274#M121925</link>
      <description>&lt;P&gt;Indeed, the problem should be connected to the stack. If I decreased stack size to 5000 kB, then the program also crashed at n=1000 000.&lt;/P&gt;

&lt;P&gt;In the case of ifort 16.0.2. The mentioned problem could be solved/avoided by using the &lt;STRONG&gt;-heap-arrays&lt;/STRONG&gt; switch. But with the standard stack size (8192 kB) and with the &lt;STRONG&gt;-heap-arrays 100000 &lt;/STRONG&gt;(means that temporary array larger then 100MB is allocated on heap memory) the program is&amp;nbsp; running well. For me, there is something wrong or I do not understand the idea of the &lt;STRONG&gt;-heap-arrays&lt;/STRONG&gt; switch&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 19:08:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081274#M121925</guid>
      <dc:creator>janusz_andrzejewski</dc:creator>
      <dc:date>2016-02-21T19:08:58Z</dc:date>
    </item>
    <item>
      <title>The value given on the -heap</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081275#M121926</link>
      <description>&lt;P&gt;The value given on the -heap-arrays switch is not used in any meaningful fashion. You may as well leave it off.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 01:43:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081275#M121926</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-02-22T01:43:55Z</dc:date>
    </item>
    <item>
      <title>FWIW, you may find https:/</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081276#M121927</link>
      <description>&lt;P&gt;FWIW, you may find&amp;nbsp;https://software.intel.com/en-us/blogs/2008/03/31/doctor-it-hurts-when-i-do-this worth a read.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 18:01:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/intrinsinc-REAL-ifort-16-0-2-bug/m-p/1081276#M121927</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-02-22T18:01:12Z</dc:date>
    </item>
  </channel>
</rss>

