<?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 Meeting Access Conflict when trying to use mkl_sparse_convert_csr in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149648#M26998</link>
    <description>&lt;P&gt;Hi, has anyone encounterd the situation I met? All I did was try to convert a sparse matrix in CSC format to CSR format.&lt;/P&gt;

&lt;P&gt;At the foremost , I use mkl_sparse_z_creat_csc to create a matrix in CSC format, and the stat is '0', which shows that the creation is successful, and I use mkl_sparse_convert_csr to get matrix in CSR format. I`ve tried this function using a small matrix and surely it works, however, when I use it to convert a big matrix, the compiler suddenly occur to prompt me that there exists an Access Conflict when running the convert function, and I have no idea why this hint comes to me, so is there anyone knows why?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 06:00:36 GMT</pubDate>
    <dc:creator>wen_qiang_z_</dc:creator>
    <dc:date>2018-10-29T06:00:36Z</dc:date>
    <item>
      <title>Meeting Access Conflict when trying to use mkl_sparse_convert_csr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149648#M26998</link>
      <description>&lt;P&gt;Hi, has anyone encounterd the situation I met? All I did was try to convert a sparse matrix in CSC format to CSR format.&lt;/P&gt;

&lt;P&gt;At the foremost , I use mkl_sparse_z_creat_csc to create a matrix in CSC format, and the stat is '0', which shows that the creation is successful, and I use mkl_sparse_convert_csr to get matrix in CSR format. I`ve tried this function using a small matrix and surely it works, however, when I use it to convert a big matrix, the compiler suddenly occur to prompt me that there exists an Access Conflict when running the convert function, and I have no idea why this hint comes to me, so is there anyone knows why?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:00:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149648#M26998</guid>
      <dc:creator>wen_qiang_z_</dc:creator>
      <dc:date>2018-10-29T06:00:36Z</dc:date>
    </item>
    <item>
      <title>what mkl version do you use?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149649#M26999</link>
      <description>&lt;P&gt;what mkl version do you use? we don't know such problem with the latest 2019.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 02:52:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149649#M26999</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-10-30T02:52:31Z</dc:date>
    </item>
    <item>
      <title>Hi, after checking my code, I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149650#M27000</link>
      <description>&lt;P&gt;Hi, after checking my code, I find an error in assembling CSC matrix, and I`ve solved this problem, thx a lot.&lt;/P&gt;

&lt;P&gt;By the way, if I try to compute the multiplication of two CSR matrix A and B with sparse_index_base_one both using mak_sparse_spmm to get another sparse matrix C, when I use mkl_sparse_?_export_csr, I find that the sparse_index_base is zero instead of one, is it correct or the function return the default internal data type rather than the input value?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 07:40:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149650#M27000</guid>
      <dc:creator>wen_qiang_z_</dc:creator>
      <dc:date>2018-10-30T07:40:25Z</dc:date>
    </item>
    <item>
      <title>This looks like a problem.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149651#M27001</link>
      <description>&lt;P&gt;This looks like a problem. the output array should be indexed like the input arrays. Could you give us the example of this case?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 08:10:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149651#M27001</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-10-30T08:10:02Z</dc:date>
    </item>
    <item>
      <title>引文：Gennady F. (Intel) 写道：</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149652#M27002</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady F. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks like a problem. the output array should be indexed like the input arrays. Could you give us the example of this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,Gennedy&lt;/P&gt;&lt;P&gt;This case has appeared many times during my compute, and here is a easier way to actualize it:&lt;/P&gt;&lt;P&gt;1. Using&amp;nbsp;mkl_sparse_?_create_csr to create two sparse matrix A and B with sparse_index_base_one&lt;/P&gt;&lt;P&gt;2.Using mkl_sparse_?_add to compute the sum of the two matrix and store the result as a sparse matrix C, or you can use mkl_sparse_spmm to compute the product of he two matrix&lt;/P&gt;&lt;P&gt;3. Export sparse matrix C and you&amp;nbsp;will find&amp;nbsp;out that the sparse_index_base is zero.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 03:23:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1149652#M27002</guid>
      <dc:creator>wen_qiang_z_</dc:creator>
      <dc:date>2018-11-04T03:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Meeting Access Conflict when trying to use mkl_sparse_convert_csr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285779#M31399</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I would like to chime in here, since I am facing pretty much the same issue. In my case I create a scaling matrix in coordinate format and try to convert it to csr format afterwards. This ends up with an error stating "Access violation writing location", as it seemed to be the case for wen_qiang_z_. Basically I am creating&amp;nbsp; the coo matrix like this:&lt;/P&gt;
&lt;P&gt;const int valueAmount(13);&lt;/P&gt;
&lt;P&gt;double coo_values[valueAmount] = { 1,2,3,4,5,6,7,8,9,10,11,12,13 };&lt;BR /&gt;int coo_RowIndx[valueAmount], coo_ColumnIndx[valueAmount] = { 0,1,2,3,4,5,6,7,8,9,10,11,12};&lt;/P&gt;
&lt;P&gt;sparse_matrix_t B,C;&lt;/P&gt;
&lt;P&gt;sparse_status_t stat = mkl_sparse_d_create_coo(&amp;amp;B, SPARSE_INDEX_BASE_ZERO, valueAmount, valueAmount, valueAmount, coo_RowIndx, coo_ColumnIndx, coo_values);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This ends with SPARSE_STATUS_SUCCESS and afterwards I want to transfer it:&lt;/P&gt;
&lt;P&gt;mkl_sparse_convert_csr(B, SPARSE_OPERATION_TRANSPOSE, &amp;amp;C);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this point I get the exception: "Exception thrown at 0x00007FFA98EA314F (mkl_sequential.1.dll) in Playground.exe: 0xC0000005: Access violation writing location 0x000001A551D3A330."&lt;/P&gt;
&lt;P&gt;I would be glad about any hint about how to proceed.&lt;/P&gt;
&lt;P&gt;Btw. the code is compile with Intel C++ 19.2 Compiler, using MKL 2021&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 07:18:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285779#M31399</guid>
      <dc:creator>JWagner</dc:creator>
      <dc:date>2021-05-31T07:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Meeting Access Conflict when trying to use mkl_sparse_convert_csr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285794#M31401</link>
      <description>&lt;P&gt;From your description, it seems to me that you have not entered any values into the array&amp;nbsp;&lt;SPAN&gt;coo_RowIndx before passing the array to the MKL routines.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 07:52:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285794#M31401</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-05-31T07:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Meeting Access Conflict when trying to use mkl_sparse_convert_csr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285799#M31402</link>
      <description>&lt;P&gt;Thanks, that was the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:03:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Meeting-Access-Conflict-when-trying-to-use-mkl-sparse-convert/m-p/1285799#M31402</guid>
      <dc:creator>JWagner</dc:creator>
      <dc:date>2021-05-31T08:03:28Z</dc:date>
    </item>
  </channel>
</rss>

