<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size: 12pt; color: rgb(0, 0, 0);" class="ContentPasted0">Hi Christof,</span>
<div style="font-size: 12pt; color: rgb(0, 0, 0);"><br class="ContentPasted0">
</div>
<span style="font-size: 12pt; color: rgb(0, 0, 0);" class="ContentPasted0">To provide a little clarity here, that should not affect us. There are 3 standards for PMI: PMI1, PMI2, and PMIx. PMI1 is well standardized and well established. PMI2 was pushed for
 largely by Slurm but was never fully implemented as a standard. Therefore, each flavor of PMI2 works a little differently. For this reason, we no longer recommend it since it often breaks and is not as stable as the PMI1 interface in most instances. PMIx is
 a newer standardized PMI interface that is written and maintained by the PMIx Forum in a similar fashion to the MPI forum. It has seen some adoption but requires an external library and is the one undergoing active development. This is the version 1.X they
 are referring to. </span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
The issue here is that we made some adjustments to the fallback path to support launchers other than hydra and slurm and there appears to be a bug in that path. I have attached a patch for that. In my testing that resolves issues on the fallback path. Please
 let me know if you still have issues. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Nat<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> christof.koehler@bccms.uni-bremen.de <christof.koehler@bccms.uni-bremen.de><br>
<b>Sent:</b> Friday, May 19, 2023 02:31<br>
<b>To:</b> Shineman, Nat <shineman.5@osu.edu><br>
<b>Cc:</b> mvapich-discuss@lists.osu.edu <mvapich-discuss@lists.osu.edu><br>
<b>Subject:</b> Re: [Mvapich-discuss] mvapich 3.0b srun start failure</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">!-------------------------------------------------------------------|<br>
  This Message Is From an External Sender<br>
  This message came from outside your organization.<br>
|-------------------------------------------------------------------!<br>
<br>
Hello Nat,<br>
<br>
there might have been a mess up on our side.<br>
<br>
We upgraded in between to slurm 23.02.2 for unrelated reasons without<br>
thinking too much about it, the cluster is not yet in regular use.<br>
However, the release notes contain:<br>
"NOTE: PMIx v1.x is no longer supported."<br>
<br>
I do not understand the version naming of PMI(x), so this might be<br>
related or unrelated to the problem I observed. The slurm-libpmi rpm<br>
we built and installed however still contains<br>
/usr/lib64/libpmi.so<br>
/usr/lib64/libpmi.so.0<br>
/usr/lib64/libpmi.so.0.0.0<br>
which I believe is pmi1 as needed by mvapich.<br>
<br>
<br>
Best Regards<br>
<br>
Christof<br>
<br>
On Thu, May 18, 2023 at 01:46:35PM +0000, Shineman, Nat wrote:<br>
> Hi Cristof,<br>
> <br>
> Thanks for reporting this. It looks like what is happening is srun is unable to get your process mapping from the slurm daemon and is doing a fallback method. We've overridden that fallback to support other launchers with PMI1 support and it looks like we
 did not provide the correct safeties to ensure it still worked with slrum. I should be able to provide you with a patch shortly. In the meantime, yes you can try building with hydra and/or mpirun_rsh by removing the slurm arguments. Both of those launchers
 have some degree of integration with slurm.<br>
