<?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 MKL sparse - problem with conversion to BSR in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636227#M36516</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to convert a sparse matrix from COO to the BSR format using the code below. It works for very small matrices only. For larger ones I got "BSR error 3"&amp;nbsp; (for SPARSE_LAYOUT_ROW_MAJOR too). Direct conversion from COO to BSR works the same. What am I doing wrong?&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;sparse_matrix_t acoo,absr,acsr;&lt;BR /&gt;&lt;BR /&gt;sparse_status_t stat = mkl_sparse_d_create_coo(&amp;amp;acoo, SPARSE_INDEX_BASE_ZERO, m, n, nz, I, J, val);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("COO error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;stat = mkl_sparse_convert_csr(acoo, SPARSE_OPERATION_NON_TRANSPOSE, &amp;amp;acsr);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("CSR error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MKL_INT bsize=2;&lt;/P&gt;&lt;P&gt;stat = mkl_sparse_convert_bsr(acsr, bsize, SPARSE_LAYOUT_COLUMN_MAJOR, SPARSE_OPERATION_NON_TRANSPOSE, &amp;amp;absr);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("BSR error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 06:34:33 GMT</pubDate>
    <dc:creator>przemost</dc:creator>
    <dc:date>2024-10-09T06:34:33Z</dc:date>
    <item>
      <title>MKL sparse - problem with conversion to BSR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636227#M36516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to convert a sparse matrix from COO to the BSR format using the code below. It works for very small matrices only. For larger ones I got "BSR error 3"&amp;nbsp; (for SPARSE_LAYOUT_ROW_MAJOR too). Direct conversion from COO to BSR works the same. What am I doing wrong?&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;sparse_matrix_t acoo,absr,acsr;&lt;BR /&gt;&lt;BR /&gt;sparse_status_t stat = mkl_sparse_d_create_coo(&amp;amp;acoo, SPARSE_INDEX_BASE_ZERO, m, n, nz, I, J, val);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("COO error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;stat = mkl_sparse_convert_csr(acoo, SPARSE_OPERATION_NON_TRANSPOSE, &amp;amp;acsr);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("CSR error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MKL_INT bsize=2;&lt;/P&gt;&lt;P&gt;stat = mkl_sparse_convert_bsr(acsr, bsize, SPARSE_LAYOUT_COLUMN_MAJOR, SPARSE_OPERATION_NON_TRANSPOSE, &amp;amp;absr);&lt;/P&gt;&lt;P&gt;if(stat!=SPARSE_STATUS_SUCCESS){&lt;BR /&gt;printf("BSR error %d\n",stat);&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 06:34:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636227#M36516</guid>
      <dc:creator>przemost</dc:creator>
      <dc:date>2024-10-09T06:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKL sparse - problem with conversion to BSR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636242#M36517</link>
      <description>&lt;P&gt;It seems I have solved the problem: the number of rows should be a multiple of bsize.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 07:15:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636242#M36517</guid>
      <dc:creator>przemost</dc:creator>
      <dc:date>2024-10-09T07:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: MKL sparse - problem with conversion to BSR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636796#M36523</link>
      <description>&lt;P&gt;You can code the convertion between matrix formats by yourself, this is an easy problem.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 05:19:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-sparse-problem-with-conversion-to-BSR/m-p/1636796#M36523</guid>
      <dc:creator>morskaya_svinka_1</dc:creator>
      <dc:date>2024-10-12T05:19:37Z</dc:date>
    </item>
  </channel>
</rss>

