<?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 Using Intel® MPI Library 2017 in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016999#M4035</link>
    <description>&lt;P&gt;Using Intel® MPI Library 2017 Update 2, I am able to allocate up to the maximum memory my system has available.&amp;nbsp; Please try with this version.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 19:52:51 GMT</pubDate>
    <dc:creator>James_T_Intel</dc:creator>
    <dc:date>2017-04-28T19:52:51Z</dc:date>
    <item>
      <title>INTEL-MPI-5.0: Bug in MPI-3 shared-memory allocation (MPI_WIN_ALLOCATE_SHARED, MPI_WIN_SHARED_QUERY)</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016993#M4029</link>
      <description>&lt;P&gt;Dear developers of Intel-MPI,&lt;/P&gt;

&lt;P&gt;First of all:&amp;nbsp; &amp;nbsp;Congratulations, that INTEL-MPI now supports also MPI-3 !&lt;/P&gt;

&lt;P&gt;However, I found a bug &amp;nbsp;in INTEL-MPI-5.0 when running the MPI-3 shared memory feature (calling MPI_WIN_ALLOCATE_SHARED, MPI_WIN_SHARED_QUERY) on a Linux Cluster (NEC Nehalem) &amp;nbsp;by a&amp;nbsp; Fortran95 CFD-code.&lt;/P&gt;

&lt;P&gt;I isolated the problem into a small Ftn95 example program, which allocates shared an integer*4-array of array dimension N , then uses it by the MPI-processes (on the same node), and then repeats the same for the next shared allocation. So, the number of shared windows do accumulate in the run, because I do not free the shared windows allocated so far. This allocation of shared windows works, but only until the total number of allocated memory exceeds a limit of ~30 millions of Integer*4 numbers (~120 MB).&lt;/P&gt;

&lt;P&gt;When that limit is reached, the next call of MPI_WIN_ALLOCATE_SHARED, MPI_WIN_SHARED_QUERY&amp;nbsp; to allocated one more shared window do not give an error message, but the 1&lt;SUP&gt;st&lt;/SUP&gt; attempt to use that allocated shared array results in a bus error (because the shared array has not been allocated correctly).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The problem is independent of the number of MPI-processes started by mpirun on the node (I used only 1 node)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Example:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;000&amp;nbsp;&amp;nbsp; à&amp;nbsp; bus error occurred at iwin=288&amp;nbsp;&amp;nbsp; (i.e. the allocation of the 288-th shared window had failed)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N=&amp;nbsp;&amp;nbsp; 1 000&amp;nbsp;000&amp;nbsp;&amp;nbsp; à&amp;nbsp; bus error occurred at iwin=&amp;nbsp; 30&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N=&amp;nbsp;&amp;nbsp; 5 000&amp;nbsp;000&amp;nbsp;&amp;nbsp; à&amp;nbsp; bus error occurred at iwin=&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;N= 28&amp;nbsp;000 000&amp;nbsp;&amp;nbsp; à&amp;nbsp; bus error occurred at iwin=&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N= 30&amp;nbsp;000 000&amp;nbsp;&amp;nbsp; à&amp;nbsp; bus error occurred at iwin=&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; (i.e. already the 1&lt;SUP&gt;st&lt;/SUP&gt; allocation failed)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The node on the cluster has 8 Nehalem cores, and had a free memory of 10 GB, and I was the only user on it. I used the INTEL-13 and also the INTEL-14 compiler for compiling the example program.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mpiifort -O0 -debug -traceback -check -fpe0 sharedmemtest.f90&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mpirun -binding -prepend-rank -ordered-output -np 4 ./a.out&lt;/P&gt;

&lt;P&gt;If it is helpful for you, I could send you the source code of the program.&lt;/P&gt;

&lt;P&gt;It seems to me, that there is an internal storage limitation in the implementation of the MPI-3 shared memory feature in INTEL-MPI-5.0 . I cannot use INTEL-MPI in my real CFD-code with that limitation, because in case of very large grids the total storage allocated simultaneously by the shared windows can exceed 10 GB.&lt;/P&gt;

&lt;P&gt;Greetings to you all&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Michael R.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2014 07:51:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016993#M4029</guid>
      <dc:creator>Michael_R_2</dc:creator>
      <dc:date>2014-08-05T07:51:47Z</dc:date>
    </item>
    <item>
      <title>This is a known bug at this</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016994#M4030</link>
      <description>&lt;P&gt;This is a known bug at this time, and we are working to correct it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 21:56:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016994#M4030</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-08-19T21:56:27Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016995#M4031</link>
      <description>&lt;P&gt;James,&lt;/P&gt;

