<?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 leak with Intel MPI in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046986#M4364</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I compiled Siesta 3.2 (http://departments.icmab.es/leem/siesta) with the Intel Compiler 14.0, Intel MPI 4.1.3 and MKL 11.2.3. The compilation runs fine but when I start a longer computation the memory usage increases up to the point when no free RAM is left and the program crashes.&lt;/P&gt;

&lt;P&gt;Here is a picture of a profile run:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="impi.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8174iB728006194C119F4/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="impi.png" alt="impi.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In contrast here is the same computation when Siesta is compiled with OpenMPI 1.8:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="openmpi.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8175i76CCBCB8EC35114F/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="openmpi.png" alt="openmpi.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This Problem only appears when running on multiple nodes. On a single node the computation with Intel MPI runs fine and is 30% faster than with OpenMPI.&lt;/P&gt;

&lt;P&gt;Here are my compilation flags:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family:monospace"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;-O0 -heap-arrays &amp;nbsp;-g -traceback -xHost -fpp -fltconsistency&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and the linker flags:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: monospace; font-size: 1em; line-height: 1.5;"&gt;${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; font-size: 1em; line-height: 1.5;"&gt;group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The same problem happens with Intel Compiler 15.0 and with IMPI 5.0.3 so it doesn't seem to be dependent on the specific versions. Are there any flags I could try? If you need more information about my setup please ask.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Matthias&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 09:09:50 GMT</pubDate>
    <dc:creator>Matthias_N_</dc:creator>
    <dc:date>2015-11-04T09:09:50Z</dc:date>
    <item>
      <title>Memory leak with Intel MPI</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046986#M4364</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I compiled Siesta 3.2 (http://departments.icmab.es/leem/siesta) with the Intel Compiler 14.0, Intel MPI 4.1.3 and MKL 11.2.3. The compilation runs fine but when I start a longer computation the memory usage increases up to the point when no free RAM is left and the program crashes.&lt;/P&gt;

&lt;P&gt;Here is a picture of a profile run:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="impi.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8174iB728006194C119F4/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="impi.png" alt="impi.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In contrast here is the same computation when Siesta is compiled with OpenMPI 1.8:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="openmpi.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8175i76CCBCB8EC35114F/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="openmpi.png" alt="openmpi.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This Problem only appears when running on multiple nodes. On a single node the computation with Intel MPI runs fine and is 30% faster than with OpenMPI.&lt;/P&gt;

&lt;P&gt;Here are my compilation flags:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family:monospace"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;-O0 -heap-arrays &amp;nbsp;-g -traceback -xHost -fpp -fltconsistency&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and the linker flags:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: monospace; font-size: 1em; line-height: 1.5;"&gt;${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; font-size: 1em; line-height: 1.5;"&gt;group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The same problem happens with Intel Compiler 15.0 and with IMPI 5.0.3 so it doesn't seem to be dependent on the specific versions. Are there any flags I could try? If you need more information about my setup please ask.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Matthias&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:09:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046986#M4364</guid>
      <dc:creator>Matthias_N_</dc:creator>
      <dc:date>2015-11-04T09:09:50Z</dc:date>
    </item>
    <item>
      <title>Hi Mattias,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046987#M4365</link>
      <description>&lt;P&gt;Hi Mattias,&lt;/P&gt;

&lt;P&gt;Please file the issue at Intel(R) Premier Support &lt;A href="https://premier.intel.com"&gt;https://premier.intel.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:40:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046987#M4365</guid>
      <dc:creator>Dmitry_S_Intel</dc:creator>
      <dc:date>2015-11-18T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046988#M4366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Was there any resolution to this issue? We are seeing similar behavior.&lt;/P&gt;

&lt;P&gt;An extra interesting piece of info: The memory usage seems fine when the application is built against Intel MPI with debug flags. When built in release mode, the memory slowly explodes until the application eventually crashes.&lt;/P&gt;

&lt;P&gt;Just like the original post ... our application builds/runs fine with all other MPI packages we've tested: OpenMPI, MPICH, CrayMPICH, Platform MPI, MSMPI. However it looks like a classic memory leak ONLY when running Intel MPI without debug flags. Hard to know where to even start debugging this.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 16:16:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Memory-leak-with-Intel-MPI/m-p/1046988#M4366</guid>
      <dc:creator>Jon_P_2</dc:creator>
      <dc:date>2017-08-15T16:16:57Z</dc:date>
    </item>
  </channel>
</rss>

