<?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 Using parallelization in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793181#M587</link>
    <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1331513396890="58" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=240170" href="https://community.intel.com/en-us/profile/240170/" class="basic"&gt;groupw_bench&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;...Can I assume that this means there's no way to &lt;SPAN style="text-decoration: underline;"&gt;take advantage of the multiple processors except by reorganizing the program&lt;BR /&gt;code for multiple thread operation&lt;/SPAN&gt; -- which isn't practical? It's evident that the compiler's attempt at&lt;BR /&gt;identifying and implementing multiple threads is doing more harm than good...&lt;/I&gt;&lt;/DIV&gt;&lt;BR /&gt;You've experiencedabsolutely expected problem. There is no magic here and may be anext generation of&lt;BR /&gt;compilers will finally do this better. I've experienced a completely differentproblem when a single-threaded&lt;BR /&gt;application &lt;SPAN style="text-decoration: underline;"&gt;stopped working&lt;/SPAN&gt; on a computer with four CPUs and the only solution was to call '&lt;STRONG&gt;SetThreadAffinityMask&lt;/STRONG&gt;( ... )'&lt;BR /&gt;&lt;STRONG&gt;Win32&lt;/STRONG&gt; API function to enforce execution on one CPU. So, you'll need to consider a multi-threaded version of&lt;BR /&gt;your legacy Fortran program in order to take advantages of multiple CPUs.&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Mar 2012 01:03:20 GMT</pubDate>
    <dc:creator>SergeyKostrov</dc:creator>
    <dc:date>2012-03-12T01:03:20Z</dc:date>
    <item>
      <title>Using parallelization</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793179#M585</link>
      <description>I'm working with the latest Intel Fortran compiler and a legacy Fortran program written as a single thread application, and got VTune for a trial. It showed, not surprisingly, that only one or two of the 8 logical CPUs (in a 4 core i7 machine) are being used. By turning on the compiler parallelization feature and dropping the parallelization threshold to 25, VTune shows much better utilization of multiple cores (average went from 2.35 to 6.39).&lt;BR /&gt;&lt;BR /&gt;However, the analysis also shows a great deal of time spent by kmp_fork_call and NtDelayExection which are nothing explicitly called by the program. I haven't been able to find much out about what these are, why they're being called, and what's calling them. But I do know that execution time has increased by about 50%. Setting the parallelization threshold to anything other than 100 results in a performance hit, and setting it at 100 gives the same results as turning parallelization off.&lt;BR /&gt;&lt;BR /&gt;Can I assume that this means there's no way to take advantage of the multiple processors except by reorganizing the program code for multiple thread operation -- which isn't practical? It's evident that the compiler's attempt at identifying and implementing multiple threads is doing more harm than good.&lt;BR /&gt;&lt;BR /&gt;Please let me know if this would be more appropriately posted in the VTune, Fortran compiler, or some other sub-forum.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 10 Mar 2012 06:26:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793179#M585</guid>
      <dc:creator>groupw_bench</dc:creator>
      <dc:date>2012-03-10T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Using parallelization</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793180#M586</link>
      <description>If you're willing to give more detail (or a sample source code), follow-up on a Fortran compiler forum would be appropriate (Windows or linux/Mac, as the case may be).&lt;BR /&gt;A likely supposition might be that the loops aren't long enough to benefit from so many threads, or that the application isn't suitable for HyperThreading. You could set OMP_NUM_THREADS to at most 4, and set KMP_AFFINITY=compact,1 (spread the threads on separate cores).&lt;BR /&gt;The Openmp-profile report (at reduced number of threads) might be useful to quote. It should show you parallel library performance data by parallel region.&lt;BR /&gt;If the program is structured so as to make OpenMP impractical, it may not be surprising that the compiler's attempt to do it automatically is disappointing.</description>
      <pubDate>Sun, 11 Mar 2012 22:38:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793180#M586</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-03-11T22:38:24Z</dc:date>
    </item>
    <item>
      <title>Using parallelization</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793181#M587</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1331513396890="58" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=240170" href="https://community.intel.com/en-us/profile/240170/" class="basic"&gt;groupw_bench&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;...Can I assume that this means there's no way to &lt;SPAN style="text-decoration: underline;"&gt;take advantage of the multiple processors except by reorganizing the program&lt;BR /&gt;code for multiple thread operation&lt;/SPAN&gt; -- which isn't practical? It's evident that the compiler's attempt at&lt;BR /&gt;identifying and implementing multiple threads is doing more harm than good...&lt;/I&gt;&lt;/DIV&gt;&lt;BR /&gt;You've experiencedabsolutely expected problem. There is no magic here and may be anext generation of&lt;BR /&gt;compilers will finally do this better. I've experienced a completely differentproblem when a single-threaded&lt;BR /&gt;application &lt;SPAN style="text-decoration: underline;"&gt;stopped working&lt;/SPAN&gt; on a computer with four CPUs and the only solution was to call '&lt;STRONG&gt;SetThreadAffinityMask&lt;/STRONG&gt;( ... )'&lt;BR /&gt;&lt;STRONG&gt;Win32&lt;/STRONG&gt; API function to enforce execution on one CPU. So, you'll need to consider a multi-threaded version of&lt;BR /&gt;your legacy Fortran program in order to take advantages of multiple CPUs.&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Mar 2012 01:03:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Using-parallelization/m-p/793181#M587</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-03-12T01:03:20Z</dc:date>
    </item>
  </channel>
</rss>

