<?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:Access violation using MPI_Dist_graph_create() ... in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254492#M7753</link>
    <description>&lt;P&gt;I have received information from our development team that the internal issues are fixed for the next release, Intel® MPI Library 2021.2.  Please watch for this release as part of the next update to Intel® oneAPI HPC Toolkit.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Feb 2021 15:20:48 GMT</pubDate>
    <dc:creator>James_T_Intel</dc:creator>
    <dc:date>2021-02-09T15:20:48Z</dc:date>
    <item>
      <title>Access violation using MPI_Dist_graph_create() in spawned processes.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200061#M7007</link>
      <description>&lt;P&gt;I have a python script that spawns two instances of an app using mpi4py (MPI.COMM_SELF.Spawn_multiple()). The app is coded in Fortran. Next, I'm setting up a graph for neighborhood communication between the two spawned processes. I'm getting an access violation in the Fortran child apps on the call to MPI_Dist_graph_create().&lt;/P&gt;
&lt;P&gt;I'm linking the Fortran app against Intel MPI and use Intel distribution for Python on Windows 10. I also tried a standard Python distribution with mpi4py built manually against the Intel MPI library--same result.&lt;/P&gt;
&lt;P data-unlink="true"&gt;Attached a minimal example. Error message included below. This example runs fine with MSMPI.&lt;/P&gt;
&lt;P data-unlink="true"&gt;Note that I ran in a different problem spawning the Fortran apps from python, described &lt;A href="https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1199990/highlight/true#M1505" target="_blank" rel="noopener"&gt;in a different post&lt;/A&gt;.&amp;nbsp;I solved this by creating a symbolic link to the appropriate directory in the Python installation directory.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Maarten&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;[proxy:1:0@T0147953] main (proxy.c:954): error launching_processes
[mpiexec@T0147953] Sending Ctrl-C to processes as requested
[mpiexec@T0147953] Press Ctrl-C again to force abort
[mpiexec@T0147953] HYD_sock_write (..\windows\src\hydra_sock.c:382): write error (errno = 2)
[mpiexec@T0147953] wmain (mpiexec.c:2096): assert (exitcodes != NULL) failed
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source
impi.dll           00007FFCB6A691D8  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FFD32A856FD  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FFD36084034  Unknown               Unknown  Unknown
ntdll.dll          00007FFD363A3691  Unknown               Unknown  Unknown

(base) c:\intelpython3\symlink&amp;gt;python python_parent.py
forrtl: severe (157): Program Exception - access violation
Image              PC                Routine            Line        Source
impi.dll           00007FFCB6303A43  Unknown               Unknown  Unknown
impi.dll           00007FFCB62C8981  Unknown               Unknown  Unknown
impi.dll           00007FFCB6A194ED  Unknown               Unknown  Unknown
fortran_child.exe  00007FF6B03A1531  MAIN__                     27  fortran_child.f90
fortran_child.exe  00007FF6B03A16C2  Unknown               Unknown  Unknown
fortran_child.exe  00007FF6B03A4184  Unknown               Unknown  Unknown
fortran_child.exe  00007FF6B03A40AE  Unknown               Unknown  Unknown
fortran_child.exe  00007FF6B03A3F6E  Unknown               Unknown  Unknown
fortran_child.exe  00007FF6B03A41F9  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FFD36084034  Unknown               Unknown  Unknown
ntdll.dll          00007FFD363A3691  Unknown               Unknown  Unknown&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 14:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200061#M7007</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-13T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation using MPI_Dist_graph_create() in spawned processes.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200338#M7014</link>
      <description>&lt;P&gt;Hi Maarten,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us logs after setting I_MPI_DEBUG=10&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set I_MPI_DEBUG=10&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Also, could you share the command you have used to create symbolic link?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Prasanth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:23:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200338#M7014</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-08-14T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation using MPI_Dist_graph_create() in spawned processes.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200345#M7015</link>
      <description>&lt;P&gt;The debug output is given below. I omitted the Fortran stack trace since this has nothing new, as far as I can see.&lt;/P&gt;
&lt;P&gt;I solved the problem with spawning the Fortran processes (solution posted in the thread of the post I referenced), so making a symbolic link is no longer necessary. I was a matter of passing a "path" parameter to MPI_Spawn_multiple(). The updated code of the python_shell is given below.&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Maarten&lt;/P&gt;
&lt;P&gt;python_shell.py:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from mpi4py import MPI
import numpy as np, os

