<?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 Limiting number of threads/processors for benchmarking purposes in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776470#M1100</link>
    <description>Is there any way to restrict the number of threads/processors used by numpy linked to MKL? I would like to restrict it to one processor, as the final implemenation of the program will be run in parallel, so each instance would only be effectively using one processor. I need to get some estimated times for one processor as i will be comparing the performance to alternative options that are single-threaded (but would be run in parallel on my setup as well).&lt;BR /&gt;&lt;BR /&gt;I just don't have access to the full setup right now, so i'm trying to benchmark them on a different setup, so i need to be able to compare the run times in an apple to apples environment (one processor each). I've tried settting os.environ['OMP_NUM_THREADS'] = '1', but the program still runs on both processors.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Jul 2012 21:34:46 GMT</pubDate>
    <dc:creator>jickerson</dc:creator>
    <dc:date>2012-07-30T21:34:46Z</dc:date>
    <item>
      <title>Limiting number of threads/processors for benchmarking purposes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776470#M1100</link>
      <description>Is there any way to restrict the number of threads/processors used by numpy linked to MKL? I would like to restrict it to one processor, as the final implemenation of the program will be run in parallel, so each instance would only be effectively using one processor. I need to get some estimated times for one processor as i will be comparing the performance to alternative options that are single-threaded (but would be run in parallel on my setup as well).&lt;BR /&gt;&lt;BR /&gt;I just don't have access to the full setup right now, so i'm trying to benchmark them on a different setup, so i need to be able to compare the run times in an apple to apples environment (one processor each). I've tried settting os.environ['OMP_NUM_THREADS'] = '1', but the program still runs on both processors.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2012 21:34:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776470#M1100</guid>
      <dc:creator>jickerson</dc:creator>
      <dc:date>2012-07-30T21:34:46Z</dc:date>
    </item>
    <item>
      <title>Limiting number of threads/processors for benchmarking purposes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776471#M1101</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don'tneed parallel work ofMKL just link with sequential MKLlibrary instead of thread-library.</description>
      <pubDate>Tue, 31 Jul 2012 11:26:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776471#M1101</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-07-31T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Limiting number of threads/processors for benchmarking purposes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776472#M1102</link>
      <description>I'm sorry, but i'm not that familiar with MKL (the library came pre-linked in the Enthought python distro that I am using). Could you point me to a quick reference on how to do this? Is it a flag that i can just include in my python script?</description>
      <pubDate>Tue, 31 Jul 2012 13:49:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776472#M1102</guid>
      <dc:creator>jickerson</dc:creator>
      <dc:date>2012-07-31T13:49:44Z</dc:date>
    </item>
    <item>
      <title>Limiting number of threads/processors for benchmarking purposes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776473#M1103</link>
      <description>On Linux:&lt;BR /&gt; In your config files please find &lt;STRONG&gt;mkl_intel_thread&lt;/STRONG&gt; and substitute it to &lt;STRONG&gt;mkl_sequential&lt;BR /&gt;&lt;/STRONG&gt;It maybe something like -lmkl_intel_thread or with full name of library libmkl_intel_thread</description>
      <pubDate>Tue, 31 Jul 2012 14:06:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Limiting-number-of-threads-processors-for-benchmarking-purposes/m-p/776473#M1103</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-07-31T14:06:08Z</dc:date>
    </item>
  </channel>
</rss>

