<?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 mkl_set_num_threads() doesn't work in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-doesn-t-work/m-p/1149101#M26952</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I am using MxNet library with MKL support. I need my mxnet predictor use only one thread for calculations. For this purpose I used OMP_NUM_THREADS = 1 environment variable. So it works fine for me. Then I read in MKL documentation that there is a special function mkl_set_num_threads() for that and that it's equivalent to OMP_NUM_THREADS. So I removed this env variable and called mkl_set_num_threads()&amp;nbsp;instead before creating and using predictor.&amp;nbsp;But there was no effect - my predictor still used more than one thread for calculations and it looks like he ignored this function. Maybe I don't know something. Any ideas? Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 18:43:35 GMT</pubDate>
    <dc:creator>Korolev__Roman</dc:creator>
    <dc:date>2019-02-08T18:43:35Z</dc:date>
    <item>
      <title>mkl_set_num_threads() doesn't work</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-doesn-t-work/m-p/1149101#M26952</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I am using MxNet library with MKL support. I need my mxnet predictor use only one thread for calculations. For this purpose I used OMP_NUM_THREADS = 1 environment variable. So it works fine for me. Then I read in MKL documentation that there is a special function mkl_set_num_threads() for that and that it's equivalent to OMP_NUM_THREADS. So I removed this env variable and called mkl_set_num_threads()&amp;nbsp;instead before creating and using predictor.&amp;nbsp;But there was no effect - my predictor still used more than one thread for calculations and it looks like he ignored this function. Maybe I don't know something. Any ideas? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 18:43:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-doesn-t-work/m-p/1149101#M26952</guid>
      <dc:creator>Korolev__Roman</dc:creator>
      <dc:date>2019-02-08T18:43:35Z</dc:date>
    </item>
  </channel>
</rss>

