[Mvapich-discuss] catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"

Subramoni, Hari subramoni.1 at osu.edu
Thu Jun 17 12:18:32 EDT 2021


Hi, James.

Can you please see if the patch pasted below works for you?

 diff --git a/src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c b/src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c
index f13cd70..9fcce02 100644
--- a/src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c
+++ b/src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c
@@ -13,9 +13,9 @@
 #include "mpidi_ch3_impl.h"
 #include "upmi.h"
 #include "error_handling.h"
-#if !defined(SLURM_PMI_CLIENT) && !defined(JSM_PMI_CLIENT) && !defined(FLUX_PMI_CLIENT)
+#ifdef HYDRA_PMI_CLIENT
 #include "src/pm/hydra/include/hydra_config.h"
-#endif /* !defined(SLURM_PMI_CLIENT) && !defined(JSM_PMI_CLIENT) && !defined(FLUX_PMI_CLIENT) */
+#endif

 #undef FUNCNAME
 #define FUNCNAME MPIDI_CH3_Abort
diff --git a/src/pm/subconfigure.m4 b/src/pm/subconfigure.m4
index 20e9c37..be9b07d 100644
--- a/src/pm/subconfigure.m4
+++ b/src/pm/subconfigure.m4
@@ -15,6 +15,8 @@ done
 # we handle these conditionals here in the BODY because they depend on logic in
 # the main portion of the top-level configure
 AM_CONDITIONAL([BUILD_PM_HYDRA],[test "x$build_pm_hydra" = "xyes"])
+AS_IF([test "x$build_pm_hydra" = "xyes"],
+    [AC_DEFINE([HYDRA_PMI_CLIENT], [1], [Define if using hydra pmi client])])

 dnl AC_MSG_NOTICE([RUNNING CONFIGURE FOR PROCESS MANAGERS])
 # do nothing extra here for now

Best,
Hari.

-----Original Message-----
From: Subramoni, Hari <subramoni.1 at osu.edu> 
Sent: Thursday, June 17, 2021 10:18 AM
To: Long, James W <jlong1s at illinois.edu>
Cc: mvapich-discuss at lists.osu.edu; Subramoni, Hari <subramoni.1 at osu.edu>
Subject: RE: [Mvapich-discuss] catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"

Hi, James.

Sorry about the delay in getting back to you. Thanks for reporting the issue. We will create a fix soon and get back to you.

Best,
Hari.

-----Original Message-----
From: Mvapich-discuss <mvapich-discuss-bounces at lists.osu.edu> On Behalf Of Long, James W via Mvapich-discuss
Sent: Tuesday, June 15, 2021 1:16 PM
To: mvapich-discuss at lists.osu.edu
Subject: [Mvapich-discuss] catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"

Trying to build mvapich2 version 2.3.6 with a fairly straight forward configure / make sequence including "—with-pm=mpirun" results in hydra_config.h not being created during the configure, which in turn leads to a compilation error during the make.


./configure CC=icc CXX=icpc F77=ifort FC=ifort --with-pm=mpirun --enable-f77 --enable-fc --enable-cxx --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test

+ ./configure CC=icc CXX=icpc F77=ifort FC=ifort --with-pm=mpirun
+ --enable-f77 --enable-fc --enable-cxx 
+ --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test
Configuring MVAPICH2 version 2.3.6 with  'CC=icc' 'CXX=icpc' 'F77=ifort' 'FC=ifort' '--with-pm=mpirun' '--enable-f77' '--enable-fc' '--enable-cxx' '--prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test'
Running on system: Linux iforge082 3.10.0-1160.25.1.el7.x86_64 #1 SMP Tue Apr 13 18:55:45 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

.
.
.

make

.
.
.

 CC       src/mpid/ch3/channels/mrail/src/rdma/lib_libmpi_la-ch3_abort.lo
src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c(17): catastrophic error: cannot open source file "src/pm/hydra/include/hydra_config.h"
 #include "src/pm/hydra/include/hydra_config.h"
                                               ^

compilation aborted for src/mpid/ch3/channels/mrail/src/rdma/ch3_abort.c (code 4)
make[2]: *** [src/mpid/ch3/channels/mrail/src/rdma/lib_libmpi_la-ch3_abort.lo] Error 1
make[2]: Leaving directory `/usr/local/mpi/mvapich2/mvapich2-2.3.6-intel-2019.5-test/build/mvapich2-2.3.6’



If the “—with-pm=mpirun” argument is omitted, the configure / make sequence completes without an error and I see the following lines in the output of the configure command -

configure: creating ./config.status
config.status: creating tools/topo/hwloc/hwloc/Makefile
config.status: creating tools/topo/hwloc/hwloc/include/Makefile
config.status: creating tools/topo/hwloc/hwloc/src/Makefile
config.status: creating Makefile
config.status: creating tools/bootstrap/src/bsci_init.c
config.status: creating hydra-doxygen.cfg
config.status: creating include/hydra_config.h


If I then go back and rerun the original configure command, with the “—with-pm=mpirun” argument in place, and the hydra_config.h file pre-existing from the previous configure command, the configure / make sequence proceeds without error.

I tried this with version 2.3.5 and got the same result.

Jim Long
NCSA
_______________________________________________
Mvapich-discuss mailing list
Mvapich-discuss at lists.osu.edu
https://lists.osu.edu/mailman/listinfo/mvapich-discuss


More information about the Mvapich-discuss mailing list