<?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 memory overwrite when using cluster solver with one MPI process in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499037#M34703</link>
    <description>&lt;P&gt;I tried to run cluster solver with one MPI process to solve a symmetric sparse linear system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The software settings are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mkl 2022.2.0&lt;/LI&gt;&lt;LI&gt;windows 10&lt;/LI&gt;&lt;LI&gt;c++&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The parameter are defined as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;iparm[0] = 1; // no solver default
iparm[1] = 3; // parallel version of the nested dissection algorithm
iparm[5] = 1; // write solution to b
iparm[7] = 2; // max numbers of iterative refinement steps
iparm[9] = 8; // perturb pivot tolerance
iparm[10] = 1; // use nonsymmetric permutation and scaling MPS
iparm[12] = 1; // maximum weighted matching
iparm[27] = 0; // double precision
iparm[34] = 1; // C-style indexing
iparm[39] = 2; // distributed input
iparm[59] = 0; // cluster sparse solver mode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we write solution to b, I suppose the input for solution can be a dummy double. So I create a dummy double `ddum` and use `&amp;amp;ddum` as input for solution .&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works when I run with multiple processes. However, if I run with single process, it will overwrite the memory at the address of the&amp;nbsp;solution. I check the length of the overwritten memory, it is of the size of the linear system (The example I test is 1188). I tried with a very small matrix (3x3), it did not give me any error.&lt;/P&gt;&lt;P&gt;Could anyone help me with the problem?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 04:44:39 GMT</pubDate>
    <dc:creator>Charlotte_Ching</dc:creator>
    <dc:date>2023-06-26T04:44:39Z</dc:date>
    <item>
      <title>memory overwrite when using cluster solver with one MPI process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499037#M34703</link>
      <description>&lt;P&gt;I tried to run cluster solver with one MPI process to solve a symmetric sparse linear system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The software settings are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mkl 2022.2.0&lt;/LI&gt;&lt;LI&gt;windows 10&lt;/LI&gt;&lt;LI&gt;c++&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The parameter are defined as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;iparm[0] = 1; // no solver default
iparm[1] = 3; // parallel version of the nested dissection algorithm
iparm[5] = 1; // write solution to b
iparm[7] = 2; // max numbers of iterative refinement steps
iparm[9] = 8; // perturb pivot tolerance
iparm[10] = 1; // use nonsymmetric permutation and scaling MPS
iparm[12] = 1; // maximum weighted matching
iparm[27] = 0; // double precision
iparm[34] = 1; // C-style indexing
iparm[39] = 2; // distributed input
iparm[59] = 0; // cluster sparse solver mode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we write solution to b, I suppose the input for solution can be a dummy double. So I create a dummy double `ddum` and use `&amp;amp;ddum` as input for solution .&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works when I run with multiple processes. However, if I run with single process, it will overwrite the memory at the address of the&amp;nbsp;solution. I check the length of the overwritten memory, it is of the size of the linear system (The example I test is 1188). I tried with a very small matrix (3x3), it did not give me any error.&lt;/P&gt;&lt;P&gt;Could anyone help me with the problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:44:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499037#M34703</guid>
      <dc:creator>Charlotte_Ching</dc:creator>
      <dc:date>2023-06-26T04:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: memory overwrite when using cluster solver with one MPI process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499524#M34707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We had tried with the sample example(C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_cluster_c.zip\c_mpi\cluster_sparse_solver\source\cl_solver_sym_sp_0_based_c.c) where it is using cluster_sparse_solver, we are able to run the code without any errors with single and multiple processes.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1687864469778.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42915iC01CE8B1C4B280C4/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1687864469778.png" alt="VarshaS_Intel_0-1687864469778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us with the complete sample reproducer code(data file if any) along with the steps if you had followed to investigate more on your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 11:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499524#M34707</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-06-27T11:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: memory overwrite when using cluster solver with one MPI process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499852#M34711</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;For the example you tested, you can try set ipam[5] = 1 (write solution to b) and print the x array. Cluster solver will write values to x as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 05:54:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1499852#M34711</guid>
      <dc:creator>Charlotte_Ching</dc:creator>
      <dc:date>2023-06-28T05:54:33Z</dc:date>
    </item>
    <item>
      <title>Re:memory overwrite when using cluster solver with one MPI process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1500823#M34741</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know what exact errors you are getting at the time of running the code on a single process?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And also, could you please let us know what compilation and running commands you are using for your code?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:21:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1500823#M34741</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-06-30T18:21:17Z</dc:date>
    </item>
    <item>
      <title>Re:memory overwrite when using cluster solver with one MPI process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1503150#M34788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. Could you please let us know what exact errors you are getting at the time of running the code on a single process?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And also, could you please let us know what compilation and running commands you are using for your code?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2023 10:07:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/memory-overwrite-when-using-cluster-solver-with-one-MPI-process/m-p/1503150#M34788</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-07-10T10:07:46Z</dc:date>
    </item>
  </channel>
</rss>

