<?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:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223159#M30235</link>
    <description>&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have a dedicated forum for MKL(&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/bd-p/oneapi-math-kernel-library" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/bd-p/oneapi-math-kernel-library&lt;/A&gt;). We are redirecting this query to that forum.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Oct 2020 06:51:55 GMT</pubDate>
    <dc:creator>PrasanthD_intel</dc:creator>
    <dc:date>2020-10-27T06:51:55Z</dc:date>
    <item>
      <title>dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1222934#M30234</link>
      <description>&lt;P&gt;Starting MKL 2020 Update 2, we are seeing significant dgemm performance regression on a multi-threaded application on a 32 core Intel Xeon processor. MKL is running in sequential mode (-mkl=sequential) and the Intel libraries are statically linked (-intel-static). The performance regression seems more obvious when the processor is heavily loaded.&lt;/P&gt;
&lt;P&gt;MKL 2020 Update 1 doesn't have this issue.&lt;/P&gt;
&lt;P&gt;Attached is a sample code to reproduce the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 17:03:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1222934#M30234</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2020-10-26T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223159#M30235</link>
      <description>&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have a dedicated forum for MKL(&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/bd-p/oneapi-math-kernel-library" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/bd-p/oneapi-math-kernel-library&lt;/A&gt;). We are redirecting this query to that forum.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2020 06:51:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223159#M30235</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-10-27T06:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223169#M30236</link>
      <description>&lt;P&gt;Did you check the latest version 2020 u4 which has been released the last Friday?&lt;/P&gt;
&lt;P&gt;What do you mean by significant perf regression?&lt;/P&gt;
&lt;P&gt;Are there any specific CPU types where do you see this regression?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 07:04:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223169#M30236</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-10-27T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223296#M30245</link>
      <description>&lt;P&gt;I can reproduce the performance regression in MKL 2020 Update 4. Last working version was MKL 2020 Update 1.&lt;/P&gt;
&lt;P&gt;On running the attached code which basically runs 10 threads running some dgemm calls in a loop, following are the results based on the time taken in the dgemm calls that is printed as an output.&lt;/P&gt;
&lt;P&gt;1. Intel Xeon 32 core: MKL 2020 Update 4 is about 4 times worse than MKL 2020 Update 1&lt;/P&gt;
&lt;P&gt;2. Intel Xeon 18 core: MKL 2020 Update 4 is about 1.8 times worse than MKL 2020 Update 1&lt;/P&gt;
&lt;P&gt;3. Intel Xeon 4 core: MKL 2020 Update 4 is about 1.2 times worse than MKL 2020 Update 1&lt;/P&gt;
&lt;P&gt;Let me know if you have any other questions. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 15:22:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1223296#M30245</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2020-10-27T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1226157#M30300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Following up on this issue. Was wondering if you were able to reproduce the performance regression and when can we expect this to be fixed?&lt;/P&gt;
&lt;P&gt;Do let me know if you need any assistance from me.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 19:39:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1226157#M30300</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2020-11-06T19:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1232747#M30396</link>
      <description>&lt;P&gt;This issue can also be reproduced on AMD EPYC 64 core processor&lt;/P&gt;&lt;P&gt;Run the code attached to the original post using MKL 2020 Update 1 and MKL 2020 Update 4 in parallel. The printf statements print the time taken by 1 million dgemm calls by 10 identical threads.&lt;/P&gt;&lt;P&gt;It shows that MKL 2020 Update 4 is about 9 times slower than MKL 2020 Update 1 on AMD EPYC 64 core processor.&lt;/P&gt;&lt;P&gt;Do let me know if you have any questions trying to reproduce this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:10:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1232747#M30396</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2020-11-30T17:10:27Z</dc:date>
    </item>
    <item>
      <title>Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel Xeon</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1238888#M30538</link>
      <description>&lt;P&gt;I suggest you submit the official ticket to the Itel Online Service Center.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Dec 2020 03:42:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1238888#M30538</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-12-19T03:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel X</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1244253#M30615</link>
      <description>&lt;P&gt;This problem can also be reproduced with dgels and dgemm JIT APIs. I have an updated code attached with the Makefile included (QuantTest.tar.gz).&lt;/P&gt;
&lt;P&gt;It runs dgemm, dgemm JIT and dgels calls in a loop in 20 identical pthreads. Intel libraries are statically linked (-static-intel) and MKL is used in sequential mode (-mkl=sequential). The code prints the average time taken in 100 of these individual dgemm, dgemm JIT and dgels calls.&lt;/P&gt;
&lt;P&gt;There seems to be massive thread contention starting MKL 2020 update 2. The attached code (with 20 threads) runs about 8x slower based on the times printed as the output with MKL 2020 update 2, when compared to MKL 2020 update 1. MKL 2020 update 4 also had this issue.&lt;/P&gt;
&lt;P&gt;Hardware: Lightly loaded (no other user processes) Intel Xeon 32 core machine&lt;/P&gt;
&lt;P&gt;Let me know if you have any suggestion to get around this. I will also submit the official ticket to the Intel Online Service Center.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 17:44:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1244253#M30615</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2021-01-07T17:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel X</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1244922#M30634</link>
      <description>&lt;P&gt;FWIW In a different thread I had some observations using MKL threaded from sequential and OpenMP parallel process (one or more processes using CAF (COARRAY Fortran) and MPI). In the reported case it was for CAF using sequential main and threaded MKL.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/COARRAY-process-pinning-bug/td-p/1244239/jump-to/first-unread-message" target="_blank"&gt;https://community.intel.com/t5/Intel-Fortran-Compiler/COARRAY-process-pinning-bug/td-p/1244239/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;My observation in summary:&lt;/P&gt;
&lt;P&gt;While the particular test regarded MKL threaded, I suspect from your reports that the MKL sequential implementation is using the schema for MKL threaded (1 thread) and pinning its single/sequential thread.&lt;/P&gt;
&lt;P&gt;It appears that MKL is, for thread pinning, using the System Affinity's or Process Affinity's for pin selection as opposed to the calling thread's affinity's. This was on a Windows platform, you are on Linux.&lt;/P&gt;
&lt;P&gt;This was noted when I would pin calling thread to an exclusive subset of the System/Process Affinity's with either: by thread as OpenMP main or by rank (MPI) or image(CAF).&lt;/P&gt;
&lt;P&gt;Not using the calling thread's (to MKL) affinity's resulted in each instance of MKL landing on the same OS procs.&lt;/P&gt;
&lt;P&gt;A non-optimal solution to this was to .NOT. pin the threads, as this resulted in better performance.&lt;/P&gt;
&lt;P&gt;IMHO This can be considered a bug in MKL or at least a missed optimization opportunity.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 15:43:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1244922#M30634</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2021-01-10T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel X</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1245200#M30645</link>
      <description>&lt;P&gt;I was hoping MKL sequential should not be spawning new threads (not even one). It should be running in a non-threaded mode. Please do correct me if I am wrong.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:16:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1245200#M30645</guid>
      <dc:creator>AdiKwatra</dc:creator>
      <dc:date>2021-01-11T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re:dgemm performance regression with 2020 Update 2 multi-threaded application on 32 core Intel X</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1245280#M30649</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;MKL sequential should not be spawning new threads (not even one).&lt;/P&gt;
&lt;P&gt;The point I am making w/r/t MKL sequential is the sequential and threaded share the same source code, and the supposition is that if KMP_HW_SUBSET, or KMP_AFFINITY=..., or OMP_PLACES, or.... any of the environment variables for threading are set, that at least a hardware survey is made .AND. the side effect is your only thread (of each rank) gits pinned, and the ranks&amp;nbsp; have there main(only) thread pinned to the same OS proc.&lt;/P&gt;
&lt;P&gt;Now this is purely a supposition.&lt;/P&gt;
&lt;P&gt;IMHO There is something broken in the affinity code in MKL (and OpenMP as used by MKL threaded). And the supposition is that the threaded code (not conditionalized out) is impacting affinities.&lt;/P&gt;
&lt;P&gt;For example, on a 4 NUMA node system, 64 HW threads per node (On Windows one processor group per node on this system)&lt;/P&gt;
&lt;P&gt;KMP_HW_SUBSET=2N@2,2L2&lt;BR /&gt;Using 5 threads, places the threads in a screwy manner:&lt;/P&gt;
&lt;P&gt;Processor Group 2, Pin 0&amp;nbsp;&amp;nbsp;&amp;nbsp; expected&lt;BR /&gt;Processor Group 2, pin 6&amp;nbsp;&amp;nbsp; *** right group, wrong pin, should be pin 8&lt;BR /&gt;Processor Group 2, pin 13 *** right group, wrong pin, should be 16&lt;BR /&gt;Processor Group 3, pin 3&amp;nbsp;&amp;nbsp;&amp;nbsp; *** right group, wrong pin, should be 0&lt;BR /&gt;Processor Group 3, pin 10 &amp;nbsp;&amp;nbsp; *** right group, wrong pin, should be 8&lt;/P&gt;
&lt;P&gt;Again, your MKL is not threaded, but it contains process pinning code, all I am saying is something may be amiss with this section of code (or that which calls it).&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 21:40:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-performance-regression-with-2020-Update-2-multi-threaded/m-p/1245280#M30649</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2021-01-11T21:40:12Z</dc:date>
    </item>
  </channel>
</rss>

