<?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 With my copy of 17.0.1 64-bit in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-flags/m-p/1097537#M125926</link>
    <description>&lt;P&gt;With my copy of 17.0.1 64-bit, I get the same result with or without -fast.&amp;nbsp; It does emphasize that you are right not to set -fast blindly.&lt;/P&gt;

&lt;P&gt;I have frequently got bad results in recent compilers with combinations of options which are set by -fast, although I don't like to use the entire group.&amp;nbsp; I had an IPS problem report on the subject which was removed from my view recently without notice, so perhaps the compiler team believes it has been corrected.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 22:45:49 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2016-11-25T22:45:49Z</dc:date>
    <item>
      <title>problem with optimization flags</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-flags/m-p/1097536#M125925</link>
      <description>&lt;P&gt;I am encountering a strange problem with the fortran intel 17.0.0 compiler (as obtained through “ifort –v”) when compiling with optimization flags with arrays.&lt;BR /&gt;
	After a series of tests I created the following very simple code&amp;nbsp;to test what is happening.&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;program matrix_define&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; implicit none&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; integer, parameter :: dimen = 3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real*8 :: A(2, dimen)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real*8 :: x(3,dimen)&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(1,1) = 5.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(1,2) = 2.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(1,3) = 1.d0&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(2,1) = 1.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(2,2) = 2.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(2,3) = 3.d0&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(3,1) = 0.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(3,2) = 0.d0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x(3,3) = 0.d0&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; A(2,1:3) = x(1,1:3) - x(2,1:3)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; A(1,1:3) = x(3,1:3) - x(2,1:3)&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; write(*,*) A(1,1:3)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; write(*,*) A(2,1:3)&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end program&amp;nbsp; matrix_define&lt;BR /&gt;
	&lt;BR /&gt;
	As you notice it is a very simple test. It mainly consists of defining the components of a two-dimensional array A(2,3). When I compile using “ifort” without any flags the program assigns the correct values for all A-array elements.&lt;BR /&gt;
	However, when compiling with “ifort –fast” the output values of A are messed up:&lt;BR /&gt;
	The element A(1,2) &amp;nbsp;has the value of A(2,1) while A(2,1) and all other element values are as they should.&lt;/P&gt;

&lt;P&gt;I have tested the same code with the same options with intel fortran 12.0 and 10.0 and no problem appears.&lt;BR /&gt;
	&lt;BR /&gt;
	Is it possible that there a problem in arrays with optimization flags in intel fortran 17.0?&lt;/P&gt;

&lt;P&gt;Thank you very much for your time and efforts!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 12:22:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-flags/m-p/1097536#M125925</guid>
      <dc:creator>Foteinopoulou__Kater</dc:creator>
      <dc:date>2016-11-25T12:22:52Z</dc:date>
    </item>
    <item>
      <title>With my copy of 17.0.1 64-bit</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-flags/m-p/1097537#M125926</link>
      <description>&lt;P&gt;With my copy of 17.0.1 64-bit, I get the same result with or without -fast.&amp;nbsp; It does emphasize that you are right not to set -fast blindly.&lt;/P&gt;

&lt;P&gt;I have frequently got bad results in recent compilers with combinations of options which are set by -fast, although I don't like to use the entire group.&amp;nbsp; I had an IPS problem report on the subject which was removed from my view recently without notice, so perhaps the compiler team believes it has been corrected.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 22:45:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-flags/m-p/1097537#M125926</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-11-25T22:45:49Z</dc:date>
    </item>
  </channel>
</rss>

