<?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 H.264 encoding with multiple instances of UMC encoder in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801836#M3335</link>
    <description>&lt;P&gt;Venkat, &lt;/P&gt;&lt;P&gt;Thanks for sharing the experience here.&lt;/P&gt;&lt;P&gt;For those who also want to using dynamic IPP libraries in case, it can call ippSetNumThreads() in the application to disable the internal threading in the IPP function. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chao &lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2010 02:33:50 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2010-07-12T02:33:50Z</dc:date>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801829#M3328</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to encode to H.264 from multiple streams, each with its own instance of UMC encoder. I could do this in Version 5.3 without any issue.&lt;BR /&gt;&lt;BR /&gt;However in Version 6.1, when I encode one stream the CPU approximately takes 10% of the CPU. When I encode two streams (each with its own instance of UMC encoder), the CPU is 99%. &lt;BR /&gt;&lt;BR /&gt;How do I encode multiple streams each with its own instance of UMC encoder? Thank you.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Venkat.</description>
      <pubDate>Thu, 10 Jun 2010 14:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801829#M3328</guid>
      <dc:creator>Venkat_R_1</dc:creator>
      <dc:date>2010-06-10T14:09:13Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801830#M3329</link>
      <description>&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;"However in Version 6.1, when I encode one stream the CPU approximately takes 10% of the CPU. When I encode two streams (each with its own instance of UMC encoder), the CPU is 99%."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;since 10% CPU is enough for the one stream, I suppose you do not need to use internal OpenMP threading in UMC encoder. Is it true? &lt;/P&gt;&lt;P&gt;This is possibly a problem related to the application level. How are the two encoders are the application? Is there waiting()/sleep() API or other threading synchronization API used.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chao &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:37:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801830#M3329</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-06-11T13:37:32Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801831#M3330</link>
      <description>Dear Chao,&lt;BR /&gt;&lt;BR /&gt;Yes, we do not need to use internal OpenMP and I set KMP_BLOCKTIME=0.&lt;BR /&gt;&lt;BR /&gt;Thereare frames streaming from the camera all the time, and each camera stream is threaded. Since it is live there is no need to wait/sleep. Hence we do not use these blocking calls.&lt;BR /&gt;&lt;BR /&gt;Out of curiousity, Why do you think more than one streamwill be causing 99% CPU? The same source code is used for Version 5.3 and there was not any issue.&lt;BR /&gt;&lt;BR /&gt;Do I have to set KMP_BLOCKTIME=0 for every instance of the encoder?&lt;BR /&gt;&lt;BR /&gt;Do you have a sample application which instantiates more than one encoder? If so, probably we can eliminate the application level issue.&lt;BR /&gt;&lt;BR /&gt;Please advise. Thank you.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Venkat.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2010 17:43:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801831#M3330</guid>
      <dc:creator>Venkat_R_1</dc:creator>
      <dc:date>2010-06-11T17:43:30Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801832#M3331</link>
      <description>&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&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&gt;ifeq ("$(OPENMP_SUPPORT)","")&lt;/P&gt;&lt;P&gt;CFLAGS += -openmp&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;ifeq ($(OPENMP_SUPPORT),YES)&lt;/P&gt;&lt;P&gt;CFLAGS += -fopenmp&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;Setting KMP_BLOCKTIME is not to disable the OpenMP threading, that is because some known problem discussed here: &lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/high-cpu-usage-and-intel-ipp-threaded-function/" target="_blank"&gt;http://software.intel.com/en-us/articles/high-cpu-usage-and-intel-ipp-threaded-function/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also you need to link with non threaded static libraries. &lt;/P&gt;&lt;P&gt;If you disable the OpenMP threading, it does not need to set the KMP_BLOCKTIME environment. &lt;/P&gt;&lt;P&gt;It is not clear that how each thread is calling the H.264 encoder, For each threading, are they just calling Getframe() function, no blocking or waiting at somewhere? If this is true, it looks each is trying to do encoding all the time, surely it will consume all of the CPU.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Chao&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 06:32:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801832#M3331</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-06-18T06:32:55Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801833#M3332</link>
      <description>Dear Chao,&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestion.&lt;BR /&gt;&lt;BR /&gt;In fact, we use OpenMP support in our application and thus OpenMP is enabled on UMC as well, since UMC source files are part of our project. I believe since both of them use OpenMP, it may be creating "nested threads".&lt;BR /&gt;&lt;BR /&gt;Therefore, I have created a seperate library for UMC source files without OpenMP support and linked those libraries with our application. That did resolve high CPU usage. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also you need to link with non threaded static libraries.&lt;BR /&gt;&lt;BR /&gt;Currently, I am using dynamic (stublib) IPPlibraries. When I tried with static, I could not instantiate more than 4 streams, probably because I have quad core systems(???). But with dynamic libraries I am fine so far. Any particular reason you had wanted to link static libraries?&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Venkat.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2010 12:58:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801833#M3332</guid>
      <dc:creator>Venkat_R_1</dc:creator>
      <dc:date>2010-06-25T12:58:13Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801834#M3333</link>
      <description>&lt;BR /&gt;Hello Venkat, &lt;P&gt;For the question, "But with dynamic libraries I am fine so far. Any particular reason you had wanted to link static libraries?"&lt;/P&gt;&lt;P&gt;Many functions in the dynamic libraries are internally threaded with OpenMP functions; you can check the threaded function list at: \docThreadedFunctionsList.txt. To use the static non-threaded library will help to avoid the enable the internal threaded with your application. ( It looks that you have implemented the high level thread at your application). &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chao&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2010 03:07:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801834#M3333</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-06-28T03:07:21Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801835#M3334</link>
      <description>Dear Chao,&lt;BR /&gt;&lt;BR /&gt;Thanks. As I indicated earlier, most likely the problem was with the nested threads. Currently, I am building the UMC libraries without OpenMP support and linking those libraries with my application which has OpenMP support.&lt;BR /&gt;&lt;BR /&gt;I ran our application with 48 instances of UMC encoder in an i7 system (encoding 340 2CIF frames per second in total) and utilizing less than 50% usage. The performance is, in fact very good and better than expected.&lt;BR /&gt;&lt;BR /&gt;BTW, I am still using dynamic IPPlibraries and that is the only way I could do it.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Venkat.&lt;BR /&gt;&lt;BR /&gt;Note: Ifanyone needs help regarding this issue, please do not hesitate to contact me. Thank you.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2010 20:20:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801835#M3334</guid>
      <dc:creator>Venkat_R_1</dc:creator>
      <dc:date>2010-07-09T20:20:27Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801836#M3335</link>
      <description>&lt;P&gt;Venkat, &lt;/P&gt;&lt;P&gt;Thanks for sharing the experience here.&lt;/P&gt;&lt;P&gt;For those who also want to using dynamic IPP libraries in case, it can call ippSetNumThreads() in the application to disable the internal threading in the IPP function. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chao &lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2010 02:33:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801836#M3335</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-07-12T02:33:50Z</dc:date>
    </item>
    <item>
      <title>H.264 encoding with multiple instances of UMC encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801837#M3336</link>
      <description>Dear Venkat,&lt;DIV&gt;I'll be appreciated if you can share your configuration with us.&lt;/DIV&gt;&lt;DIV&gt;Which version of IPP you are using?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;By the way which model i7 do you use? i7 950?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Many thanks for information&lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;/DIV&gt;&lt;DIV&gt;victor&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Dec 2010 14:58:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-encoding-with-multiple-instances-of-UMC-encoder/m-p/801837#M3336</guid>
      <dc:creator>vardar</dc:creator>
      <dc:date>2010-12-27T14:58:17Z</dc:date>
    </item>
  </channel>
</rss>