info = MPI.Info.Create()
info.Set('path', os.getcwd())
sub_comm = MPI.COMM_SELF.Spawn_multiple(['fortran_child.exe']*2,info=info)
common_comm=sub_comm.Merge(False)

topocomm = common_comm.Create_dist_graph([0],[0], np.array([],dtype=int), MPI.UNWEIGHTED)

common_comm.Disconnect()
sub_comm.Disconnect()
topocomm.Disconnect()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Debug output:&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;[0] MPI startup(): libfabric version: 1.7.1a1-impi

[0] MPI startup(): libfabric provider: sockets

[0] MPI startup(): Rank    Pid      Node name  Pin cpu
[0] MPI startup(): 0       22224    T0147953   {0,1,2,3,4,5,6,7}
[0] MPI startup(): I_MPI_ROOT=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mpi
[0] MPI startup(): I_MPI_HYDRA_TOPOLIB=hwloc
[0] MPI startup(): I_MPI_DEBUG=10
[0] MPI startup(): libfabric version: 1.7.1a1-impi

[0] MPI startup(): libfabric provider: sockets

[0] MPI startup(): Rank    Pid      Node name  Pin cpu
[0] MPI startup(): 0       25772    T0147953   {0,1,2,3}
[0] MPI startup(): 1       26700    T0147953   {4,5,6,7}
[0] MPI startup(): I_MPI_ROOT=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mpi
[0] MPI startup(): I_MPI_HYDRA_TOPOLIB=hwloc
[0] MPI startup(): I_MPI_DEBUG=10&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:44:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200345#M7015</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-14T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation using MPI_Dist_graph_create() in spawned processes.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200591#M7019</link>
      <description>&lt;P&gt;Somebody incorrectly marked my post as the solution. Presumably because I wrote that I solved the problem of another post.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/45"&gt;@PrasanthD_intel&lt;/a&gt;: please not this problem is *not* yet solved.&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Maarten&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 11:10:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1200591#M7019</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-16T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201619#M7036</link>
      <description>&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We tried your code and it ran perfectly in Linux but giving &lt;B&gt;&lt;I&gt;"access violation error&lt;/I&gt;&lt;/B&gt;" when executed on windows, just like you have reported.&lt;/P&gt;&lt;P&gt;We don't know the exact reason so we escalating your query to the Subject Matter Experts.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2020 11:38:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201619#M7036</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-08-19T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201621#M7037</link>
      <description>&lt;P&gt;Thanks for that. I hope it gets solved soon.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Maarten&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 11:42:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201621#M7037</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-19T11:42:46Z</dc:date>
    </item>
    <item>
      <title>Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201857#M7047</link>
      <description>&lt;P&gt;I've reproduced this internally and I have provided this to our development team for analysis to fix the issue.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2020 21:59:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1201857#M7047</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2020-08-19T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1237918#M7439</link>
      <description>&lt;P&gt;The error you are encountering is actually the result of multiple internal issues:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;An incorrect interface is being selected on your system.  This can happen for multiple reasons, including VPN.  You can set FI_TCP_IFACE=eth0 to work around this issue.&lt;/LI&gt;&lt;LI&gt;An error in path for spawned images.  We are working to resolve this, there is currently no workaround.&lt;/LI&gt;&lt;LI&gt;An error in MPI_Probe indexing.  We are working to resolve this.&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Dec 2020 14:54:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1237918#M7439</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2020-12-16T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254492#M7753</link>
      <description>&lt;P&gt;I have received information from our development team that the internal issues are fixed for the next release, Intel® MPI Library 2021.2.  Please watch for this release as part of the next update to Intel® oneAPI HPC Toolkit.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 15:20:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254492#M7753</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2021-02-09T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254493#M7754</link>
      <description>&lt;P&gt;This issue has been resolved and we will no longer monitor this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 15:21:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254493#M7754</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2021-02-09T15:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Access violation using MPI_Dist_graph_create() ...</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254787#M7758</link>
      <description>&lt;P&gt;Great! Hope the new&amp;nbsp; version will be released soon.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 08:44:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Access-violation-using-MPI-Dist-graph-create-in-spawned/m-p/1254787#M7758</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2021-02-10T08:44:55Z</dc:date>
    </item>
  </channel>
</rss>

