<?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 Re: scalapack memory loss in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1449174#M10289</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to reproduce your issue from my end and below are my observations:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;OpenMPI + MKL : &lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;: &amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;mpif90 -c working_ex.f90 -o bin/working_ex.o&lt;/LI&gt;
&lt;LI&gt;mpif90&amp;nbsp;-g -fopenmp -Oo -debug bin/working_ex.o&amp;nbsp;-L${MKLROOT}/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -liomp5 -lpthread -lm -ldl -o main&lt;/LI&gt;
&lt;LI&gt;mpirun -n 1 ./main&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Observations&lt;/STRONG&gt;: Getting an error as shown in the attachment(OpenMPI.debug)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Intel MPI + MKL : &lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;source /opt/intel/oneapi/mpi/latest/env/vars.sh&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;source /opt/intel/oneapi/compiler/latest/env/vars.sh&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;mpiifort -c working_ex.f90 -o bin/working_ex.o&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;mpiifort -O0 -g -debug -qmkl=cluster -recursive bin/working_ex.o -L${MKLROOT}/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -liomp5 -lpthread -lm -ldl -o main&lt;/LI&gt;
&lt;LI&gt;mpirun -n 16 ./main&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Observations&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (11).png" style="width: 619px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/37363i7B7D0427C8372D79/image-dimensions/619x200?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="619" height="200" role="button" title="MicrosoftTeams-image (11).png" alt="MicrosoftTeams-image (11).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let me know if there is anything that I missed or went wrong while trying the OpenMPI+MKL combination?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Santosh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 08:49:51 GMT</pubDate>
    <dc:creator>SantoshY_Intel</dc:creator>
    <dc:date>2023-01-23T08:49:51Z</dc:date>
    <item>
      <title>scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444179#M10221</link>
      <description>&lt;P&gt;I have a code that solves large systems of equations in parallel using scalapack's PZGETRS function. The code fails for some cases due to an apparent lack of memory. I traced the memory loss to PZGETRS using the command "free -m" after every function call to monitor available memory on the compute nodes I'm using. For a matrix size of ~6000x6000, with a 7x7 process grid, I lose ~7 GB of available memory for every PZGETRS call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fix this, I tried setting the env variable&amp;nbsp;MKL_DISABLE_FAST_MM=1, calling&amp;nbsp;mkl_disable_fast_mm() in the script, and compiling with different version of intel (I have access to 2020.1.217, 2019.5.281, and 2018.5.274). No change in the behavior. I also used the mkl_service module to try the mkl_free_buffers() command, and also attempted to measure peak memory using mkl_peak_mem_usage. The free_buffers didn't do anything, and the reported peak memory was ~11 MB. I'm having trouble reconciling that reported memory use with the apparent loss I see through the "free" command. I'm hoping this is an error either in my use of scalapack or my compilation, but if it is, I cannot figure it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recreated the issue with a small test script, attached. I tested the script on my desktop, where I use openmpi and a local version of scalapack. For a matrix of size 6200, with 16 tasks (4x4 grid), my local code appears to lose 9 MB. On the cluster I'm using, where I compiled with impi and intel mkl, I lose 3648 MB with 16 tasks, and 7297 MB with 49 tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the attached Makefiles for my working example code, I renamed them to be .txt just to upload. Remove the .txt from both to make them run properly. The Makefile shows both ways I compile the code. I switch between them using the compile_link variable in Makefile.inc. Option 2 is my local install, option 3 is for the cluster using intel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:50:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444179#M10221</guid>
      <dc:creator>mp_def</dc:creator>
      <dc:date>2023-01-05T20:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444420#M10225</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in the Intel forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;&amp;gt;&amp;gt;"I tested the script on my desktop, where I use openmpi and a local version of scalapack.&amp;nbsp;"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Could you please confirm if you are using an open-source version of ScaLAPACK which is not a part of Intel MKL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try the combination of&lt;STRONG&gt; Intel MKL &amp;amp; OpenMPI&lt;/STRONG&gt; and let us know your observations? i.e How much memory is being used using this combination?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Santosh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 09:28:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444420#M10225</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-01-06T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444542#M10229</link>
      <description>&lt;P&gt;On my desktop scalapack is open source version 2.0.0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the cluster I tried OpenMPI + MKL:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;16 tasks --&amp;gt; 141 MB lost in solve&lt;/LI&gt;
