<?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 Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827852#M5272</link>
    <description>Thank you, example from the first post works now (but I had to replace NULLs with pointers to valid memory -- no idea why MKL wants them, it is not supposed to read or write there).</description>
    <pubDate>Wed, 24 Aug 2011 15:36:50 GMT</pubDate>
    <dc:creator>Dmitri_Gribenko</dc:creator>
    <dc:date>2011-08-24T15:36:50Z</dc:date>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827846#M5266</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;I want to use mkl_dcsrbsr to convert a sparse matrix from CSR to BSR.  I don't know the number of nnz blocks in advance, so I set job(6)=-1.  Unfortunately, mkl_dcsrbsr says that job parameter is wrong and I don't see why.&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;Here's a small testcase:&lt;/P&gt;
&lt;PRE&gt;[cpp]// Matrix is:
//
//      1 2 0 0
// A =  3 4 0 0
//      0 0 5 6
//      0 0 7 8

#include &lt;STDIO.H&gt;
#include "mkl_spblas.h"

int main(int argc, char *argv[] )
{
  int m = 4;
  int mblk = 2;
  double acsr[8] = { 1., 2., 3., 4., 5., 6., 7., 8. };
  int ja[8] = { 1, 2, 1, 2, 3, 4, 3, 4 };
  int ia[5] = { 1, 3, 5, 7, 9 };
  int job[8] = { 0, 1, 1, 0, 0, -1, 0, 0 };
  int nnzblocks = -1;
  int info;

  mkl_dcsrbsr(job, &amp;amp;m, &amp;amp;mblk, NULL, acsr, ja, ia, NULL, NULL, &amp;amp;nnzblocks, &amp;amp;info);

  printf("info = %d, nnzblocks = %d\n", info, nnzblocks);
  return 0;
}
[/cpp]&lt;/STDIO.H&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the output:&lt;/P&gt;

&lt;PRE&gt;$ ./test

MKL ERROR: Parameter 1 was incorrect on entry to MKL_DCSRBSR
info = 32692, nnzblocks = -1
&lt;/PRE&gt;
&lt;BR /&gt;
&lt;P&gt;ICC and MKL installation directory is called composerxe-2011.3.174, so I guess I'm using MKL 10.3. (How can I find out?)&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2011 02:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827846#M5266</guid>
      <dc:creator>Dmitri_Gribenko</dc:creator>
      <dc:date>2011-05-08T02:29:22Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827847#M5267</link>
      <description>&lt;DIV id="_mcePaste"&gt;interesting.. job array initialized correctly.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;it's pretty difficult to understand the reason of such behaviour without compilation the example. would e the result the same if you allocate the array for elements of non-zero blocks of the matrix A?&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 May 2011 19:22:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827847#M5267</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-05-08T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827848#M5268</link>
      <description>quote "ICC and MKL installation directory is called composerxe-2011.3.174, so I guess I'm using MKL 10.3. (How can I find out?)". see which version of the Intel IPP, Intel MKL and Intel TBB Libraries are Included in the Intel Composer Bundles into &lt;A href="http://software.intel.com/en-us/articles/which-version-of-the-intel-ipp-intel-mkl-and-intel-tbb-libraries-are-included-in-the-intel-composer-bundles/"&gt;this article&lt;/A&gt;</description>
      <pubDate>Sun, 08 May 2011 19:27:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827848#M5268</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-05-08T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827849#M5269</link>
      <description>&lt;P&gt;If I replace NULLs with pointers to some int [10] arrays, I get the same error.&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;Thank you for the link, I've got MKL 10.3.3 installed.&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2011 19:59:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827849#M5269</guid>
      <dc:creator>Dmitri_Gribenko</dc:creator>
      <dc:date>2011-05-08T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827850#M5270</link>
      <description>Dmitri, thaks for the issue. This is the unknown bug. We will fix the issue asap and I will let you know any update.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2011 16:12:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827850#M5270</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-05-10T16:12:18Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827851#M5271</link>
      <description>Hi Dima,&lt;DIV&gt;would you check the fix of the problem with the latest update (Intel
MKL v.10.3.5)?&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827851#M5271</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-08-24T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Convert a sparse matrix to BSR with mkl_dcsrbsr, JOB(6) = -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827852#M5272</link>
      <description>Thank you, example from the first post works now (but I had to replace NULLs with pointers to valid memory -- no idea why MKL wants them, it is not supposed to read or write there).</description>
      <pubDate>Wed, 24 Aug 2011 15:36:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Convert-a-sparse-matrix-to-BSR-with-mkl-dcsrbsr-JOB-6-1/m-p/827852#M5272</guid>
      <dc:creator>Dmitri_Gribenko</dc:creator>
      <dc:date>2011-08-24T15:36:50Z</dc:date>
    </item>
  </channel>
</rss>

