<?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 David, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156066#M27573</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;To be clear, are you creating the sparse_matrix_t M with mkl_sparse_?_create_csr()&amp;nbsp; or with mkl_sparse_?_create_coo() ?&amp;nbsp; If with the coo, could you convert to CSR and then try with mkl_sparse_?_create_csr() ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wouldn't mind, could you share your matrix and a reproducer so we can determine if it is a bug or not?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Spencer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 21:57:13 GMT</pubDate>
    <dc:creator>Spencer_P_Intel</dc:creator>
    <dc:date>2019-02-20T21:57:13Z</dc:date>
    <item>
      <title>mkl_sparse_d_mv returns different values than mkl_dcsrsymv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156065#M27572</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are updating the code in my organisation to get rid of the deprecated SPBLAS functions. Our software makes some structure calculations with sparse matrices codified as CSR&amp;nbsp; (symmetric, upper, one-based indexes, non-unit diagonal) and force/displacement vectors. Until now we were using mkl_dscrsymv to multiply matrix by vector (we were obtaining exactly the same values codifying the vector as a one-row matrix and using mkl_dcsrmm because we experimented some segmentation faults with an older MKL version; btw, we are working with MS Visual Studio C++ on an Intel Core i7).&lt;/P&gt;&lt;P&gt;The fact is, all our operations with the Inspector-Executor functions (building the matrix from a COO, adding, even the results from PARDISO) are ok, but the multiplication with mkl_sparse_d_mv return a few significativelly different values than the deprecated functions, and that makes our structures fail. For instance, with a rank=1792 and a vector with 496 non-zero values, we find 144 different values in the multiplication, 36 of them being significally different (at least 1% in absolute value).&lt;/P&gt;&lt;P&gt;This is the code for the operation V_out = M x V_in :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; matrix_descr matrix_descr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;matrix_descr.type = sparse_matrix_type_t::SPARSE_MATRIX_TYPE_SYMMETRIC;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;matrix_descr.mode = sparse_fill_mode_t::SPARSE_FILL_MODE_UPPER;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;matrix_descr.diag = sparse_diag_type_t::SPARSE_DIAG_NON_UNIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sparse_status_t res = mkl_sparse_d_mv (sparse_operation_t::SPARSE_OPERATION_NON_TRANSPOSE, 1.0, M, matrix_descr, V_in, 0.0, V_out);&lt;/P&gt;&lt;P&gt;The return value is always sparse_status_t::SPARSE_STATUS_SUCCESS, but the values returned into V_out do not match the ones expected.&lt;/P&gt;&lt;P&gt;Is this a problem you were aware of, or have I found some bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David B.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 11:39:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156065#M27572</guid>
      <dc:creator>B__David</dc:creator>
      <dc:date>2019-02-20T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Hi David,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156066#M27573</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;To be clear, are you creating the sparse_matrix_t M with mkl_sparse_?_create_csr()&amp;nbsp; or with mkl_sparse_?_create_coo() ?&amp;nbsp; If with the coo, could you convert to CSR and then try with mkl_sparse_?_create_csr() ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wouldn't mind, could you share your matrix and a reproducer so we can determine if it is a bug or not?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Spencer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:57:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156066#M27573</guid>
      <dc:creator>Spencer_P_Intel</dc:creator>
      <dc:date>2019-02-20T21:57:13Z</dc:date>
    </item>
    <item>
      <title>or you can submit the issue</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156067#M27574</link>
      <description>&lt;P&gt;or you can submit the issue to the intel online service center if you need to share the private info and data&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 03:32:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-sparse-d-mv-returns-different-values-than-mkl-dcsrsymv/m-p/1156067#M27574</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-02-21T03:32:55Z</dc:date>
    </item>
  </channel>
</rss>

