<?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: problem with optimization &amp;gt; -O0 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759053#M14540</link>
    <description>&lt;DIV&gt;If your program depends on implicit static data initialized to 0, the switches -zero and -save may help.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;With ifort 8.0, -O1 is the same as -O2. With ifc 7.1, -O1 will not vectorize. &lt;/DIV&gt;</description>
    <pubDate>Fri, 12 Mar 2004 03:14:19 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2004-03-12T03:14:19Z</dc:date>
    <item>
      <title>problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759051#M14538</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hello,&lt;/DIV&gt;
&lt;DIV&gt;when porting(fortran) codes to Linux/Intel andgettingthem running&lt;/DIV&gt;
&lt;DIV&gt;Ihad toset the optimization level to -O0 at least for some files.&lt;/DIV&gt;
&lt;DIV&gt;Otherwise the codes crash. (Note that the codes in question&lt;/DIV&gt;
&lt;DIV&gt;run without problems on UNIXes using different compilers and &lt;/DIV&gt;
&lt;DIV&gt;high optimization levels). Strangely there is no difference &lt;/DIV&gt;
&lt;DIV&gt;between 7.1 and 8.0 Intel compilers in that respect.&lt;/DIV&gt;
&lt;DIV&gt;Obviously -O0 optimized code runs slow (which is most strongly&lt;/DIV&gt;
&lt;DIV&gt;noticeble on Itanium).&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Whatexactly-O1 does?&lt;/DIV&gt;
&lt;DIV&gt;Can I manually enable some of -O1 features but not all&lt;/DIV&gt;
&lt;DIV&gt;so thatto figure out what kind of optimization crashes the codes?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Unfortunately all my attempts to improveperformance of the codes&lt;/DIV&gt;
&lt;DIV&gt;compiled with -O0by adding other switches did not make significant difference.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2004 01:26:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759051#M14538</guid>
      <dc:creator>zok</dc:creator>
      <dc:date>2004-03-12T01:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759052#M14539</link>
      <description>&lt;DIV&gt;I would suggest you try to identify what causes the programs to fail at -O2. Report the problem to Intel Support if it looks like a compiler bug.&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2004 01:59:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759052#M14539</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-03-12T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759053#M14540</link>
      <description>&lt;DIV&gt;If your program depends on implicit static data initialized to 0, the switches -zero and -save may help.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;With ifort 8.0, -O1 is the same as -O2. With ifc 7.1, -O1 will not vectorize. &lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2004 03:14:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759053#M14540</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-03-12T03:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759054#M14541</link>
      <description>&lt;DIV&gt;-zero is not yet implemented in 8.0.&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2004 03:35:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759054#M14541</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-03-12T03:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759055#M14542</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Many thanks for the messages!&lt;BR /&gt;Yes, -zero is unfortunately not implemented.&lt;BR /&gt;And I wonder if support for gprof is fully provided.&lt;/P&gt;
&lt;P&gt;I wanted to find out a hotspot of a poorly performingsubroutine which I had to compile with -O0 but I could not get profiling to work on Itanium. ifort 8.0 can compile a simple test program with -p (or -qp) butthe resulting code crashes. Can this be related to libgcc or kernel version?&lt;/P&gt;
&lt;P&gt;It also did occur to me the problem with optimization could be related to vectorization. Is this the main difference between -O0 and -O1? Does it make sense totry -O1 and !DEC$ NOVECTOR before every loop?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2004 09:36:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759055#M14542</guid>
      <dc:creator>zok</dc:creator>
      <dc:date>2004-03-12T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759056#M14543</link>
      <description>&lt;DIV&gt;You don't get vectorization unless you use -xN or -xW (or -xP).&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Have you tried VTune?&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2004 21:45:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759056#M14543</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-03-12T21:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759057#M14544</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;My problem is Itanium, not P4. So -xW etc are not applicable.&lt;/P&gt;
