<?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 object of coordinate format sparse matrix in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776619#M1119</link>
    <description>I solved my problem. Now I use calloc() and free()instead of new and delete for (de-)allocating the memory. some additional checking for memory leaks with valgrind and now everything is fine!</description>
    <pubDate>Fri, 23 Jul 2010 09:20:41 GMT</pubDate>
    <dc:creator>Sören_Plönnigs</dc:creator>
    <dc:date>2010-07-23T09:20:41Z</dc:date>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776611#M1111</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I'm having some troubles with the FEM-program I'm writing on.&lt;/DIV&gt;I defined a class named coormatrix. The coormatrix object consists of two int arrays for row index and column index, one double array for the values, and some values for rows, columns, nonzeros and symmetry. the problem seems to be the deconstructor, every time it is called, I get&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;"*** glibc detected *** ./fem2d: double free or corruption (fasttop): 0x0000000016088a90 ***".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;The problem seems to be the deletion of the double array, gdb tells me:&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#7 0x00b74741 in operator delete(void*) () from /usr/lib/libstdc++.so.6&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(gdb) up&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#8 0x00b7479d in operator delete[](void*) () from /usr/lib/libstdc++.so.6&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(gdb) up&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#9 0x0804bc7d in coormatrix::~coormatrix (this=0xbfffe788) at datatypes/coor_matrix.cpp:90&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;90		delete [] val;&lt;/DIV&gt;#7 0x00b74741 in operator delete(void*) () from /usr/lib/libstdc++.so.6(gdb) up#8 0x00b7479d in operator delete[](void*) () from /usr/lib/libstdc++.so.6(gdb) up#9 0x0804bc7d in coormatrix::~coormatrix (this=0xbfffe788) at datatypes/coor_matrix.cpp:9090		delete [] val;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;this is my deconstructor:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;DIV&gt;coormatrix::~coormatrix() {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;delete [] rowind;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;delete [] colind;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;delete [] val;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have no idea why this problem occurs. Am I missing something? If you need further information, please tell me.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Sren&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2010 10:25:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776611#M1111</guid>
      <dc:creator>Sören_Plönnigs</dc:creator>
      <dc:date>2010-07-21T10:25:13Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776612#M1112</link>
      <description>Hi Sren,&lt;DIV&gt;I do not think that this problem of the library.&lt;BR /&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;Try to remove or comment MKL calls (and I believe that this PARDISO or Sparse Blas functions) and see whether there is a problem. Let us know the result.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10.8333px;"&gt;--Gennady&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:14:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776612#M1112</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-07-21T12:14:49Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776613#M1113</link>
      <description>It is possible that your program is trying to free memory that is no longer allocated. Old versions of glibc handled this event silently. For current versions, you may wish to read &lt;A href="http://www.novell.com/support/viewContent.do?externalId=3113982&amp;amp;sliceId=1"&gt;&lt;/A&gt;&lt;A href="http://www.novell.com/support/viewContent.do?externalId=3113982&amp;amp;sliceId=1" target="_blank"&gt;http://www.novell.com/support/viewContent.do?externalId=3113982&amp;amp;sliceId=1&lt;/A&gt; .&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:33:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776613#M1113</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-07-21T12:33:35Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776614#M1114</link>
      <description>Hi,&lt;DIV&gt;it's definitely no problem of the mkl. I didn't knew in which forum to post, but my program works with sparse matrices and mkl routines, so I decided to post here. If that was wrong feel free to move the posting.&lt;/DIV&gt;&lt;DIV&gt;It can't be a mkl problem because there are no mkl calls in the function that causes the error. The function is a mergesort-algorithm for the column index array of the coordinate matrix object. In the merge phase of the algorithm I create an temporary object for caching the values, that seems to cause the error.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Sren&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:47:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776614#M1114</guid>
      <dc:creator>Sören_Plönnigs</dc:creator>
      <dc:date>2010-07-21T12:47:34Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776615#M1115</link>
      <description>Ok, I will try to move your post to the Intel C/C++ Compiler forum.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2010 14:24:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776615#M1115</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-07-21T14:24:18Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776616#M1116</link>
      <description>Maybe I found the solution. If I comment out my destructor, the program runs fine. Is it mandatory to define an own destructor, or can this be done by the compiler?&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Sren&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2010 14:48:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776616#M1116</guid>
      <dc:creator>Sören_Plönnigs</dc:creator>
      <dc:date>2010-07-21T14:48:27Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776617#M1117</link>
      <description>yes, you have to call your own desctructor, otherwise You will have memory leakage.</description>
      <pubDate>Thu, 22 Jul 2010 04:03:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776617#M1117</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-07-22T04:03:01Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776618#M1118</link>
      <description>ok, I thought as much! but do you see what could be the problem with my destructor? At the moment I don't have a clue. By the way, I have the same problem with my vector class and my dense matrix class.</description>
      <pubDate>Thu, 22 Jul 2010 07:19:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776618#M1118</guid>
      <dc:creator>Sören_Plönnigs</dc:creator>
      <dc:date>2010-07-22T07:19:35Z</dc:date>
    </item>
    <item>
      <title>object of coordinate format sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776619#M1119</link>
      <description>I solved my problem. Now I use calloc() and free()instead of new and delete for (de-)allocating the memory. some additional checking for memory leaks with valgrind and now everything is fine!</description>
      <pubDate>Fri, 23 Jul 2010 09:20:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/object-of-coordinate-format-sparse-matrix/m-p/776619#M1119</guid>
      <dc:creator>Sören_Plönnigs</dc:creator>
      <dc:date>2010-07-23T09:20:41Z</dc:date>
    </item>
  </channel>
</rss>

