<?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 H264 Encoder Thread Usage in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835357#M5893</link>
    <description>&lt;P&gt;Hello victor,&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I'm not using OPENMP and I set H264EncoderParams.numThreads to 1. Also number of slices in par file is set to 1.&lt;/P&gt;&lt;P&gt;Could you have a check on the following post? This post discussed OpenMP threading performance and the steps to disable the OpenMP threading: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=75300"&gt;http://software.intel.com/en-us/forums/showthread.php?t=75300&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;To disable the OMP threaded in the Codec, you can check at the \audio-video-codecs\Makefile file, and remove the following: &lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;ifeq ("$(OPENMP_SUPPORT)","")&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;CFLAGS += -openmp&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;else&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;ifeq ($(OPENMP_SUPPORT),YES)&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;CFLAGS += -fopenmp&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;endif&lt;/P&gt;&lt;P&gt;No additional threadings are expected to be created if OpenMP runtime library is not linked with your application.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
    <pubDate>Fri, 24 Dec 2010 08:22:47 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2010-12-24T08:22:47Z</dc:date>
    <item>
      <title>H264 Encoder Thread Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835356#M5892</link>
      <description>Hello all,&lt;DIV&gt;I'm encoding streams into H264 with H264Enc and when I encode 3 streamseach in one thread CPU usage is around 5% (I am using i7 machine)&lt;/DIV&gt;&lt;DIV&gt;But when I encode 9 streams CPU usage is around 85%.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Sure I don't expect linear increase, it would beexponential because of increased number of threads,more context switches etc. But isn't this an insane increase?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm not using OPENMP and I set H264EncoderParams.numThreadsto 1. Also number of slicesin par file is set to 1.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems that each encoder uses 3 threads. I'm not sure if it is correct way to check but I am looking total thread numbers, for 9 streams 39 , 8 streams 36, 7 streams 33. Which seems that each encoder using 3 threads.What I'm doing is just start a new thread for each stream which has encoding loop and nothing else at all. Shouldn't each stream use just 1 thread? What can be these extra 2 threads for each encoder?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I also tried to set ippSetNumThreads(1); And since I am using static linking,it returnedippStsNoOperation (For static library internal threading is not supported)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any help will be appreciated&lt;/DIV&gt;&lt;DIV&gt;Many thanks&lt;/DIV&gt;&lt;DIV&gt;-victor&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Dec 2010 08:59:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835356#M5892</guid>
      <dc:creator>vardar</dc:creator>
      <dc:date>2010-12-23T08:59:14Z</dc:date>
    </item>
    <item>
      <title>H264 Encoder Thread Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835357#M5893</link>
      <description>&lt;P&gt;Hello victor,&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I'm not using OPENMP and I set H264EncoderParams.numThreads to 1. Also number of slices in par file is set to 1.&lt;/P&gt;&lt;P&gt;Could you have a check on the following post? This post discussed OpenMP threading performance and the steps to disable the OpenMP threading: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=75300"&gt;http://software.intel.com/en-us/forums/showthread.php?t=75300&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;To disable the OMP threaded in the Codec, you can check at the \audio-video-codecs\Makefile file, and remove the following: &lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;ifeq ("$(OPENMP_SUPPORT)","")&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;CFLAGS += -openmp&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;else&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;ifeq ($(OPENMP_SUPPORT),YES)&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;CFLAGS += -fopenmp&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;endif&lt;/P&gt;&lt;P&gt;No additional threadings are expected to be created if OpenMP runtime library is not linked with your application.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2010 08:22:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835357#M5893</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-12-24T08:22:47Z</dc:date>
    </item>
    <item>
      <title>H264 Encoder Thread Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835358#M5894</link>
      <description>Hi dear Chao,&lt;DIV&gt;many thanks for your endless support.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Unfortunately I couldn't find mentioned text in makefile.&lt;/DIV&gt;&lt;DIV&gt;I'm using windows samples on win32 platform and I'm copying openmp related text in my makefile file.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV id="_mcePaste"&gt;!IF "$(COMP)" == "icl101" || "$(COMP)" == "icl110"&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;CFLAGS = $(CFLAGS) /Qopenmp /Qopenmp-lib:compat&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ICL_OMPLIB_LINK = libiomp5md.lib&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;!ENDIF&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;!ENDIF&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;!IF "$(CC)" == "cl.exe" &amp;amp;&amp;amp; "$(ARCH)" == "win32"&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;CFLAGS = $(CFLAGS) /openmp&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;!ENDIF&lt;/DIV&gt;!IF "$(COMP)" == "icl101" || "$(COMP)" == "icl110"CFLAGS = $(CFLAGS) /Qopenmp /Qopenmp-lib:compatICL_OMPLIB_LINK = libiomp5md.lib!ENDIF!ENDIF&lt;BR /&gt;!IF "$(CC)" == "cl.exe" &amp;amp;&amp;amp; "$(ARCH)" == "win32"CFLAGS = $(CFLAGS) /openmp&lt;/DIV&gt;&lt;DIV&gt;!ENDIF&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Shoudl I simply remove all of them?&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Dec 2010 09:53:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835358#M5894</guid>
      <dc:creator>vardar</dc:creator>
      <dc:date>2010-12-24T09:53:45Z</dc:date>
    </item>
    <item>
      <title>H264 Encoder Thread Usage</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835359#M5895</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;The OpenMP compiling flag I suggested came from the old version of makefile. In the new version of IPP sample code, it is to remove the code you suggest. &lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2010 02:56:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-Encoder-Thread-Usage/m-p/835359#M5895</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-12-27T02:56:44Z</dc:date>
    </item>
  </channel>
</rss>

