<?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 How to run a single-thread, single-core version? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155663#M27524</link>
    <description>&lt;P&gt;I am new to the forum. I have a most trivial question:&lt;/P&gt;

&lt;P&gt;In order to gain some insight into Parallel Gain, I would like to run the basic form of the algorithm, on my computer.&lt;/P&gt;

&lt;P&gt;For example, I would like to compare the timing of&amp;nbsp; ( using my own timing loop) :&amp;nbsp; a single-core, single-thread version of FFT, compared to the best multi-thread, multi-core version.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I will measure the time (in clocks) for one piece of code, and compared it to the other. If the number of clocks exceeds 10 K, any out-of-order-execution effects will be negligible. If a piece of code is too quick, I execute it multiple times.&amp;nbsp; Likewise, I will run each code a few times and use the lowest 50% results - against cases of interrupts.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;How Do I Disable Parallel Execution In MKL ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 07:34:17 GMT</pubDate>
    <dc:creator>zalia64</dc:creator>
    <dc:date>2018-03-19T07:34:17Z</dc:date>
    <item>
      <title>How to run a single-thread, single-core version?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155663#M27524</link>
      <description>&lt;P&gt;I am new to the forum. I have a most trivial question:&lt;/P&gt;

&lt;P&gt;In order to gain some insight into Parallel Gain, I would like to run the basic form of the algorithm, on my computer.&lt;/P&gt;

&lt;P&gt;For example, I would like to compare the timing of&amp;nbsp; ( using my own timing loop) :&amp;nbsp; a single-core, single-thread version of FFT, compared to the best multi-thread, multi-core version.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I will measure the time (in clocks) for one piece of code, and compared it to the other. If the number of clocks exceeds 10 K, any out-of-order-execution effects will be negligible. If a piece of code is too quick, I execute it multiple times.&amp;nbsp; Likewise, I will run each code a few times and use the lowest 50% results - against cases of interrupts.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;How Do I Disable Parallel Execution In MKL ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 07:34:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155663#M27524</guid>
      <dc:creator>zalia64</dc:creator>
      <dc:date>2018-03-19T07:34:17Z</dc:date>
    </item>
    <item>
      <title>Use the MKL Link Line Advisor</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155664#M27525</link>
      <description>&lt;P&gt;Use the MKL Link Line Advisor at&amp;nbsp;&lt;SPAN style="font-size: 19.512px;"&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; and select threading layer = sequential. Compile and link using the options that the advisor tool gives you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 08:50:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155664#M27525</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-03-19T08:50:49Z</dc:date>
    </item>
    <item>
      <title>Hi zalia64,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155665#M27526</link>
      <description>&lt;P&gt;Hi zalia64,&lt;/P&gt;

&lt;P&gt;You may simply control the thread by export OMP_NUM_THREAD=1&amp;nbsp; or 2, 4&amp;nbsp; to change the parallel thread number.&lt;/P&gt;

&lt;P&gt;and see more methods in MKL user guide:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/mkl-linux-developer-guide-techniques-to-set-the-number-of-threads"&gt;https://software.intel.com/en-us/mkl-linux-developer-guide-techniques-to-set-the-number-of-threads&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 01:59:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-run-a-single-thread-single-core-version/m-p/1155665#M27526</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-03-20T01:59:20Z</dc:date>
    </item>
  </channel>
</rss>

