<?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: Performance issues with Sparse Blas in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Performance-issues-with-Sparse-Blas/m-p/877220#M9076</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;Dear Abhi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;The performance of sparse matrix operations tends to be much lower than dense BLAS because the memory access patterns are irregular and the ratio of float point operations is lower than in some dense operations. Like dense matrices, the performance depends on machine architecture, but unlike dense problems, the performance also depends on the structure of the matrix. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;So it is better to test MKL Sparse BLAS with the help of matrices having about the same structure as in your applications. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;And difference between performance results for random matrices and your real matrices can be very large. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;It should also be noted that the coordinate format is the slowest among all sparse formats supported by MKL due to more often usage of indirect addressing than for the rest of MKL sparse BLAS formats. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Sparse formats are mostly used for matrices of large sizes when we have to use sparse format in order to keep the whole matrix in RAM. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;So Sparse BLAS and dense BLAS have different areas of applications. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;All the best &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Sergey&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2008 07:39:37 GMT</pubDate>
    <dc:creator>Sergey_K_Intel1</dc:creator>
    <dc:date>2008-10-09T07:39:37Z</dc:date>
    <item>
      <title>Performance issues with Sparse Blas</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Performance-issues-with-Sparse-Blas/m-p/877219#M9075</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some tests with sparse blas (mkl_dcoomm) and I find that although it is faster than the intrinsic matmul available in Fortran, the blas subroutine gemm (I am using the Fortran 95 interface but the results remain unchanged if I use dgemm) is faster even when the matrix is 90% sparse.&lt;/P&gt;&lt;P&gt;I am generating the sparse matrices use random number generator.&lt;/P&gt;&lt;P&gt;I must say that I am not 'surprised' by gemm being faster as such but I am a bit startled by 'how sparse' the matrix needs to be for the sparse blas to win the race.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any guidelines on this topic/ (i.e. when would it be better to use the blas call).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2008 01:13:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Performance-issues-with-Sparse-Blas/m-p/877219#M9075</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2008-09-30T01:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issues with Sparse Blas</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Performance-issues-with-Sparse-Blas/m-p/877220#M9076</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;Dear Abhi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;The performance of sparse matrix operations tends to be much lower than dense BLAS because the memory access patterns are irregular and the ratio of float point operations is lower than in some dense operations. Like dense matrices, the performance depends on machine architecture, but unlike dense problems, the performance also depends on the structure of the matrix. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;So it is better to test MKL Sparse BLAS with the help of matrices having about the same structure as in your applications. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;And difference between performance results for random matrices and your real matrices can be very large. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-weight: bold;"&gt;It should also be noted that the coordinate format is the slowest among all sparse formats supported by MKL due to more often usage of indirect addressing than for the rest of MKL sparse BLAS formats. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Sparse formats are mostly used for matrices of large sizes when we have to use sparse format in order to keep the whole matrix in RAM. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;So Sparse BLAS and dense BLAS have different areas of applications. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;All the best &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: x-small; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Sergey&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 07:39:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Performance-issues-with-Sparse-Blas/m-p/877220#M9076</guid>
      <dc:creator>Sergey_K_Intel1</dc:creator>
      <dc:date>2008-10-09T07:39:37Z</dc:date>
    </item>
  </channel>
</rss>

