<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dynamic process is currently not supported with ch4:ucx.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Iker Martín Álvarez via discuss <discuss@mpich.org><br>
<b>Date: </b>Wednesday, April 21, 2021 at 6:22 PM<br>
<b>To: </b>discuss@mpich.org <discuss@mpich.org><br>
<b>Cc: </b>Iker Martín Álvarez <martini@uji.es><br>
<b>Subject: </b>[mpich-discuss] MPI_Comm_Spawn + UCX error<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I have been working with the MPI_Comm_spawn function, which was working fine for a simple compiled version of MPICH 3.4.1, where in the <i>configure</i> step it only has the "--prefix" argument.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">However, when this function was called with another compiled version of MPICH 3.4.1 which uses Infiniband, an error arised. Am I missing some arguments in the compilation step of MPICH when using UCX?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Here is the output of <i>mpichversion</i>:<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">$ mpichversion<o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH Version: 3.4.1<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH Release date: Fri Jan 22 14:17:48 CST 2021<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH Device: ch4:ucx<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH configure: --prefix=/soft/gnu/mpich-3.4.1-ucx --with-device=ch4:ucx --with-ucx=/soft/gnu/ucx-1.11<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH CC: gcc -O2<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH CXX: g++ -O2<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH F77: gfortran -O2<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH FC: gfortran -O2<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">MPICH Custom Information: <o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">The following is the information about the minimal code which arises the error<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal" style="margin-left:.5in">Source: <a href="https://www.rookiehpc.com/mpi/docs/mpi_comm_spawn.php" target="_blank">
https://www.rookiehpc.com/mpi/docs/mpi_comm_spawn.php</a><o:p></o:p></p>
</div>
</blockquote>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal" style="margin-left:.5in">Compiling: mpicc mpi_spawn.c<o:p></o:p></p>
</div>
</blockquote>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal" style="margin-left:.5in">Running: mpirun -np 2 ./a.out<o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">We are processes spawned directly by you, we now spawn a new instance of an MPI application.<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">We are processes spawned directly by you, we now spawn a new instance of an MPI application.<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">Assertion failed in file src/mpid/ch4/src/ch4_init.c at line 651: MPIR_Process.comm_parent != NULL<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/soft/gnu/mpich-3.4.1-ucx/lib/libmpi.so.12(MPL_backtrace_show+0x39) [0x7fe15d506d41]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/soft/gnu/mpich-3.4.1-ucx/lib/libmpi.so.12(+0x32eaa8) [0x7fe15d4a6aa8]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/soft/gnu/mpich-3.4.1-ucx/lib/libmpi.so.12(+0x3602f8) [0x7fe15d4d82f8]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/soft/gnu/mpich-3.4.1-ucx/lib/libmpi.so.12(+0x225803) [0x7fe15d39d803]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/soft/gnu/mpich-3.4.1-ucx/lib/libmpi.so.12(PMPI_Init+0xa8) [0x7fe15d39d598]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">./a.out(+0x123e) [0x55ece110a23e]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fe15cfa10b3]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">./a.out(+0x114e) [0x55ece110a14e]<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<div>
<div>
<div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal" style="margin-left:.5in">Abort(1) on node 0: Internal error<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>