diff options
Diffstat (limited to 'sys-cluster/openmpi')
-rw-r--r-- | sys-cluster/openmpi/Manifest | 2 | ||||
-rw-r--r-- | sys-cluster/openmpi/openmpi-5.0.6.ebuild | 142 |
2 files changed, 144 insertions, 0 deletions
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest index 5beccc72cf35..bdc3c6a032c2 100644 --- a/sys-cluster/openmpi/Manifest +++ b/sys-cluster/openmpi/Manifest @@ -2,7 +2,9 @@ AUX openmpi-4.1.6-incompatible-pointers.patch 8095 BLAKE2B c095a4c0c3fba74a8c1f1 DIST openmpi-4.1.6.tar.bz2 10017002 BLAKE2B 4f119e1ed9b8787f0f860295ab1721fe2fd5300b8e182230a9eba3a864680b02bbd30618cc6d798a693a121626fc0ad5f447144d9ba91becb734f1a530d7a23a SHA512 0ef3240f9c436fb19b67e836cac376eafeb7825d12de3387dad04329dee9f182799d17d785ea23eba763810f479015bb5230593c28950b616b2f0aa1c0a81e71 DIST openmpi-5.0.3.tar.bz2 29761888 BLAKE2B a084813f3dada12bbe77dcc6ef0ec0454980779f97ccb46f37f3d7df3bf7299e6484ec3427c2ca784e70876f62dc061a13cb7f08348e3d649e27f2bece9a09ac SHA512 60e8f6dcd6b1531ce8164e02f40be9a364ab484166a2a7b13bdff115a508f0596e97ad0a4204a47799ae608ba484a7ba9503042bddffe675f09ce22071b0b4a9 DIST openmpi-5.0.5.tar.bz2 30000495 BLAKE2B 740e5dbc7e54b8f4eac4fa2c40fb5a0ccfba201dff15ccc84899f28dfad0147078ef6c2b0585615c93fc6edb70b665b3f7a9adea5e5e53a7563ae4c7a6ccbada SHA512 d0a137ebdeb578f0457113c6dd0f84d407c88d8f8844e6796114c8026d7391ebfb29d105f16289338eb3ac653ae9d3c0bdc4aa651402444b2ca91c1c447dc409 +DIST openmpi-5.0.6.tar.bz2 30331784 BLAKE2B 72418c4d2cdc0628214e0c2db2e8d2dd52234a3888d7344eff23576b19de94d4cb74b168120d72cedeea8c835db363d83b61319fcdf13277c541003606f4558a SHA512 097f7bb18d506b362f16d46df308b387e3173068ba8688739db756919453e1fe947c6d8c2e098481617d8c6bbecb8990002db42f284b1732a80ef3edaaa29f20 EBUILD openmpi-4.1.6.ebuild 5652 BLAKE2B 28dd2334bab9a82b8d764cfe8fd22da8649d809f33d9377c2c3fbc232bb7f36ae8ed29835f850fe6cf1b188d6a3f56bcb289c8c05a7094452b86da2ddafc5362 SHA512 be206d7e4031391a16764f997ac6f962a2b1955d7b4ba49959b4ec009e82f5701f42895841a923c792f06a0514e26b28407287afc9549871697bfee543d6e4a1 EBUILD openmpi-5.0.3.ebuild 3713 BLAKE2B 1fd6f4117e83a4469b1912469106960c0e9ed77a9050d716ebdfed67786c5d91428bdac46e2f2783ada2cfcab4f32e3918e87fe808f05b875844b1c44a8eab5c SHA512 6ec4da5adb735308e8a8f91ec2cad86c90a8aa600892cb5f8674e558fb5229554a9173ad9bf2ea241c2658254d67cc13b79dcfcc3f92f8038a30c5327e6cc8b4 EBUILD openmpi-5.0.5.ebuild 3752 BLAKE2B cd64c69fa2af87e8fe95ffe00171446ede195a590cbbe6211dc522fc2ddc9be4250e43009f09d2f91b2edc1659f5c9ec2d876df2200bfdd264267e60f2568bd8 SHA512 59d13b631f6c5cda5648cc0e53c834827643accd767001e1aded8b01708e2d76f1ab484c9ee66040cebbd1d2471215a14c1bf01c10c1688297bc408f0500f808 +EBUILD openmpi-5.0.6.ebuild 3752 BLAKE2B cd64c69fa2af87e8fe95ffe00171446ede195a590cbbe6211dc522fc2ddc9be4250e43009f09d2f91b2edc1659f5c9ec2d876df2200bfdd264267e60f2568bd8 SHA512 59d13b631f6c5cda5648cc0e53c834827643accd767001e1aded8b01708e2d76f1ab484c9ee66040cebbd1d2471215a14c1bf01c10c1688297bc408f0500f808 MISC metadata.xml 619 BLAKE2B e1073cdab4b3b0013354a95a53354f1040edbde8cb0f864a28ca1a9e9e7f6974e2db4a9a885c8616cfba41b7b472af4168d92ad3b5cd9e051598db1a4d4d2889 SHA512 b76a5bd4fdbdc47c21b06681a8365f5d0baf7b121a88146b87a4a609d01b9008aeae070130c86be89586bfeff73b325bda4b4fa83dc150f3c5865e5d0f422995 diff --git a/sys-cluster/openmpi/openmpi-5.0.6.ebuild b/sys-cluster/openmpi/openmpi-5.0.6.ebuild new file mode 100644 index 000000000000..37b017e4483e --- /dev/null +++ b/sys-cluster/openmpi/openmpi-5.0.6.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=fortran +inherit cuda flag-o-matic fortran-2 libtool + +MY_P=${P/-mpi} + +IUSE_OPENMPI_FABRICS=" + openmpi_fabrics_ofed + openmpi_fabrics_knem" + +IUSE_OPENMPI_RM=" + openmpi_rm_pbs + openmpi_rm_slurm" + +DESCRIPTION="A high-performance message passing library (MPI)" +HOMEPAGE="https://www.open-mpi.org" +SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 -arm ~arm64 -ppc ~ppc64 -x86 ~amd64-linux" +IUSE="cma cuda fortran ipv6 peruse romio valgrind + ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM}" + +REQUIRED_USE=" + openmpi_rm_slurm? ( !openmpi_rm_pbs ) + openmpi_rm_pbs? ( !openmpi_rm_slurm ) +" + +RDEPEND=" + !sys-cluster/mpich + !sys-cluster/mpich2 + !sys-cluster/nullmpi + >=dev-libs/libevent-2.0.22:=[threads(+)] + >=sys-apps/hwloc-2.0.2:= + sys-cluster/pmix:= + sys-cluster/prrte:= + >=sys-libs/zlib-1.2.8-r1 + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) + openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) + openmpi_fabrics_knem? ( sys-cluster/knem ) + openmpi_rm_pbs? ( sys-cluster/torque ) + openmpi_rm_slurm? ( sys-cluster/slurm ) +" +DEPEND="${RDEPEND} + valgrind? ( dev-debug/valgrind )" + +pkg_setup() { + fortran-2_pkg_setup + + elog + elog "OpenMPI has an overwhelming count of configuration options." + elog "Don't forget the EXTRA_ECONF environment variable can let you" + elog "specify configure options if you find them necessary." + elog +} + +src_prepare() { + default + elibtoolize + + # Avoid test which ends up looking at system mounts + echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die + + # Necessary for scalibility, see + # http://www.open-mpi.org/community/lists/users/2008/09/6514.php + echo 'oob_tcp_listen_mode = listen_thread' \ + >> opal/etc/openmpi-mca-params.conf || die +} + +src_configure() { + # -Werror=lto-type-mismatch, -Werror=strict-aliasing + # The former even prevents successfully running ./configure, but both appear + # at `make` time as well. + # https://bugs.gentoo.org/913040 + # https://github.com/open-mpi/ompi/issues/12674 + # https://github.com/open-mpi/ompi/issues/12675 + append-flags -fno-strict-aliasing + filter-lto + + local myconf=( + --disable-mpi-java + # configure takes a looooong time, but upstream currently force + # constriants on caching: + # https://github.com/open-mpi/ompi/blob/9eec56222a5c98d13790c9ee74877f1562ac27e8/config/opal_config_subdir.m4#L118 + # so no --cache-dir for now. + --enable-mpi-fortran=$(usex fortran all no) + --enable-prte-prefix-by-default + --enable-pretty-print-stacktrace + + --sysconfdir="${EPREFIX}/etc/${PN}" + + --with-hwloc=external + --with-libevent=external + --with-prrte=external + + # Oiriginally supposed to be re-enabled for 5.0! + # See https://github.com/open-mpi/ompi/issues/9697#issuecomment-1003746357 + # and https://bugs.gentoo.org/828123#c14 + # + # However as of 5.0.3 the docs still say: + # + # As such, supporting data heterogeneity is a feature that has fallen + # into disrepair and is currently known to be broken in this release + # of Open MPI. + --disable-heterogeneous + + $(use_enable ipv6) + $(use_enable peruse) + $(use_enable romio io-romio) + + $(use_with cma) + + $(use_with cuda cuda "${EPREFIX}"/opt/cuda) + $(use_with valgrind) + $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) + $(use_with openmpi_rm_pbs tm) + $(use_with openmpi_rm_slurm slurm) + ) + + CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}" +} + +src_compile() { + emake V=1 +} + +src_test() { + emake -C test check +} + +src_install() { + default + + # Remove la files, no static libs are installed and we have pkg-config + find "${ED}" -name '*.la' -delete || die +} |