<?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 Hi, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091485#M23287</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Currently c&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;omputational routines operate on a matrix handle that stores a matrix in CSR or BSR formats. Other formats should be converted to CSR or BSR format before calling any computational routines. So i recommend to call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;mkl_sparse_convert_csr before optimization phase&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;Alex&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 08:25:06 GMT</pubDate>
    <dc:creator>Alexander_K_Intel2</dc:creator>
    <dc:date>2016-06-10T08:25:06Z</dc:date>
    <item>
      <title>Inspector Executor COO</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091483#M23285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I tried Inspector Executor using CSR storage format and it is fine. But when I tried the COO version, I get&amp;nbsp;&lt;/P&gt;

&lt;P&gt;SPARSE_STATUS_NOT_SUPPORTED error, in the mkl_sparse_optimize function. Here is a my code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//Get COO Arrays
&lt;/PRE&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px; line-height: 19.512px;"&gt;//IF you need the implementation of this function I can provide it, I can sort based on column or row used both same error&lt;/PRE&gt;

&lt;PRE class="brush:cpp;"&gt;    ExtractCoo(argv[1], &amp;amp;nr, &amp;amp;nc, &amp;amp;nnz, &amp;amp;rows, &amp;amp;columns, &amp;amp;A); 

    float * x = (float*)malloc(nc * sizeof(float)),
        *y = (float*)malloc(nr * sizeof(float));
        

    //3) Prepare X Array
    for (int i = 0; i &amp;lt; nc; i++)
    {
        x&lt;I&gt; = static_cast &amp;lt;float&amp;gt; (rand()) / static_cast &amp;lt;float&amp;gt; (RAND_MAX);
    
    }

CALL_AND_CHECK_STATUS(
            mkl_sparse_s_create_coo(&amp;amp;cooInternal, SPARSE_INDEX_BASE_ONE, nr, nc,nnz, rows, columns, A),
            "Error in csrCreate \n");

 CALL_AND_CHECK_STATUS(
            mkl_sparse_set_mv_hint(cooInternal, SPARSE_OPERATION_NON_TRANSPOSE, martixDescription, runs),
            "Error after Sparse Hint \n");
        
 mkl_sparse_set_memory_hint (cooInternal, SPARSE_MEMORY_AGGRESSIVE);

CALL_AND_CHECK_STATUS(
            mkl_sparse_optimize(cooInternal),
            "Error after MKL_SPARSE_OPTIMIZE \n"); // Here I get an error

 // Cold Start
mkl_sparse_s_mv(SPARSE_OPERATION_NON_TRANSPOSE, 1, cooInternal, martixDescription, x, 0, y);

 for (int i = 0; i &amp;lt; runs; i++)
{
            stime = dsecnd();
            mkl_sparse_s_mv(SPARSE_OPERATION_NON_TRANSPOSE, 1, cooInternal, martixDescription, x, 0, y);
            etime = dsecnd();
            runResults&lt;I&gt; = (etime - stime);
 }&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So what am I doing wrong ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mohammad Almasri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091483#M23285</guid>
      <dc:creator>Mohammad_A_</dc:creator>
      <dc:date>2016-06-09T17:31:18Z</dc:date>
    </item>
    <item>
      <title>All is ok with this case, the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091484#M23286</link>
      <description>&lt;P&gt;All is ok with this case, the&amp;nbsp;problem is not all optimizations are implemented into the current version. We will improve that into one of the future updates. --regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 18:31:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091484#M23286</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-06-09T18:31:55Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091485#M23287</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Currently c&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;omputational routines operate on a matrix handle that stores a matrix in CSR or BSR formats. Other formats should be converted to CSR or BSR format before calling any computational routines. So i recommend to call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;mkl_sparse_convert_csr before optimization phase&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="kwd" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;Alex&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 08:25:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Inspector-Executor-COO/m-p/1091485#M23287</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2016-06-10T08:25:06Z</dc:date>
    </item>
  </channel>
</rss>