&lt;P&gt;Is there a limit on the size of MPI-3 shared memory? In my tests, it seems that the maximum size is about 4GB for each shared window. The total number of windows cannot exceed 16381. Please confirm. I used intel MPI 2017.1.143, and all the tests were performed on HP workstation with 16 cores and 64GB RAM.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Qinghua&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:54:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016995#M4031</guid>
      <dc:creator>Qinghua_W_</dc:creator>
      <dc:date>2017-01-26T19:54:02Z</dc:date>
    </item>
    <item>
      <title>I'm checking with our</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016996#M4032</link>
      <description>&lt;P&gt;I'm checking with our engineering team regarding any limits set.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:06:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016996#M4032</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2017-01-31T18:06:29Z</dc:date>
    </item>
    <item>
      <title>We do not have any specific</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016997#M4033</link>
      <description>&lt;P&gt;We do not have any specific limits set for the size of a window.&amp;nbsp; There is a limit of 16381 for the number of windows, due to a limitation on the number of communicators.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:45:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016997#M4033</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2017-02-01T16:45:07Z</dc:date>
    </item>
    <item>
      <title>James,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016998#M4034</link>
      <description>&lt;P&gt;James,&lt;/P&gt;

&lt;P&gt;Sorry for insisting on the topic of shared windows' individual size limit, raised by &lt;A href="https://software.intel.com/pt-br/user/1556166"&gt;Qinghua W&lt;/A&gt;., but I've been facing similar difficulties. According to my tests, when using MPI_Win_allocate_shared, I'm not able to allocate anything beyond the limit of 4GB for a single MPI shared window, just like what was previously&amp;nbsp;reported by &lt;A href="https://software.intel.com/pt-br/user/1556166"&gt;Qinghua W&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;In my test code, I'm just trying to allocate an array of (mySize x nProcs) floats in total, where "mySize" is the number of floats allocated by each MPI process and nProcs is the number processes.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float* myPtrA;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; MPI_Win_allocate_shared( mySize*sizeof(float), sizeof(float), MPI_INFO_NULL, MPI_COMM_WORLD, &amp;amp;myPtrA, &amp;amp;winA );&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;No mattering how many MPI processes I have, the total amount of allocated memory in the window "winA" cannot exceed the limit of 4GB, or i'll get an error. In this example, I can allocate up to 1073741823 floats (i.e. mySize x nProcs =&amp;nbsp;1073741823). When trying to allocate 1073741824 floats, I get the following error:&lt;/P&gt;

&lt;P&gt;Fatal error in PMPI_Win_allocate_shared: Other MPI error, error stack:&lt;BR /&gt;
	PMPI_Win_allocate_shared(168).........: MPI_Win_allocate_shared(size=536870912, MPI_INFO_NULL, MPI_COMM_WORLD, baseptr=00000000002DFA00, win=00000000002DFA10) failed&lt;BR /&gt;
	MPID_Win_allocate_shared(232).........:&lt;BR /&gt;
	MPIDI_CH3U_Win_allocate(230)..........:&lt;BR /&gt;
	MPIDI_CH3I_Win_allocate_shm(217)......:&lt;BR /&gt;
	MPIU_SHMW_Seg_create_and_attach(902)..:&lt;BR /&gt;
	MPIU_SHMW_Seg_create_attach_templ(783): unable to attach to shared memory - MapViewOfFile (...).&lt;/P&gt;

&lt;P&gt;I'm using Intel(R) MPI Library for Windows* OS, Version 5.0 Update 1 Build 20140709.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:09:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016998#M4034</guid>
      <dc:creator>Rafael_N_</dc:creator>
      <dc:date>2017-04-17T13:09:52Z</dc:date>
    </item>
    <item>
      <title>Using Intel® MPI Library 2017</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016999#M4035</link>
      <description>&lt;P&gt;Using Intel® MPI Library 2017 Update 2, I am able to allocate up to the maximum memory my system has available.&amp;nbsp; Please try with this version.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 19:52:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1016999#M4035</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2017-04-28T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: We do not have any specific</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1592229#M11668</link>
      <description>&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;I have been trying to debug a crash in my application code when using MPI_Win_allocate_shared.&amp;nbsp; The crash seems to occur when the number of allocations gets too large.&amp;nbsp; I created a simple C++ test program on Linux, and it appears to crash after approximately 32,000 allocations (all still in memory).&amp;nbsp; This number seems to be fairly consistent, regardless of the size of the window I allocate or the number of processes I run on.&amp;nbsp; I am using Intel MPI Library Version 2021.1 Build 20201112.&lt;/P&gt;&lt;P&gt;Is there still a limit for the number of shared memory windows using Intel MPI?&amp;nbsp; Is this limit larger in more recent versions of the library, or are there plans to increase it?&lt;/P&gt;&lt;P&gt;Please let me know if you need further details of my implementation, hardware architecture, etc.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:17:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1592229#M11668</guid>
      <dc:creator>DavidM1</dc:creator>
      <dc:date>2024-04-24T10:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: We do not have any specific</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1592999#M11673</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/353803"&gt;@DavidM1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;please do not reply to such an old post.&lt;BR /&gt;We can only help here for the latest release. If you upgrade to 2021.12 and the issue still exists, please open a new thread, providing all necessary details on your environment.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 16:14:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/INTEL-MPI-5-0-Bug-in-MPI-3-shared-memory-allocation-MPI-WIN/m-p/1592999#M11673</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-04-26T16:14:24Z</dc:date>
    </item>
  </channel>
</rss>

