<?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 Inspector-Executor API for Sparse BLAS in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-API-for-Sparse-BLAS/m-p/1116132#M24662</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to use the Inspector-Executor API for SpMV, but it seems like the mkl_sparse_optimize() routine is not performing any optimizations, as I am not seeing any performance difference for matrices shown here &lt;A href="http://www.inteldevconference.com/wp-content/uploads/2015/12/Intel-DevCon-London-2015-Fedorov-MKL.pdf"&gt;http://www.inteldevconference.com/wp-content/uploads/2015/12/Intel-DevCon-London-2015-Fedorov-MKL.pdf&lt;/A&gt;. I am using the following code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;sparse_status_t err;
sparse_matrix_t A;
struct matrix_descr matdescr;
matdescr.type = SPARSE_MATRIX_TYPE_GENERAL;
err = mkl_sparse_d_create_csr(&amp;amp;A, SPARSE_INDEX_BASE_ZERO, nrows, ncols, pointerB, pointerE, colind, values);
err = mkl_sparse_set_mv_hint(A, SPARSE_OPERATION_NON_TRANSPOSE, SPARSE_FULL, 50000000);
err = mkl_sparse_set_memory_hint(A, SPARSE_MEMORY_AGGRESSIVE);
err = mkl_sparse_optimize(A);

for (int l = 0; l &amp;lt; LOOPS; l++)
    mkl_sparse_d_mv(SPARSE_OPERATION_NON_TRANSPOSE, ALPHA, A, matdescr, x, BETA, y);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using the API incorrectly?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jul 2016 14:19:37 GMT</pubDate>
    <dc:creator>Elafrou__Athena</dc:creator>
    <dc:date>2016-07-02T14:19:37Z</dc:date>
    <item>
      <title>Inspector-Executor API for Sparse BLAS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-API-for-Sparse-BLAS/m-p/1116132#M24662</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to use the Inspector-Executor API for SpMV, but it seems like the mkl_sparse_optimize() routine is not performing any optimizations, as I am not seeing any performance difference for matrices shown here &lt;A href="http://www.inteldevconference.com/wp-content/uploads/2015/12/Intel-DevCon-London-2015-Fedorov-MKL.pdf"&gt;http://www.inteldevconference.com/wp-content/uploads/2015/12/Intel-DevCon-London-2015-Fedorov-MKL.pdf&lt;/A&gt;. I am using the following code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;sparse_status_t err;
sparse_matrix_t A;
struct matrix_descr matdescr;
matdescr.type = SPARSE_MATRIX_TYPE_GENERAL;
err = mkl_sparse_d_create_csr(&amp;amp;A, SPARSE_INDEX_BASE_ZERO, nrows, ncols, pointerB, pointerE, colind, values);
err = mkl_sparse_set_mv_hint(A, SPARSE_OPERATION_NON_TRANSPOSE, SPARSE_FULL, 50000000);
err = mkl_sparse_set_memory_hint(A, SPARSE_MEMORY_AGGRESSIVE);
err = mkl_sparse_optimize(A);

for (int l = 0; l &amp;lt; LOOPS; l++)
    mkl_sparse_d_mv(SPARSE_OPERATION_NON_TRANSPOSE, ALPHA, A, matdescr, x, BETA, y);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using the API incorrectly?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 14:19:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-API-for-Sparse-BLAS/m-p/1116132#M24662</guid>
      <dc:creator>Elafrou__Athena</dc:creator>
      <dc:date>2016-07-02T14:19:37Z</dc:date>
    </item>
    <item>
      <title>yes, at the first glance you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-API-for-Sparse-BLAS/m-p/1116133#M24663</link>
      <description>&lt;P&gt;yes, at the first glance you use these routines correct. You may also have a look at the similar examples show how to do that - see mklroot/examples/spblasc/ directory. &amp;nbsp;Have you compared this new API with&amp;nbsp;&lt;SPAN style="color: rgb(51, 51, 51); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.3333px; line-height: 20px;"&gt;mkl_dcsrmv routine?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 05:04:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-API-for-Sparse-BLAS/m-p/1116133#M24663</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-07-03T05:04:53Z</dc:date>
    </item>
  </channel>
</rss>

