<?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 Issues with converting Sparse BLAS matrices in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1516889#M34986</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am becoming pretty desperate in trying to resolve this issue. I'm currently trying to benchmark SPMV kernels with MKL for research and I'm trying to compare the different formats for Sparse matrices, namely COO, CSC, CSR, BSR. COO is easy to manipulate and read data from, so I loaded the whole Sparse Suite Matrix collection library &lt;A href="http://sparse.tamu.edu/" target="_blank" rel="noopener"&gt;http://sparse.tamu.edu/&lt;/A&gt;&amp;nbsp;in COO format in MKL Sparse. Then I try to manipulate and convert from COO to the other respective formats using the MKL Sparse API. It's successful for COO and CSR, but I cannot get CSC conversion to work properly. &amp;nbsp;BSR failed, but I realized that I have to pad the sparse matrix dimension to fit the block_size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For CSR, I do these calls:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_coo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_convert_csr&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;And for CSC, there is no such think as convert_csc, so I tried:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_coo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_export_csc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_csc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;it fails at&amp;nbsp;&lt;SPAN&gt;mkl_sparse_s_export_csc, and gives me status value of &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SPARSE_STATUS_INVALID_VALUE.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there anything that I need to be aware of or any reference code that I can look off of? I followed the documentation closely but couldn't really figure out what is wrong.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 23 Aug 2023 16:42:33 GMT</pubDate>
    <dc:creator>briancpark</dc:creator>
    <dc:date>2023-08-23T16:42:33Z</dc:date>
    <item>
      <title>Issues with converting Sparse BLAS matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1516889#M34986</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am becoming pretty desperate in trying to resolve this issue. I'm currently trying to benchmark SPMV kernels with MKL for research and I'm trying to compare the different formats for Sparse matrices, namely COO, CSC, CSR, BSR. COO is easy to manipulate and read data from, so I loaded the whole Sparse Suite Matrix collection library &lt;A href="http://sparse.tamu.edu/" target="_blank" rel="noopener"&gt;http://sparse.tamu.edu/&lt;/A&gt;&amp;nbsp;in COO format in MKL Sparse. Then I try to manipulate and convert from COO to the other respective formats using the MKL Sparse API. It's successful for COO and CSR, but I cannot get CSC conversion to work properly. &amp;nbsp;BSR failed, but I realized that I have to pad the sparse matrix dimension to fit the block_size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For CSR, I do these calls:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_coo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_convert_csr&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;And for CSC, there is no such think as convert_csc, so I tried:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_coo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_export_csc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mkl_sparse_s_create_csc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;it fails at&amp;nbsp;&lt;SPAN&gt;mkl_sparse_s_export_csc, and gives me status value of &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SPARSE_STATUS_INVALID_VALUE.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there anything that I need to be aware of or any reference code that I can look off of? I followed the documentation closely but couldn't really figure out what is wrong.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:42:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1516889#M34986</guid>
      <dc:creator>briancpark</dc:creator>
      <dc:date>2023-08-23T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with converting Sparse BLAS matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1516918#M34990</link>
      <description>&lt;P&gt;CSC (column major compression) is the transpose of CSR (row major compression) format and visa-versa, so you could perform the transpose of your CSR matrix to get the "CSC" format.&lt;BR /&gt;&lt;BR /&gt;So you can use&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-1/mkl-sparse-convert-csr.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-1/mkl-sparse-convert-csr.html&lt;/A&gt;&amp;nbsp;with operation = transpose. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp; then your output is already in "CSC" format and you can extract it as needed using mkl_sparse_?_export_csr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 17:46:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1516918#M34990</guid>
      <dc:creator>Spencer_P_Intel</dc:creator>
      <dc:date>2023-08-23T17:46:56Z</dc:date>
    </item>
    <item>
      <title>Re:Issues with converting Sparse BLAS matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1518935#M35003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A gentle reminder:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Has the information provided helped? Could you please let us know if there are any updates regarding your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2023 04:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1518935#M35003</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-08-30T04:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with converting Sparse BLAS matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1520729#M35048</link>
      <description>&lt;P&gt;Apologies for the late response. I tried it and just got some results. Seems like this method works. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 14:45:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1520729#M35048</guid>
      <dc:creator>briancpark</dc:creator>
      <dc:date>2023-09-05T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re:Issues with converting Sparse BLAS matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1521085#M35053</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2023 12:16:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-converting-Sparse-BLAS-matrices/m-p/1521085#M35053</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-09-06T12:16:23Z</dc:date>
    </item>
  </channel>
</rss>