&lt;LI&gt;49 tasks --&amp;gt; 211 MB lost in solve&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The openMPI in both cases is 3.0.0&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 19:03:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444542#M10229</guid>
      <dc:creator>mp_def</dc:creator>
      <dc:date>2023-01-06T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444890#M10231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing the details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try the combination of &lt;STRONG&gt;opensource scaLAPACK &amp;amp; Intel MPI&lt;/STRONG&gt; and let us know the memory being used?&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;Santosh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jan 2023 06:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1444890#M10231</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-01-09T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1445069#M10235</link>
      <description>&lt;P&gt;I compiled with Intel MPI and opensource scalapack. Specifically, I recompiled my scalapack software using the impi compilers on the cluster. I also linked the scalapack build with the blas, lapack contained in MKL.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;16 tasks --&amp;gt; 3624 MB lost&lt;/LI&gt;
&lt;LI&gt;49 tasks --&amp;gt; 7341 MB lost&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To eliminate all MKL, I recompiled scalapack using the blas/lapack in openblas (an older version, 0.2.20). To be clear, I compiled openblas using gcc/gfortran. I did this because of a little note in an openblas file to not use intel compilers. I compiled Scalapack using intel compilers.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;16 tasks --&amp;gt; 2118 MB lost&lt;/LI&gt;
&lt;LI&gt;49 tasks --&amp;gt; 3765 MB lost.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I then upgraded my openblas to v0.3.21.dev, and decided to compile openblas with intel compilers despite the message saying not to.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;16 tasks --&amp;gt; 2116 MB lost in solve&lt;/LI&gt;
&lt;LI&gt;49 tasks --&amp;gt; 3745 MB lost in solve.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 09 Jan 2023 19:18:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1445069#M10235</guid>
      <dc:creator>mp_def</dc:creator>
      <dc:date>2023-01-09T19:18:21Z</dc:date>
    </item>
    <item>
      <title>Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1447052#M10260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing all the details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your issue &amp;amp; we will get back to you soon.&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;Santosh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:21:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1447052#M10260</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-01-16T11:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1449174#M10289</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to reproduce your issue from my end and below are my observations:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;OpenMPI + MKL : &lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;: &amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;mpif90 -c working_ex.f90 -o bin/working_ex.o&lt;/LI&gt;
&lt;LI&gt;mpif90&amp;nbsp;-g -fopenmp -Oo -debug bin/working_ex.o&amp;nbsp;-L${MKLROOT}/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -liomp5 -lpthread -lm -ldl -o main&lt;/LI&gt;
&lt;LI&gt;mpirun -n 1 ./main&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Observations&lt;/STRONG&gt;: Getting an error as shown in the attachment(OpenMPI.debug)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Intel MPI + MKL : &lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;source /opt/intel/oneapi/mpi/latest/env/vars.sh&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;source /opt/intel/oneapi/compiler/latest/env/vars.sh&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;mpiifort -c working_ex.f90 -o bin/working_ex.o&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;mpiifort -O0 -g -debug -qmkl=cluster -recursive bin/working_ex.o -L${MKLROOT}/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -liomp5 -lpthread -lm -ldl -o main&lt;/LI&gt;
&lt;LI&gt;mpirun -n 16 ./main&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Observations&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (11).png" style="width: 619px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/37363i7B7D0427C8372D79/image-dimensions/619x200?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="619" height="200" role="button" title="MicrosoftTeams-image (11).png" alt="MicrosoftTeams-image (11).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let me know if there is anything that I missed or went wrong while trying the OpenMPI+MKL combination?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Santosh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 08:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1449174#M10289</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-01-23T08:49:51Z</dc:date>
    </item>
    <item>
      <title>Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1451241#M10308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know if there is anything that I missed or went wrong while trying the OpenMPI+MKL combination? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jan 2023 06:06:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1451241#M10308</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-01-30T06:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1452664#M10333</link>
      <description>&lt;P&gt;Hi. I’m looking at this and will get back to you soon.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 16:15:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1452664#M10333</guid>
      <dc:creator>mp_def</dc:creator>
      <dc:date>2023-02-02T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1454780#M10364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;"I’m looking at this and will get back to you soon."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Could you please provide us with an update on this 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;Santosh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 04:34:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1454780#M10364</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-02-09T04:34:44Z</dc:date>
    </item>
    <item>
      <title>Re:scalapack memory loss</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1456523#M10395</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. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&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;Santosh&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2023 11:52:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/scalapack-memory-loss/m-p/1456523#M10395</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2023-02-16T11:52:45Z</dc:date>
    </item>
  </channel>
</rss>

