<?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 The question might be more in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136768#M5759</link>
    <description>&lt;P&gt;The question might be more appropriate for a help forum pertaining to the compiler of your choice, although you don't give much information.&amp;nbsp; A&amp;nbsp; possible reason for the performance loss you describe is that OpenMP may prevent a compiler optimization, such as loop switching, fusion, or dead code elimination.&amp;nbsp; You are correct that some OpenMP errors, such as race conditions, are likely not to show up when running a single thread.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Sep 2018 23:50:34 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2018-09-30T23:50:34Z</dc:date>
    <item>
      <title>OpenMP slower than no OpenMP</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136767#M5758</link>
      <description>&lt;P&gt;Here is a Friday post that has a sufficient lack of information that will probably be impossible to answer.&amp;nbsp; I have some older Fortran code I'm trying to improve the performance of. VTune shows 75% of serial execution is consumed calculating the numerical Jacobian of an expensive function.&amp;nbsp; It's easily to parallelize.&amp;nbsp; I first used MPI, and that does show modest improvement when a few processes are added, but it does not scale very well probably because of the large Jacobian matrix that must be broadcast to all the processes.&lt;/P&gt;

&lt;P&gt;So, I also tired OpenMP, thinking that it might do slightly better since it does not need to broadcast the matrix.&amp;nbsp; However, when I run the serial code with OMP directives disabled, it runs 4 times fast than the code with the OMP directives enabled, but using only one thread.&amp;nbsp; If more threads are used, some improvement occurs, but it never gets better than the code with out the OMP directives.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;My question: Does OpenMP incur a large overhead even if only one thread is used so there is no forking?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 21:18:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136767#M5758</guid>
      <dc:creator>j0e</dc:creator>
      <dc:date>2018-09-28T21:18:35Z</dc:date>
    </item>
    <item>
      <title>The question might be more</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136768#M5759</link>
      <description>&lt;P&gt;The question might be more appropriate for a help forum pertaining to the compiler of your choice, although you don't give much information.&amp;nbsp; A&amp;nbsp; possible reason for the performance loss you describe is that OpenMP may prevent a compiler optimization, such as loop switching, fusion, or dead code elimination.&amp;nbsp; You are correct that some OpenMP errors, such as race conditions, are likely not to show up when running a single thread.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 23:50:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136768#M5759</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-09-30T23:50:34Z</dc:date>
    </item>
    <item>
      <title>Thanks Tim.  Sorry for the</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136769#M5760</link>
      <description>&lt;P&gt;Thanks Tim.&amp;nbsp; Sorry for the lack of info, as this is one of those cases where providing an example problem that exhibits the problem is not easy to come up with, and providing the whole code is not practical.&amp;nbsp; I am using the latest Intel PS XE, cluster edition running on Windows 10 (I have not tested on my CentOS cluster yet).&amp;nbsp; I'll continue to play around with the various Intel tools to see if I can locate the slow down, but your hypothesis of loss of compiler optimization sounds interesting.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 22:09:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/OpenMP-slower-than-no-OpenMP/m-p/1136769#M5760</guid>
      <dc:creator>j0e</dc:creator>
      <dc:date>2018-10-02T22:09:05Z</dc:date>
    </item>
  </channel>
</rss>

