<?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: Re:How to disable multi-core? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1190919#M27354</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your answer and sorry for my late reply!&lt;/P&gt;
&lt;P&gt;This is already what I am doing, I am linking to lib with mt&lt;LI-WRAPPER&gt;&lt;VAR class="keyword"&gt;&lt;/VAR&gt; suffix in a library name.&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;As you can see in the attached graph, I can see an improvement if I use 2 threads instead of 1, but after that, there is no more improvement for 3 to 8 threads on my Core i7 10th Gen (8 cores) CPU.&lt;BR /&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Graph is for processing a large RGB image (13000x10000) in tiles of 2048x2048. For each tile, I convert from 8-bit RGB to 32-bit float RGB and apply a serie IPP functions, then I convert back to 8-bit RGB.&lt;/P&gt;
&lt;P&gt;If I replace IPP functions with a sleep(1000), I can see a x8 improvement with eight core.&lt;/P&gt;
&lt;P&gt;But with IPP functions, the more I use threads, the more each tile take time to compute (from about 100ms for 1 thread, to about 800ms for 8 threads). I checked that I am not memory limited.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) That's why I thought that IPP was using thread internally. But if not, that means that I am bandwish limited?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;p.s. for others processing, I can see an improvement up to 3 threads instead of 2, but no more improvement for 4 to 8 threads.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) How can I try enable multi-threading inside IPP? With dynamic linking, SetNumThreads() always return ippStsNoOperation. Should I use the deprecated multithread lib/dll?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 06:59:58 GMT</pubDate>
    <dc:creator>Briard__David</dc:creator>
    <dc:date>2020-07-09T06:59:58Z</dc:date>
    <item>
      <title>How to disable multi-core?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1189298#M27343</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I thought that intel IPP single threaded dlls was single core, but I just noticed that it wasn't. For example, if I create 8 threads, each function take 800ms, and if I am using only 1 thread, each function take 100ms, on my 8-core CPU. So IPP is creating threads internally.&lt;/P&gt;
&lt;P&gt;I am managing threads myself in my program and &lt;STRONG&gt;I would like to force intel IPP to be single threaded only.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- I tried to call ippSetNumThreads but it returns status NoOperation, and ippGetNumThreads return NoOp and 1.&lt;/P&gt;
&lt;P&gt;- I also tried to enable OpenMP support in the DLL where I am using Intel IPP because I read &lt;EM&gt;"For applications that use OpenMP threading, nested threading is disabled by default". &lt;/EM&gt;My application is a C#/WPF and I am using Intel IPP using a C++/CLR wrapper assembly.&lt;/P&gt;
&lt;P&gt;My dll link to ippcore.lib;ippvm.lib;ipps.lib;ippi.lib;ippcc.lib;ippcv.lib.&lt;/P&gt;
&lt;P&gt;Any help is welcome.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 12:15:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1189298#M27343</guid>
      <dc:creator>Briard__David</dc:creator>
      <dc:date>2020-07-03T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re:How to disable multi-core?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1189828#M27347</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;You may explicitly link with the s&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;, Verdana, Arial, sans-serif; font-size: 12px;"&gt;ingle-threaded&lt;/SPAN&gt;&lt;B style="font-family: &amp;quot;Intel Clear&amp;quot;, Verdana, Arial, sans-serif; font-size: 12px;"&gt; &lt;/B&gt;&lt;SPAN style="font-size: 12px;"&gt;version of IPP. Please check the IPP User Guide to refer more details&lt;/SPAN&gt;: &lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-guide/top/linking-your-application-with-intel-integrated-performance-primitives/linking-options.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-guide/top/linking-your-application-with-intel-integrated-performance-primitives/linking-options.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jul 2020 10:38:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1189828#M27347</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-06T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to disable multi-core?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1190919#M27354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your answer and sorry for my late reply!&lt;/P&gt;
&lt;P&gt;This is already what I am doing, I am linking to lib with mt&lt;LI-WRAPPER&gt;&lt;VAR class="keyword"&gt;&lt;/VAR&gt; suffix in a library name.&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;As you can see in the attached graph, I can see an improvement if I use 2 threads instead of 1, but after that, there is no more improvement for 3 to 8 threads on my Core i7 10th Gen (8 cores) CPU.&lt;BR /&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Graph is for processing a large RGB image (13000x10000) in tiles of 2048x2048. For each tile, I convert from 8-bit RGB to 32-bit float RGB and apply a serie IPP functions, then I convert back to 8-bit RGB.&lt;/P&gt;
&lt;P&gt;If I replace IPP functions with a sleep(1000), I can see a x8 improvement with eight core.&lt;/P&gt;
&lt;P&gt;But with IPP functions, the more I use threads, the more each tile take time to compute (from about 100ms for 1 thread, to about 800ms for 8 threads). I checked that I am not memory limited.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) That's why I thought that IPP was using thread internally. But if not, that means that I am bandwish limited?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;p.s. for others processing, I can see an improvement up to 3 threads instead of 2, but no more improvement for 4 to 8 threads.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) How can I try enable multi-threading inside IPP? With dynamic linking, SetNumThreads() always return ippStsNoOperation. Should I use the deprecated multithread lib/dll?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 06:59:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-disable-multi-core/m-p/1190919#M27354</guid>
      <dc:creator>Briard__David</dc:creator>
      <dc:date>2020-07-09T06:59:58Z</dc:date>
    </item>
  </channel>
</rss>

