Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2024 09:33:46 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0d309c1afa74 - main - Mk/Uses/mpi.mk: adapt the dependency on OpenMPI according to $ARCH
Message-ID:  <202402180933.41I9Xk4k032721@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d309c1afa7476e9aff4fd98b00cb8dbb79d402c

commit 0d309c1afa7476e9aff4fd98b00cb8dbb79d402c
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-01-26 10:33:41 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-02-18 09:22:34 +0000

    Mk/Uses/mpi.mk: adapt the dependency on OpenMPI according to $ARCH
---
 Mk/Uses/mpi.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/mpi.mk b/Mk/Uses/mpi.mk
index 770e9d375f19..cf14ec675118 100644
--- a/Mk/Uses/mpi.mk
+++ b/Mk/Uses/mpi.mk
@@ -39,7 +39,11 @@ MPIF90=		${MPIFC}
 .    endif
 MPI_CFLAGS+=	`pkgconf --cflags mpich`
 .  elif ${mpi_ARGS} == openmpi
-LIB_DEPENDS+=	libmpi_cxx.so:net/openmpi
+.    if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc
+LIB_DEPENDS+=	libmpi_cxx.so:net/openmpi4
+.    else
+LIB_DEPENDS+=	libmpi_mpifh.so:net/openmpi
+.    endif
 MPI_HOME=	${LOCALBASE}/mpi/openmpi
 MPI4PY=		${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
 .    if ${USES:Mfortran}



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