<?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 Zhang, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972998#M16857</link>
    <description>&lt;P&gt;Hi Zhang,&lt;/P&gt;

&lt;P&gt;Thank you for your reply. I don't use Intel MPI but OpenMPI 1.4.3. I solved the memory problems on the more complex source code that I cited in the first post (It was my fault in the input of &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;pdgetri_) but I can't still run the code using Valgrind without crash occurring&lt;/SPAN&gt;.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Massi&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2014 09:33:22 GMT</pubDate>
    <dc:creator>Massimiliano_B_1</dc:creator>
    <dc:date>2014-02-03T09:33:22Z</dc:date>
    <item>
      <title>Scalapack linear solver (memory problem)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972995#M16854</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to use Scalapack in order to solve a distributed linear system. The C++ source code is reported in attachment. The code compiles and runs without problems and it gives the right result. Then I tried to run the source code using valgrind (with environment variable set properly for an MPI app) in order to test memory management. Via Valgrind the execution crashes:&lt;/P&gt;

&lt;P&gt;valgrind MPI wrappers &amp;nbsp;6704: Active for pid 6704&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6704: Try MPIWRAP_DEBUG=help for possible options&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6703: Active for pid 6703&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6705: Active for pid 6705&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6703: Try MPIWRAP_DEBUG=help for possible options&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6705: Try MPIWRAP_DEBUG=help for possible options&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6712: Active for pid 6712&lt;BR /&gt;
	valgrind MPI wrappers &amp;nbsp;6712: Try MPIWRAP_DEBUG=help for possible options&lt;BR /&gt;
	[giorgio-VirtualBox:6712] *** An error occurred in MPI_Type_get_envelope&lt;BR /&gt;
	[giorgio-VirtualBox:6712] *** on communicator MPI_COMM_WORLD&lt;BR /&gt;
	[giorgio-VirtualBox:6712] *** MPI_ERR_INTERN: internal error&lt;BR /&gt;
	[giorgio-VirtualBox:6712] *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)&lt;BR /&gt;
	--------------------------------------------------------------------------&lt;BR /&gt;
	mpirun has exited due to process rank 3 with PID 6712 on&lt;BR /&gt;
	node giorgio-VirtualBox exiting without calling "finalize". This may&lt;BR /&gt;
	have caused other processes in the application to be&lt;BR /&gt;
	terminated by signals sent by mpirun (as reported here).&lt;BR /&gt;
	--------------------------------------------------------------------------&lt;BR /&gt;
	[giorgio-VirtualBox:06702] 1 more process has sent help message help-mpi-errors.txt / mpi_errors_are_fatal&lt;BR /&gt;
	[giorgio-VirtualBox:06702] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages&lt;/P&gt;

&lt;P&gt;I started to test using valgrind because I encountered memory problems in a more complex example where linear system matrix and linear system known term were constructed using various distributed algebra functions (pdgetri_, pfgemm_, pdgemv_) and other auxiliar linear systems solutions.&lt;/P&gt;

&lt;P&gt;What is wrong? Thank you in advance for your help.&lt;/P&gt;

&lt;P&gt;Massi&lt;/P&gt;

&lt;P&gt;Compiler and linker: mpic++&lt;/P&gt;

&lt;P&gt;Includes:&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/usr/lib/opnempi/include&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/include&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Link line:&amp;nbsp;&amp;nbsp;-L$(MKLROOT)/lib/intel64 -lmkl_scalapack_lp64 -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lmkl_blacs_openmpi_lp64 -lpthread -lm&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; line-height: 16px; font-size: 1em;"&gt;Compiler options: -DMKL_LP64&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Environment variables:&amp;nbsp;LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:21:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972995#M16854</guid>
      <dc:creator>Massimiliano_B_1</dc:creator>
      <dc:date>2014-01-31T11:21:03Z</dc:date>
    </item>
    <item>
      <title>Added attachment</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972996#M16855</link>
      <description>&lt;P&gt;Added attachment&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:27:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972996#M16855</guid>
      <dc:creator>Massimiliano_B_1</dc:creator>
      <dc:date>2014-01-31T11:27:06Z</dc:date>
    </item>
    <item>
      <title>Hi, the Valgrind output seems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972997#M16856</link>
      <description>&lt;P&gt;Hi, the Valgrind output seems to indicate the error occurred inside an MPI routine. Which vendor's MPI do you use. Is it Intel MPI?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 17:57:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972997#M16856</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-01-31T17:57:42Z</dc:date>
    </item>
    <item>
      <title>Hi Zhang,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972998#M16857</link>
      <description>&lt;P&gt;Hi Zhang,&lt;/P&gt;

&lt;P&gt;Thank you for your reply. I don't use Intel MPI but OpenMPI 1.4.3. I solved the memory problems on the more complex source code that I cited in the first post (It was my fault in the input of &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;pdgetri_) but I can't still run the code using Valgrind without crash occurring&lt;/SPAN&gt;.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Massi&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 09:33:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972998#M16857</guid>
      <dc:creator>Massimiliano_B_1</dc:creator>
      <dc:date>2014-02-03T09:33:22Z</dc:date>
    </item>
    <item>
      <title>Massi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972999#M16858</link>
      <description>&lt;P&gt;Massi,&lt;/P&gt;

&lt;P&gt;Can you try linking with Intel MPI (you can download a 30-day trial version from&amp;nbsp;http://software.intel.com/en-us/intel-mpi-library)? Also, try to run the program using only 1 MPI rank. Does it run OK with Valgrind? What I'm suspecting is, this is a problem of OpenMPI and has nothing to do with MKL. By the way, you are still using Intel Composer XE 2011, which was released more than 2 years ago. You may consider update to Intel Composer XE 2013. Or, at least, update your MKL to the latest 11.1 version. A lot of improvements and bug fixes have been done over the last 2 years.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 17:44:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scalapack-linear-solver-memory-problem/m-p/972999#M16858</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-02-03T17:44:22Z</dc:date>
    </item>
  </channel>
</rss>

