<?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:how to limit the CPU utilization when MKL is running in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307761#M31889</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We suggest you to use latest version of oneMKL(2021.3) and check if the issue persists.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In addition, You can limit cpu utilization by running the code in sequential mode of oneMKL.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Below is the link for setting oneMKL in sequential mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Aug 2021 11:27:17 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2021-08-18T11:27:17Z</dc:date>
    <item>
      <title>how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307408#M31885</link>
      <description>&lt;P&gt;When I use&amp;nbsp;MKL 2021.2.0 functions for calculating my Intel Core i7-9750H&amp;nbsp;CPU is 100% loaded (all cores).&amp;nbsp;What tools are there to manage CPU utilization?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:21:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307408#M31885</guid>
      <dc:creator>Serjio</dc:creator>
      <dc:date>2021-08-17T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re:how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307761#M31889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We suggest you to use latest version of oneMKL(2021.3) and check if the issue persists.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In addition, You can limit cpu utilization by running the code in sequential mode of oneMKL.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Below is the link for setting oneMKL in sequential mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:27:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307761#M31889</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-08-18T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307845#M31891</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Depending on what kind of functionality you're using form oneMKL, there are different tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For OpenMP:&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/support-functions/threading-control.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/support-functions/threading-control.html&lt;/A&gt;&amp;nbsp;with various service routines which can be used. E.g., you can limit all MKL calls to a fixed number of threads and then, by pinning threads to a subset of CPUs limit the CPU usage.&lt;/P&gt;
&lt;P&gt;For TBB: refer to TBB documentation, there are things like tbb arenas and which can help set the max concurrency limit.&lt;/P&gt;
&lt;P&gt;For MPI (used for cluster components): controls are on the side of the application calling MKL (# MPI processes + potentially if it is MPI/OpenMP, see the OpenMP part).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:19:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307845#M31891</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2021-08-18T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307854#M31892</link>
      <description>&lt;P&gt;Hello Serjio,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally to what Shanmukh wrote, you could try specifying the number of OpenMP (or MKL) threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be done through environment variables or by using certain functions.&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/managing-performance-and-memory/improving-performance-with-threading/techniques-to-set-the-number-of-threads.html" target="_blank" rel="noopener"&gt;This link&lt;/A&gt;&amp;nbsp;to an Intel Developer Guide explains this. And&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/managing-performance-and-memory/improving-performance-with-threading/using-additional-threading-control/onemkl-specific-environment-variables-for-openmp-threading-control.html" target="_self"&gt;this link&lt;/A&gt;&amp;nbsp;shows more practical information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional tips for setting the number of threads locally (you might not need the folder locations if you set the environment variables or use Visual Studio, but I have written them for reference):&lt;/P&gt;
&lt;P&gt;`MKL_Set_Dynamic(int flat)` and `MKL_Set_Num_Threads(int nt)` can be found in mkl_service.h (in the folder .\IntelOneAPI\mkl\latest\include).&lt;/P&gt;
&lt;P&gt;`omp_set_dynamic(int)`, `omp_set_num_threads(int)` and `kmp_set_warnings_off()` (you'll may eventually find out why this last one is useful hehehe) can be found in omp.h (in the folder .\IntelOneAPI\compiler\latest\windows\compiler\include).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Breno&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:45:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1307854#M31892</guid>
      <dc:creator>BrenoA</dc:creator>
      <dc:date>2021-08-18T18:45:08Z</dc:date>
    </item>
    <item>
      <title>Re:how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1309657#M31924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;Has the solution provided helped? Could you please confirm whether we could close this thread from our end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2021 05:51:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1309657#M31924</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-08-25T05:51:35Z</dc:date>
    </item>
    <item>
      <title>Re:how to limit the CPU utilization when MKL is running</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1310808#M31948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting the solution.&lt;/P&gt;&lt;P&gt;Please raise a new thread if you have any other question as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:23:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-limit-the-CPU-utilization-when-MKL-is-running/m-p/1310808#M31948</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-08-30T09:23:09Z</dc:date>
    </item>
  </channel>
</rss>

