[mvapich-discuss] failed to compile mvapich2 with upstream hwloc-2.2.0

Honggang LI honli at redhat.com
Wed Jun 24 11:40:01 EDT 2020


On Wed, Jun 24, 2020 at 01:44:30PM +0000, Subramoni, Hari wrote:
> Hi, Honggang.
> 
> Please accept my apologies for the delay. I got context switched to other things.
> 
> Glad to know that you were able to resolve the issues. If it is not too much trouble, could you please post the resolution as well?

The key point is that you can't use "--with-hwloc-prefix=system" after
apply this simple patch.

diff --git a/Makefile.in b/Makefile.in
index d21f9fe..87273d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3038,10 +3038,10 @@ bin_PROGRAMS = $(am__EXEEXT_1) src/env/mpichversion$(EXEEXT) \
 @BUILD_F77_BINDING_TRUE@@BUILD_PROFILING_LIB_TRUE at am__append_175 = -DMPICH_MPI_FROM_PMPI -DUSE_ONLY_MPI_NAMES
 @BUILD_F77_BINDING_TRUE@@BUILD_FC_BINDING_TRUE at am__append_176 = $(mpi_fc_sources)
 @BUILD_CXX_BINDING_TRUE at am__append_177 = lib/lib at MPICXXLIBNAME@.la
- at BUILD_OSU_MVAPICH_TRUE@am__append_178 = contrib/hwloc
+ at BUILD_OSU_MVAPICH_TRUE@am__append_178 =
 @BUILD_OSU_MVAPICH_TRUE at am__append_179 = src/env/mpiname src/util/mv2_ckpt_rebuild osu_benchmarks
- at BUILD_OSU_MVAPICH_TRUE@am__append_180 = -Icontrib/hwloc/include/ -I$(top_srcdir)/contrib/hwloc/include
- at BUILD_OSU_MVAPICH_TRUE@am__append_181 = contrib/hwloc/hwloc/libhwloc_embedded.la
+ at BUILD_OSU_MVAPICH_TRUE@am__append_180 =
+ at BUILD_OSU_MVAPICH_TRUE@am__append_181 = -lhwloc
 @BUILD_COVERAGE_TRUE at am__append_182 = coverage-clean
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4

When "--with-hwloc-prefix=system" used while configure,
mvapich2-2.3.4/src/pm/hydra/ will be compiled and linked with system
hwloc-2.x. Without "--with-hwloc-prefix=", mvapich2-2.3.4/src/pm/hydra/
will configure and build
mvapich2-2.3.4/src/pm/hydra/tools/topo/hwloc/hwloc .

Thanks



More information about the mvapich-discuss mailing list