aboutsummaryrefslogtreecommitdiff
path: root/net/openmpi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/openmpi/Makefile')
-rw-r--r--net/openmpi/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/net/openmpi/Makefile b/net/openmpi/Makefile
index f8835fab96e2..4d57487e26ca 100644
--- a/net/openmpi/Makefile
+++ b/net/openmpi/Makefile
@@ -1,5 +1,6 @@
PORTNAME= openmpi
-DISTVERSION= 5.0.8
+DISTVERSION= 5.0.9
+PORTREVISION= 1
CATEGORIES= net parallel
MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v${DISTVERSION:R}/
@@ -11,11 +12,13 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= armv6 armv7 i386 powerpc
-NOT_FOR_ARCHS_REASON= Not supported on 32-bits - see net/openmpi4
+NOT_FOR_ARCHS_REASON= Not supported on 32-bits
LIB_DEPENDS= libhwloc.so:devel/hwloc2 \
libevent.so:devel/libevent \
- libmunge.so:security/munge
+ libmunge.so:security/munge \
+ libpmix.so:net/pmix \
+ libprrte.so:net/prrte
# :keepla because port uses lt_dlopen
USES= compiler:c11 fortran gmake libtool:keepla localbase perl5 \
@@ -36,11 +39,13 @@ CONFIGURE_ARGS+= --program-prefix= \
--without-ofi \
--enable-mpi-fortran=usempif08 \
--with-libevent=external \
- --with-pmix=internal \
+ --with-pmix=${LOCALBASE} \
+ --with-prrte=${LOCALBASE} \
--enable-mca-no-build=verbs,btl_openib,oob_ud \
--with-wrapper-ldflags=-Wl,-rpath=-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
TEST_TARGET= check
CFLAGS+= ${CFLAGS_F2018}
+LDFLAGS+= -lpthread
PIE_UNSAFE= yes
CONFLICTS_INSTALL= openmpi4-4*
@@ -51,7 +56,7 @@ PLIST_SUB+= MPIDIR=${MPIDIR}
PORTDOCS= *
OPTIONS_DEFINE= AVX DEBUG DOCS IPV6 ROMIO SLURM
-OPTIONS_DEFAULT= ROMIO
+OPTIONS_DEFAULT= ROMIO SLURM
OPTIONS_EXCLUDE_aarch64= AVX
OPTIONS_EXCLUDE_armv6= AVX SLURM
OPTIONS_EXCLUDE_armv7= AVX SLURM
@@ -81,8 +86,9 @@ IPV6_CONFIGURE_ENABLE= ipv6
ROMIO_CONFIGURE_OFF= --disable-io-romio
-SLURM_LIB_DEPENDS= libslurm.so:sysutils/slurm-wlm
SLURM_CONFIGURE_WITH= slurm
+# Slurm integration in OpenMPI is handled through the PMIx interface
+#SLURM_LIB_DEPENDS= libslurm.so:sysutils/slurm-wlm
.include <bsd.port.pre.mk>