> <br>
> Thanks,<br>
> Nat<br>
> ________________________________<br>
> From: Mvapich-discuss <mvapich-discuss-bounces@lists.osu.edu> on behalf of christof.koehler--- via Mvapich-discuss <mvapich-discuss@lists.osu.edu><br>
> Sent: Thursday, May 18, 2023 07:47<br>
> To: mvapich-discuss@lists.osu.edu <mvapich-discuss@lists.osu.edu><br>
> Subject: [Mvapich-discuss] mvapich 3.0b srun start failure<br>
> <br>
> Hello everybody,<br>
> <br>
> I now started to test the mvapich 3.0b build. It was compiled on Rocky<br>
> Linux 9.1 with slurm 23.02.2 and gcc 11.3.1. See at the end of email for<br>
> mpichversion output.<br>
> <br>
> When I try to start a simple mpi hello world with srun --mpi=pmi2<br>
> I see an error messages concerning PMI and a segfault, see also at the<br>
> end of the email. The same mpi hello world source code using the same<br>
> srun --mpi=pmi2 invocation (but obviously different binaries) works fine<br>
> with mvapich2 2.3.7, mpich 4.1.1 and openmpi 4.1.5.<br>
> <br>
> Should I try another launcher, e.g. hydra by not setting --with-pm and<br>
> --with-pmi ? Would the hydra launcher be able to communicate wth slurm,<br>
> though ?<br>
> <br>
> Best Regards<br>
> <br>
> Christof<br>
> <br>
> $ mpichversion<br>
> MVAPICH Version:        3.0b<br>
> MVAPICH Release date:   04/10/2023<br>
> MVAPICH Device:         ch4:ofi<br>
> MVAPICH configure:      --with-pm=slurm --with-pmi=pmi1<br>
> --with-device=ch4:ofi --prefix=/cluster/mpi/mvapich2/3.0a/gcc11.3.1<br>
> MVAPICH CC:     gcc    -DNDEBUG -DNVALGRIND -O2<br>
> MVAPICH CXX:    g++   -DNDEBUG -DNVALGRIND -O2<br>
> MVAPICH F77:    gfortran -fallow-argument-mismatch  -O2<br>
> MVAPICH FC:     gfortran   -O2<br>
> MVAPICH Custom Information:     @MVAPICH_CUSTOM_STRING@<br>
> <br>
> Error Message:<br>
> <br>
> INTERNAL ERROR: invalid error code 6163 (Ring ids do not match) in<br>
> MPIR_NODEMAP_build_nodemap_fallback:355<br>
> Abort(2141455) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init:<br>
> Other MPI error, error stack:<br>
> MPIR_Init_thread(175)...................:<br>
> MPID_Init(509)..........................:<br>
> MPIR_pmi_init(119)......................:<br>
> build_nodemap(882)......................:<br>
> MPIR_NODEMAP_build_nodemap_fallback(355):<br>
> In: PMI_Abort(2141455, Fatal error in PMPI_Init: Other MPI error, error<br>
> stack:<br>
> MPIR_Init_thread(175)...................:<br>
> MPID_Init(509)..........................:<br>
> MPIR_pmi_init(119)......................:<br>
> build_nodemap(882)......................:<br>
> MPIR_NODEMAP_build_nodemap_fallback(355): )<br>
> INTERNAL ERROR: invalid error code 6106 (Ring ids do not match) in<br>
> MPIR_NODEMAP_build_nodemap_fallback:355<br>
> Abort(2141455) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init:<br>
> Other MPI error, error stack:<br>
> MPIR_Init_thread(175)...................:<br>
> MPID_Init(509)..........................:<br>
> MPIR_pmi_init(119)......................:<br>
> build_nodemap(882)......................:<br>
> MPIR_NODEMAP_build_nodemap_fallback(355):<br>
> In: PMI_Abort(2141455, Fatal error in PMPI_Init: Other MPI error, error<br>
> stack:<br>
> MPIR_Init_thread(175)...................:<br>
> MPID_Init(509)..........................:<br>
> MPIR_pmi_init(119)......................:<br>
> build_nodemap(882)......................:<br>
> MPIR_NODEMAP_build_nodemap_fallback(355): )<br>
> srun: error: gpu001: tasks 0-9: Segmentation fault (core dumped)<br>
> <br>
> <br>
> <br>
> <br>
> --<br>
> Dr. rer. nat. Christof Köhler       email: c.koehler@uni-bremen.de<br>
> Universitaet Bremen/FB1/BCCMS       phone:  +49-(0)421-218-62334<br>
> Am Fallturm 1/ TAB/ Raum 3.06       fax: +49-(0)421-218-62770<br>
> 28359 Bremen<br>
> _______________________________________________<br>
> Mvapich-discuss mailing list<br>
> Mvapich-discuss@lists.osu.edu<br>
> <a href="https://lists.osu.edu/mailman/listinfo/mvapich-discuss">https://lists.osu.edu/mailman/listinfo/mvapich-discuss</a><br>
<br>
-- <br>
Dr. rer. nat. Christof Köhler       email: c.koehler@uni-bremen.de<br>
Universitaet Bremen/FB1/BCCMS       phone:  +49-(0)421-218-62334<br>
Am Fallturm 1/ TAB/ Raum 3.06       fax: +49-(0)421-218-62770<br>
28359 Bremen  <br>
</div>
</span></font></div>
</body>
</html>