<?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   in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065035#M21880</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Attached the sample.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And you may find the &lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;mkl_?csrmultcsr&lt;/SPAN&gt;&amp;nbsp;sample in the forum , for example. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/639846"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/639846&lt;/A&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2016 03:21:43 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-07-19T03:21:43Z</dc:date>
    <item>
      <title>sparse matrix multiplication mkl_?csrmultcsr example and limits</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065032#M21877</link>
      <description>&lt;P&gt;Are there any examples of mkl_?csrmultcsr functions?&amp;nbsp; I have MKL 11.3 but have not found examples for these functions.&amp;nbsp; I am also interested in knowing the maximum dimension sizes for rows/cols of the matrices.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Kirk&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 22:03:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065032#M21877</guid>
      <dc:creator>Kirk_D_</dc:creator>
      <dc:date>2016-07-18T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Note that I am using C/C++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065033#M21878</link>
      <description>&lt;P&gt;Note that I am using C/C++ and on Windows if that make any difference.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 22:04:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065033#M21878</guid>
      <dc:creator>Kirk_D_</dc:creator>
      <dc:date>2016-07-18T22:04:07Z</dc:date>
    </item>
    <item>
      <title>Hi Kirk, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065034#M21879</link>
      <description>&lt;P&gt;Hi Kirk,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;For the performance, i may recommend you&amp;nbsp;to use the function&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;mkl_sparse_spmm, it can calculate &amp;nbsp;sparce C = &amp;nbsp;sparse A* sparse B&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;sparse_status_t mkl_sparse_spmm (sparse_operation_t operation, const sparse_matrix_t A,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;const sparse_matrix_t B, sparse_matrix_t *C);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Include Files&lt;BR /&gt;
	• mkl_spblas.h&lt;BR /&gt;
	Description&lt;BR /&gt;
	The mkl_sparse_spmm routine performs a matrix-matrix operation:&lt;BR /&gt;
	C := op(A) *B&lt;BR /&gt;
	where A, B, and C are sparse matrices.&lt;/P&gt;

&lt;P&gt;I update one c sample and the sample will be in MKL install folder /example/. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 03:17:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065034#M21879</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-19T03:17:19Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065035#M21880</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Attached the sample.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And you may find the &lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;mkl_?csrmultcsr&lt;/SPAN&gt;&amp;nbsp;sample in the forum , for example. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/639846"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/639846&lt;/A&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 03:21:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065035#M21880</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-19T03:21:43Z</dc:date>
    </item>
    <item>
      <title>Thank you for the sample, I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065036#M21881</link>
      <description>&lt;P&gt;Thank you for the sample, I was able to figure out what I functions calls I needed.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have one question regarding the output however.&amp;nbsp; One of the result matrix items from the &lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;mkl_sparse_d_create_csr, mkl_sparse_spmm,&amp;nbsp;and mkl_sparse_d_export_csr calls &lt;/FONT&gt;&lt;/FONT&gt;is coming out to a value of 0, and I would expect it NOT to be included in the result matrix in csr format, but it is.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;When looking at the matrix multiplication "by-hand" in dense matrix format, the cell in question should be calculated by &lt;/FONT&gt;&lt;/FONT&gt;(3*-2)+(9*0)+(0*0)+(0*5)+(0*9)+(3*2), which yields 0.&amp;nbsp; Any idea why this zero would be included in the resulting csr matrix?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Kirk&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 21:09:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065036#M21881</guid>
      <dc:creator>Kirk_D_</dc:creator>
      <dc:date>2016-07-20T21:09:01Z</dc:date>
    </item>
    <item>
      <title>Hi Kirk,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065037#M21882</link>
      <description>&lt;P&gt;Hi Kirk,&lt;/P&gt;

&lt;P&gt;The reason of including "zero" element in resulted structure is the fact that structure and values calculated in different part of code to achieve better performance and it is hard to remove zero elements from structure after calculation.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 05:13:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/sparse-matrix-multiplication-mkl-csrmultcsr-example-and-limits/m-p/1065037#M21882</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2016-07-21T05:13:14Z</dc:date>
    </item>
  </channel>
</rss>

