diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
commit | 171a011ad3a131671aeb5a98b9e3adf219ad2865 (patch) | |
tree | 0c877a3d1a37f10e37ad7168cfc52054aa0948a7 /sys-cluster/openmpi | |
parent | 75fc75ae1f0481ffdb78450e801a9b443ba641bd (diff) |
gentoo resync : 02.04.2018
Diffstat (limited to 'sys-cluster/openmpi')
-rw-r--r-- | sys-cluster/openmpi/Manifest | 2 | ||||
-rw-r--r-- | sys-cluster/openmpi/openmpi-3.0.1.ebuild | 171 |
2 files changed, 173 insertions, 0 deletions
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest index ac77701170e9..371ad4dda7d5 100644 --- a/sys-cluster/openmpi/Manifest +++ b/sys-cluster/openmpi/Manifest @@ -12,6 +12,7 @@ DIST openmpi-2.0.2.tar.bz2 8311215 BLAKE2B 8dd0d7b95c396e9a0f05760136bbf62defd35 DIST openmpi-2.0.4.tar.bz2 8272983 BLAKE2B 7d0a392fbc8c896cdccefb9bf0ff83fbd8db8a42d17f06cb23ac88ba896e2c75e1b1b7a79559d0ce3c2b881f197f54ce1bd8967c889bafe2b97f95fb6b957501 SHA512 2cccb83847d44f6282ec24f7bc12ab51b84dc5ac1a2a919ef0761847ff7cdcb31cfb1f38dca33df7063a98c27a64575a108002716d207cbba3a54773b999e6c5 DIST openmpi-2.1.3.tar.bz2 8311304 BLAKE2B a6a2d0d759a7207e4e9e9bb1526825ce5b0c9acd22c113f71712381fd7cab55228e78294533a5af6ef2b243803d789c5c71c6d59dd7a8ebbf10b2aa5d99296fd SHA512 61ecf53d840feb4cad1e792225c7fb07a8c4cb849f21693051359cde2cf1b5060de3a9d00ba3b55ded20b5b93bc5ac439951b4fe5cb1a74d4e800f26c979feba DIST openmpi-3.0.0.tar.bz2 9267606 BLAKE2B 9ee569a9c5f5918bb3d389a2945a2e7a5d98464afbd111eb2426a4e8296a23cf6d5b558554ce8126b13f910bd59acbb77e93ac297f3cf222c4bc764836b39ee6 SHA512 7e37eacf959a803d6d89dff4291b64a1f3d83bc7941b778a2fb13d12be0f205cb904e4a807d79676ad1e31fd99ffb15f255c8a227e830673455abb144f14616a +DIST openmpi-3.0.1.tar.bz2 9176460 BLAKE2B 65fdaeb492da3cf86a68c2d47d19568c8d65e92d0202041853ae3cbe0f057d8bdc79953538921b5b8c9eb9c9cedab8502816985e12524704992069a51e08d857 SHA512 15fad504ba743d564e7196b62a112027798d4b26e9c8d11d9c1c00ac2968f1858ebc168df30473104c5a31f71e38ab558204b598260b535a12b6094aa77182b8 EBUILD openmpi-1.10.7.ebuild 6371 BLAKE2B 4c0972ec160ca97f6bb3bb26230acad63db196e143a3d53d159ca033885658417970cf02ecff2e7941e346c79a56a8c4a219c552c3b6a3c813f3438d6c8d3388 SHA512 fe8b2309eec88e65a0286d625213fb2b25fa73db7ff4feac115c3f1f40a0155172f9d4f730d25e587416120e5be4d3bea5d9ac6d124a60ed3763599709c59544 EBUILD openmpi-1.4.3.ebuild 2599 BLAKE2B 7d4cfad71f26c7cb3ba7d1e96fdc837d35d577b5d0e4d82a324f36d350548afb17a343cf0ffe6cb5c906c5165b20bcf8c70971a5d9e1b194dcfea62a234b9c9b SHA512 300e6e21c6a51ce3d097de46813bc496c5efe6508434f5d1a7bfc6b393452192b546802905f8562867b3386a86ad06bb7c42db8d06fd9d50afdf3a3105d0997b EBUILD openmpi-1.4.5.ebuild 2608 BLAKE2B 0f59bb9c25fd6dbc86b5942cfc1f18df3f16fdf16ae97459aca33e6e020b3df0280f9dce7794cc33d4835231453f21d03311ae808f3beb3cdf36a533da1a2ff5 SHA512 adf34b9ac8817e2b37e9ae7ee539bc280c9b1c7b798fa682409ef000961e1e9f5bca7be1511a0ced27e4c3db6850a6d6214bbf90e67a85fcd46e9bb15a2ea918 @@ -24,4 +25,5 @@ EBUILD openmpi-2.0.2.ebuild 5881 BLAKE2B 3b9331e3c0826735f10657eab3b2ecedd191562 EBUILD openmpi-2.0.4.ebuild 5879 BLAKE2B 3c5dd06e93489e08b3e93e19330bfb810c7feebcec92a00f90d5f5a0adf22f831edb86796bfd434484c9bbc18713bd72008523279541953d34b7667f5254eb74 SHA512 3eb9bc52989c931ca16dfa6834ee245bab20253659fbf7e7b8bcff0d02406e64a3a17b6634395777c5317061a669134e3c4288b1922b8505f3176ca8f62d3bd5 EBUILD openmpi-2.1.3.ebuild 5596 BLAKE2B beb41a1306eb635f09bb4a862eed9217a57cd8bff89ce65dd5b19a1ab12856ca50a676c91f025dca53bd68cfa289aca0c676a8dbc8c3f22c74ce18336bfc5806 SHA512 3f76918594348cc5a475a8828ffdcb9ed6bde1ba0dd1a9207d048162041b4b3060dabdd8bdfd91f3a12f44e7c25a5b85aaa98480e07e76edf8aff48bd1baccb4 EBUILD openmpi-3.0.0-r1.ebuild 5482 BLAKE2B 9176ba52c12f53e9e600dc0b77ea7b7377953e70f8c0c81f20de9f5ab1d8311529560d534b5bf2f08e5e5b0407f4d19b69fe443027fd725223f77361fa498757 SHA512 566314c8969df8e5573bcd4064b0f0ace73897d1e4cb271d38ad311301b4ba3bfeec05ace93e11e415b85977603946d581d7b6fad13117682378c015accd7324 +EBUILD openmpi-3.0.1.ebuild 5482 BLAKE2B 9176ba52c12f53e9e600dc0b77ea7b7377953e70f8c0c81f20de9f5ab1d8311529560d534b5bf2f08e5e5b0407f4d19b69fe443027fd725223f77361fa498757 SHA512 566314c8969df8e5573bcd4064b0f0ace73897d1e4cb271d38ad311301b4ba3bfeec05ace93e11e415b85977603946d581d7b6fad13117682378c015accd7324 MISC metadata.xml 901 BLAKE2B 8cdef4e4438351cb99b59bafb932e4b2b960f08b4eaa9917ac2a5d97fd2423781b1ec27a16005ae6470b8f50509ae3c08c2d06f95e452bd2cf00505b7a79ac35 SHA512 6f30f50d2f2173a01e7ef0d4b808352be98b64945b6af1f05cfaa28024f6efccad28984fe0ad31094f8822c5e251c1270765d5905c7737e1b84302143fe4ac09 diff --git a/sys-cluster/openmpi/openmpi-3.0.1.ebuild b/sys-cluster/openmpi/openmpi-3.0.1.ebuild new file mode 100644 index 000000000000..6393b65d02e2 --- /dev/null +++ b/sys-cluster/openmpi/openmpi-3.0.1.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran + +inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal + +MY_P=${P/-mpi} +S=${WORKDIR}/${MY_P} + +IUSE_OPENMPI_FABRICS=" + openmpi_fabrics_ofed + openmpi_fabrics_knem + openmpi_fabrics_psm" + +IUSE_OPENMPI_RM=" + openmpi_rm_pbs + openmpi_rm_slurm" + +IUSE_OPENMPI_OFED_FEATURES=" + openmpi_ofed_features_control-hdr-padding + openmpi_ofed_features_udcm + openmpi_ofed_features_rdmacm + openmpi_ofed_features_dynamic-sl" + +DESCRIPTION="A high-performance message passing library (MPI)" +HOMEPAGE="http://www.open-mpi.org" +SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" +IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java numa romio + ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" + +REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs ) + openmpi_rm_pbs? ( !openmpi_rm_slurm ) + openmpi_fabrics_psm? ( openmpi_fabrics_ofed ) + openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) + openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) + openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) + openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" + +# dev-util/nvidia-cuda-toolkit is always multilib +CDEPEND=" + !sys-cluster/mpich + !sys-cluster/mpich2 + !sys-cluster/nullmpi + !sys-cluster/mpiexec + >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads] + dev-libs/libltdl:0[${MULTILIB_USEDEP}] + >=sys-apps/hwloc-1.11.2[${MULTILIB_USEDEP},numa?] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 ) + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) ) + openmpi_fabrics_ofed? ( sys-fabric/ofed:* ) + openmpi_fabrics_knem? ( sys-cluster/knem ) + openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* ) + openmpi_rm_pbs? ( sys-cluster/torque ) + openmpi_rm_slurm? ( sys-cluster/slurm ) + openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )" + +RDEPEND="${CDEPEND} + java? ( >=virtual/jre-1.6 )" + +DEPEND="${CDEPEND} + java? ( >=virtual/jdk-1.6 )" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/mpi.h + /usr/include/openmpi/ompi/mpi/java/mpiJava.h +) + +pkg_setup() { + fortran-2_pkg_setup + java-pkg-opt-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 + + # 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 +} + +multilib_src_configure() { + if use java; then + # We must always build with the right -source and -target + # flags. Passing flags to javac isn't explicitly supported here + # but we can cheat by overriding the configure test for javac. + export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" + fi + + ECONF_SOURCE=${S} econf \ + --sysconfdir="${EPREFIX}/etc/${PN}" \ + --enable-pretty-print-stacktrace \ + --enable-orterun-prefix-by-default \ + --with-hwloc="${EPREFIX}/usr" \ + --with-libltdl="${EPREFIX}/usr" \ + --with-libevent="${EPREFIX}/usr" \ + --enable-mpi-fortran=$(usex fortran all no) \ + $(use_enable cxx mpi-cxx) \ + $(use_with cma) \ + $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ + $(use_enable romio io-romio) \ + $(use_enable heterogeneous) \ + $(use_enable ipv6) \ + $(multilib_native_use_enable java) \ + $(multilib_native_use_enable java mpi-java) \ + $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ + $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ + $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \ + $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ + $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ + $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ + $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ + $(multilib_native_use_with openmpi_rm_pbs tm) \ + $(multilib_native_use_with openmpi_rm_slurm slurm) +} + +multilib_src_test() { + # Doesn't work with the default src_test as the dry run (-n) fails. + emake -j1 check +} + +multilib_src_install() { + default + + # fortran header cannot be wrapped (bug #540508), workaround part 1 + if multilib_is_native_abi && use fortran; then + mkdir "${T}"/fortran || die + mv "${ED}"usr/include/mpif* "${T}"/fortran || die + else + # some fortran files get installed unconditionally + rm \ + "${ED}"usr/include/mpif* \ + "${ED}"usr/bin/mpif* \ + "${ED}"usr/bin/oshfort \ + "${ED}"usr/bin/shmemfort \ + || die + fi +} + +multilib_src_install_all() { + # fortran header cannot be wrapped (bug #540508), workaround part 2 + if use fortran; then + mv "${T}"/fortran/mpif* "${ED}"usr/include || die + fi + + # Remove la files, no static libs are installed and we have pkg-config + find "${ED}" -name '*.la' -delete || die + + if use java; then + local mpi_jar="${ED}"usr/$(get_libdir)/mpi.jar + java-pkg_dojar "${mpi_jar}" + # We don't want to install the jar file twice + # so let's clean after ourselves. + rm "${mpi_jar}" || die + fi + + einstalldocs +} |