&lt;P&gt;I have not tried VTune on Itanium yet. VTune requires very specific versions of libraries and warns that it may not work with others. I am not prepared to change the libs as yet.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2004 23:15:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759057#M14544</guid>
      <dc:creator>zok</dc:creator>
      <dc:date>2004-03-12T23:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759058#M14545</link>
      <description>Profiling with gprof does not work on the&lt;BR /&gt;Itanium.  It messes up argument passing between&lt;BR /&gt;different modules (see attached test case).&lt;BR /&gt;&lt;BR /&gt;I have submitted a bug report about this (264079),&lt;BR /&gt;but no answer so far.</description>
      <pubDate>Fri, 24 Sep 2004 20:00:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759058#M14545</guid>
      <dc:creator>zfkts</dc:creator>
      <dc:date>2004-09-24T20:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759059#M14546</link>
      <description>For ifort Itanium, optimization of at least -O1 -mp is generally required, to get any reasonable performance. No point in profiling  at -O0. The nearest thing to "vectorization" is SoftWare Pipelining, which doesn't happen until -O2 (equivalent to default) is invoked.  -O1 already invokes risky optimization, unless -mp is added.  I think the -zero switch is available now, in case you have failed to initialize important data.&lt;BR /&gt;-O1 -mp is a reasonable option for minimum code size, high probability of working, and reasonable compile time.  Unless you add -save -zero, it would already depend on your source complying with Fortran standard.&lt;BR /&gt;&lt;BR /&gt;I have examples of up to a few thousand source lines where gprof works with current ifort, as well as larger examples where it fails.  It is known not to work at all with earlier versions of Intel Fortran (e.g. prior to March 2004), or with older versions of glibc.  glibc-2.2.4-32.15 or newer are definitely OK. I've been told the correction came in around March 2003. If gprof doesn't work with gcc, you know you need some linux upgrades.  Bug reports with small examples where gprof fails with current Intel compiler releases are appreciated, as it is quite important to me that it should be made reliable.</description>
      <pubDate>Fri, 24 Sep 2004 22:46:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759059#M14546</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-09-24T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with optimization &gt; -O0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759060#M14547</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;$ ifort -V&lt;BR /&gt;Intel Fortran Itanium Compiler for Itanium-based applications&lt;BR /&gt;Version 8.0   Build 20040716 Package ID: l_fc_pc_8.0.046_pl050.1&lt;BR /&gt;Copyright (C) 1985-2004 Intel Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;ifort: Command line error: no files specified; for help type "ifort -help"&lt;BR /&gt;$ cat test-single.f90&lt;BR /&gt;! Here's an even more simple test case.&lt;BR /&gt;! When I compile this with "ifort -p -o test-single test-single.f90", the&lt;BR /&gt;! output is   0.0000000E+00&lt;BR /&gt;&lt;BR /&gt;module myupdate&lt;BR /&gt;contains&lt;BR /&gt;  subroutine update(v)&lt;BR /&gt;    real, intent(inout) :: v&lt;BR /&gt;    v = v+5.&lt;BR /&gt;  end subroutine update&lt;BR /&gt;end module myupdate&lt;BR /&gt;&lt;BR /&gt;program main&lt;BR /&gt;  use myupdate&lt;BR /&gt;  real :: val&lt;BR /&gt;  val = 3.4&lt;BR /&gt;  call update(val)&lt;BR /&gt;  print *,val&lt;BR /&gt;end program main&lt;BR /&gt;&lt;BR /&gt;$ ifort -o test-single test-single.f90&lt;BR /&gt;$ ./test-single&lt;BR /&gt;   8.400000&lt;BR /&gt;$ ifort -p -o test-single test-single.f90&lt;BR /&gt;$ ./test-single&lt;BR /&gt;  0.0000000E+00&lt;BR /&gt;[zfkts@byzrzd Anneal-Test]$ rpm -q glibc&lt;BR /&gt;glibc-2.3.2-95.27&lt;BR /&gt;glibc-2.3.2-95.27&lt;BR /&gt;[zfkts@byzrzd Anneal-Test]$ uname --s -r -v -m -o&lt;BR /&gt;Linux 2.4.21-20.EL #1 SMP Wed Aug 18 20:30:22 EDT 2004 ia64 GNU/Linux&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Sep 2004 18:48:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-optimization-gt-O0/m-p/759060#M14547</guid>
      <dc:creator>zfkts</dc:creator>
      <dc:date>2004-09-27T18:48:32Z</dc:date>
    </item>
  </channel>
</rss>

