<?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 :-) in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125337#M7465</link>
    <description>&lt;P&gt;:-)&lt;/P&gt;&lt;P&gt;Ahhh okay I understand .. cannot think of any other alternatives&amp;nbsp;unless you modify the SDK&amp;nbsp;source code.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;nikos&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2019 20:51:36 GMT</pubDate>
    <dc:creator>nikos1</dc:creator>
    <dc:date>2019-01-04T20:51:36Z</dc:date>
    <item>
      <title>Openvino threading question</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125332#M7460</link>
      <description>&lt;P&gt;Hi everyone and happy new year!&lt;/P&gt;&lt;P&gt;I have a question related to Openvino.&lt;/P&gt;&lt;P&gt;is it possible to create N threads (using for example pthreads) and inside each thread have an instance of Openvino network?&lt;/P&gt;&lt;P&gt;Right now (if I'm understanding correctly) to use multiple threads (although inside openvino) is to use PluginConfigParams::KEY_CPU_THREADS_NUM when loading the network.&lt;/P&gt;&lt;P&gt;If it's not possible to have N threads would it be possible to have N processes? I tested running N benchmark_app processes, each using one thread (as a cli argument) but I ended up utilizing one core for all processes. I don't know if some environment variable would solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125332#M7460</guid>
      <dc:creator>k__alex2</dc:creator>
      <dc:date>2019-01-02T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Hi Alex,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125333#M7461</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Have you tried to set OMP_NUM_THREADS environment variable? If not, you should give that a try it's worked for me.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Monique Jones&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 20:00:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125333#M7461</guid>
      <dc:creator>Monique_J_Intel</dc:creator>
      <dc:date>2019-01-02T20:00:23Z</dc:date>
    </item>
    <item>
      <title>Hi Monique,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125334#M7462</link>
      <description>&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;Thanks for the answer. I have used OMP_NUM_THREADS but ended up not using it..&lt;/P&gt;&lt;P&gt;Here's my problem, if you have N instances of OpenVino and set OMP_NUM_THREADS to N, you end up with N^2 threads, which is something I don't want..&lt;/P&gt;&lt;P&gt;If you have N instances of OpenVino and set OMP_NUM_THREADS to 1, then all instances share the single core, which again is not something I want.&lt;/P&gt;&lt;P&gt;I ended up setting KEY_CPU_BIND_THREAD to NO and setting KEY_CPU_THREADS_NUM to 1. So I can have N OpenVino instances and each instance can use one core. I know it's a crappy solution, I'm not proud of it, but I couldn't find any alternative, if there is however please let me know. Right now, I can't use (due to higher bias) batchsize &amp;gt;1.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:23:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125334#M7462</guid>
      <dc:creator>k__alex2</dc:creator>
      <dc:date>2019-01-03T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Hi Alex,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125335#M7463</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;is it possible to create N threads (using for example pthreads) and inside each thread have an instance of Openvino network?&lt;/P&gt;&lt;P&gt;It is possible, but may&amp;nbsp;depend on the OS and inference device. I am running multiple OpenVino instances from various threads +&amp;nbsp;different networks. Are you running on Linux-CPU device? In one of my pipelines, on Windows, I hit some threading issues and had to&amp;nbsp;mutex around them. What issues are you seeing?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 02:20:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125335#M7463</guid>
      <dc:creator>nikos1</dc:creator>
      <dc:date>2019-01-04T02:20:11Z</dc:date>
    </item>
    <item>
      <title>Γεια σου νικο :) ,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125336#M7464</link>
      <description>&lt;P&gt;Γεια σου νικο :) ,&lt;/P&gt;&lt;P&gt;The main issue is, how do you go about pinning each Openvino instance's thread to a separate core (assuming each openvino instance has a single thread for inference).&lt;/P&gt;&lt;P&gt;Because right now, I have N threads, and each thread has it's own OpenVino instance, each Openvino creates one thread as well (due to setting KEY_CPU_THREADS_NUM to 1 in LoadNetwork config), and it works ok, other than that, instead of saturating N cores, I see utilization across all cores, that's why I want to pin the threads on cores (apart from any affinity related benefits).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:16:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125336#M7464</guid>
      <dc:creator>k__alex2</dc:creator>
      <dc:date>2019-01-04T16:16:25Z</dc:date>
    </item>
    <item>
      <title>:-)</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125337#M7465</link>
      <description>&lt;P&gt;:-)&lt;/P&gt;&lt;P&gt;Ahhh okay I understand .. cannot think of any other alternatives&amp;nbsp;unless you modify the SDK&amp;nbsp;source code.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;nikos&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 20:51:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Openvino-threading-question/m-p/1125337#M7465</guid>
      <dc:creator>nikos1</dc:creator>
      <dc:date>2019-01-04T20:51:36Z</dc:date>
    </item>
  </channel>
</rss>

