Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2021 12:03:36 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561056 - head/net/openmpi
Message-ID:  <202101101203.10AC3aRm060442@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Jan 10 12:03:36 2021
New Revision: 561056
URL: https://svnweb.freebsd.org/changeset/ports/561056

Log:
  net/openmpi: Add an option to enable AVX support
  
  OpenMPI 4.1 fails to detect if the host supports AVX instructions and will fail to build if it doesn't [1].
  
  Also, include the ABI version to the hwloc2 library dependency. If the user has devel/hwloc (and not devel/hwloc2) installed it will satify the dependency check anyway and link against the wrong lib.
  
  [1] - https://github.com/open-mpi/ompi/issues/8306
  
  PR:		252506

Modified:
  head/net/openmpi/Makefile
  head/net/openmpi/pkg-plist

Modified: head/net/openmpi/Makefile
==============================================================================
--- head/net/openmpi/Makefile	Sun Jan 10 11:36:40 2021	(r561055)
+++ head/net/openmpi/Makefile	Sun Jan 10 12:03:36 2021	(r561056)
@@ -2,6 +2,7 @@
 
 PORTNAME=	openmpi
 PORTVERSION=	4.1.0
+PORTREVISION=	1
 CATEGORIES=	net parallel
 MASTER_SITES=	http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
 
@@ -15,7 +16,7 @@ BROKEN_armv6=		fails to package: pkg-static: mca_patch
 BROKEN_armv7=		fails to package: pkg-static: mca_patcher_overwrite.la: No such file or directory
 BROKEN_sparc64=		fails to compile on sparc64
 
-LIB_DEPENDS=	libhwloc.so:devel/hwloc2 \
+LIB_DEPENDS=	libhwloc.so.15:devel/hwloc2 \
 		libltdl.so:devel/libltdl \
 		libevent.so:devel/libevent \
 		libmunge.so:security/munge
@@ -57,12 +58,15 @@ MANPREFIX=	${PREFIX}/${MPIDIR}
 SHEBANG_FILES=	ompi/mca/common/monitoring/profile2mat.pl \
 		ompi/mca/common/monitoring/aggregate_profile.pl
 
-OPTIONS_DEFINE=	DEBUG IPV6 SLURM TORQUE
+OPTIONS_DEFINE=	AVX DEBUG IPV6 SLURM TORQUE
+AVX_DESC=	Enable AVX instructions
 TORQUE_DESC=	Enable Torque support
 SLURM_DESC=	Enable SLURM support
 OPTIONS_DEFAULT=	SLURM
 OPTIONS_EXCLUDE_i386=	SLURM
 OPTIONS_SUB=	yes
+
+AVX_CONFIGURE_OFF=	--enable-mca-no-build=op-avx
 
 DEBUG_CONFIGURE_ENABLE=	debug
 DEBUG_INSTALL_TARGET_OFF=	install-strip

Modified: head/net/openmpi/pkg-plist
==============================================================================
--- head/net/openmpi/pkg-plist	Sun Jan 10 11:36:40 2021	(r561055)
+++ head/net/openmpi/pkg-plist	Sun Jan 10 12:03:36 2021	(r561056)
@@ -225,8 +225,8 @@ libdata/pkgconfig/pmix.pc
 %%MPIDIR%%/lib/openmpi/mca_odls_pspawn.so
 %%MPIDIR%%/lib/openmpi/mca_oob_tcp.la
 %%MPIDIR%%/lib/openmpi/mca_oob_tcp.so
-%%MPIDIR%%/lib/openmpi/mca_op_avx.la
-%%MPIDIR%%/lib/openmpi/mca_op_avx.so
+%%AVX%%%%MPIDIR%%/lib/openmpi/mca_op_avx.la
+%%AVX%%%%MPIDIR%%/lib/openmpi/mca_op_avx.so
 %%MPIDIR%%/lib/openmpi/mca_osc_monitoring.la
 %%MPIDIR%%/lib/openmpi/mca_osc_monitoring.so
 %%MPIDIR%%/lib/openmpi/mca_osc_pt2pt.la



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101101203.10AC3aRm060442>