<?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: Optimization problem in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907067#M82363</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Examine your code to see if dealing with Large Numbers +/- Small Differences. Thenin expressions (loops)where the Large Number portion can be computed seperately from the Small Differences portion do the extra effort of splitting up the values.&lt;/P&gt;
&lt;P&gt; sum = 0.0&lt;BR /&gt; do i=1,N&lt;BR /&gt; sum = sum + A(i)&lt;BR /&gt; end do&lt;/P&gt;
&lt;P&gt;becomes&lt;/P&gt;
&lt;P&gt; sum = 0.0&lt;BR /&gt;sumL = 0.0&lt;BR /&gt; sumS = 0.0&lt;BR /&gt; do i=1,N&lt;BR /&gt; if(A(i) .ge. 1.0) then&lt;BR /&gt; sumL = sumL + A(i)&lt;BR /&gt; else&lt;BR /&gt; sumS = sumS + A(i)&lt;BR /&gt; endif&lt;BR /&gt; end do&lt;BR /&gt; sum = sumL + sumS&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2008 16:11:15 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2008-11-12T16:11:15Z</dc:date>
    <item>
      <title>Optimization problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907064#M82360</link>
      <description>&lt;P&gt;When selectingOptimization = Maximize Speed in the Properties Page of IVF , the results are rather different compared with optimization disabled. Differences found are in the order of 10-20 %, so you can't neglect it.&lt;/P&gt;
&lt;P&gt;To be honest, I just expected my simulations to run faster, but was not prepared for this. How to deal with these differences, without reverting to disabling the optimization at all. Speed matters.&lt;/P&gt;
&lt;P&gt;Thxs.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2008 10:33:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907064#M82360</guid>
      <dc:creator>Antoon</dc:creator>
      <dc:date>2008-11-12T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907065#M82361</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/404707"&gt;Antoon&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;When selectingOptimization = Maximize Speed in the Properties Page of IVF , the results are rather different compared with optimization disabled. Differences found are in the order of 10-20 %, so you can't neglect it.&lt;/P&gt;
&lt;P&gt;To be honest, I just expected my simulations to run faster, but was not prepared for this. How to deal with these differences, without reverting to disabling the optimization at all. Speed matters.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If the differences are that large, I would be concerned about errors in the application. Some of those might surface with the /check options. Correctness matters. If you depend on promotion of single precision expressions to double, you should consider writing it in.&lt;/P&gt;
&lt;P&gt;On current CPUs, you can set /Qprec-div /Qprec-sqrt /assume:protect_parens with little impact on performance. If you require /Qftz-, set that.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2008 14:46:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907065#M82361</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-11-12T14:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907066#M82362</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;When optimizations are disabled you may also be disabling (some of the)vectorization and some loop unrolling. Depending on your application these may make a significant difference.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2008 16:00:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907066#M82362</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2008-11-12T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907067#M82363</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Examine your code to see if dealing with Large Numbers +/- Small Differences. Thenin expressions (loops)where the Large Number portion can be computed seperately from the Small Differences portion do the extra effort of splitting up the values.&lt;/P&gt;
&lt;P&gt; sum = 0.0&lt;BR /&gt; do i=1,N&lt;BR /&gt; sum = sum + A(i)&lt;BR /&gt; end do&lt;/P&gt;
&lt;P&gt;becomes&lt;/P&gt;
&lt;P&gt; sum = 0.0&lt;BR /&gt;sumL = 0.0&lt;BR /&gt; sumS = 0.0&lt;BR /&gt; do i=1,N&lt;BR /&gt; if(A(i) .ge. 1.0) then&lt;BR /&gt; sumL = sumL + A(i)&lt;BR /&gt; else&lt;BR /&gt; sumS = sumS + A(i)&lt;BR /&gt; endif&lt;BR /&gt; end do&lt;BR /&gt; sum = sumL + sumS&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2008 16:11:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Optimization-problem/m-p/907067#M82363</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2008-11-12T16:11:15Z</dc:date>
    </item>
  </channel>
</rss>

