Gentoo Archives: gentoo-commits

From: Justin Bronder <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/openmpi/
Date: Mon, 02 Apr 2018 15:00:14
Message-Id: 1522681177.2f8a5ab30deb3fe72df5f5336352b1b9ccbcf829.jsbronder@gentoo
1 commit: 2f8a5ab30deb3fe72df5f5336352b1b9ccbcf829
2 Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 2 14:59:37 2018 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 2 14:59:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8a5ab3
7
8 sys-cluster/openmpi: bump 3.0.1
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-cluster/openmpi/Manifest | 1 +
13 sys-cluster/openmpi/openmpi-3.0.1.ebuild | 171 +++++++++++++++++++++++++++++++
14 2 files changed, 172 insertions(+)
15
16 diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest
17 index 9c8565ff813..5312125db61 100644
18 --- a/sys-cluster/openmpi/Manifest
19 +++ b/sys-cluster/openmpi/Manifest
20 @@ -10,3 +10,4 @@ DIST openmpi-2.0.2.tar.bz2 8311215 BLAKE2B 8dd0d7b95c396e9a0f05760136bbf62defd35
21 DIST openmpi-2.0.4.tar.bz2 8272983 BLAKE2B 7d0a392fbc8c896cdccefb9bf0ff83fbd8db8a42d17f06cb23ac88ba896e2c75e1b1b7a79559d0ce3c2b881f197f54ce1bd8967c889bafe2b97f95fb6b957501 SHA512 2cccb83847d44f6282ec24f7bc12ab51b84dc5ac1a2a919ef0761847ff7cdcb31cfb1f38dca33df7063a98c27a64575a108002716d207cbba3a54773b999e6c5
22 DIST openmpi-2.1.3.tar.bz2 8311304 BLAKE2B a6a2d0d759a7207e4e9e9bb1526825ce5b0c9acd22c113f71712381fd7cab55228e78294533a5af6ef2b243803d789c5c71c6d59dd7a8ebbf10b2aa5d99296fd SHA512 61ecf53d840feb4cad1e792225c7fb07a8c4cb849f21693051359cde2cf1b5060de3a9d00ba3b55ded20b5b93bc5ac439951b4fe5cb1a74d4e800f26c979feba
23 DIST openmpi-3.0.0.tar.bz2 9267606 BLAKE2B 9ee569a9c5f5918bb3d389a2945a2e7a5d98464afbd111eb2426a4e8296a23cf6d5b558554ce8126b13f910bd59acbb77e93ac297f3cf222c4bc764836b39ee6 SHA512 7e37eacf959a803d6d89dff4291b64a1f3d83bc7941b778a2fb13d12be0f205cb904e4a807d79676ad1e31fd99ffb15f255c8a227e830673455abb144f14616a
24 +DIST openmpi-3.0.1.tar.bz2 9176460 BLAKE2B 65fdaeb492da3cf86a68c2d47d19568c8d65e92d0202041853ae3cbe0f057d8bdc79953538921b5b8c9eb9c9cedab8502816985e12524704992069a51e08d857 SHA512 15fad504ba743d564e7196b62a112027798d4b26e9c8d11d9c1c00ac2968f1858ebc168df30473104c5a31f71e38ab558204b598260b535a12b6094aa77182b8
25
26 diff --git a/sys-cluster/openmpi/openmpi-3.0.1.ebuild b/sys-cluster/openmpi/openmpi-3.0.1.ebuild
27 new file mode 100644
28 index 00000000000..6393b65d02e
29 --- /dev/null
30 +++ b/sys-cluster/openmpi/openmpi-3.0.1.ebuild
31 @@ -0,0 +1,171 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +FORTRAN_NEEDED=fortran
38 +
39 +inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal
40 +
41 +MY_P=${P/-mpi}
42 +S=${WORKDIR}/${MY_P}
43 +
44 +IUSE_OPENMPI_FABRICS="
45 + openmpi_fabrics_ofed
46 + openmpi_fabrics_knem
47 + openmpi_fabrics_psm"
48 +
49 +IUSE_OPENMPI_RM="
50 + openmpi_rm_pbs
51 + openmpi_rm_slurm"
52 +
53 +IUSE_OPENMPI_OFED_FEATURES="
54 + openmpi_ofed_features_control-hdr-padding
55 + openmpi_ofed_features_udcm
56 + openmpi_ofed_features_rdmacm
57 + openmpi_ofed_features_dynamic-sl"
58 +
59 +DESCRIPTION="A high-performance message passing library (MPI)"
60 +HOMEPAGE="http://www.open-mpi.org"
61 +SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
62 +LICENSE="BSD"
63 +SLOT="0"
64 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
65 +IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java numa romio
66 + ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
67 +
68 +REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
69 + openmpi_rm_pbs? ( !openmpi_rm_slurm )
70 + openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
71 + openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
72 + openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
73 + openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
74 + openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
75 +
76 +# dev-util/nvidia-cuda-toolkit is always multilib
77 +CDEPEND="
78 + !sys-cluster/mpich
79 + !sys-cluster/mpich2
80 + !sys-cluster/nullmpi
81 + !sys-cluster/mpiexec
82 + >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads]
83 + dev-libs/libltdl:0[${MULTILIB_USEDEP}]
84 + >=sys-apps/hwloc-1.11.2[${MULTILIB_USEDEP},numa?]
85 + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
86 + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
87 + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) )
88 + openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
89 + openmpi_fabrics_knem? ( sys-cluster/knem )
90 + openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
91 + openmpi_rm_pbs? ( sys-cluster/torque )
92 + openmpi_rm_slurm? ( sys-cluster/slurm )
93 + openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )"
94 +
95 +RDEPEND="${CDEPEND}
96 + java? ( >=virtual/jre-1.6 )"
97 +
98 +DEPEND="${CDEPEND}
99 + java? ( >=virtual/jdk-1.6 )"
100 +
101 +MULTILIB_WRAPPED_HEADERS=(
102 + /usr/include/mpi.h
103 + /usr/include/openmpi/ompi/mpi/java/mpiJava.h
104 +)
105 +
106 +pkg_setup() {
107 + fortran-2_pkg_setup
108 + java-pkg-opt-2_pkg_setup
109 +
110 + elog
111 + elog "OpenMPI has an overwhelming count of configuration options."
112 + elog "Don't forget the EXTRA_ECONF environment variable can let you"
113 + elog "specify configure options if you find them necessary."
114 + elog
115 +}
116 +
117 +src_prepare() {
118 + default
119 +
120 + # Necessary for scalibility, see
121 + # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
122 + echo 'oob_tcp_listen_mode = listen_thread' \
123 + >> opal/etc/openmpi-mca-params.conf || die
124 +}
125 +
126 +multilib_src_configure() {
127 + if use java; then
128 + # We must always build with the right -source and -target
129 + # flags. Passing flags to javac isn't explicitly supported here
130 + # but we can cheat by overriding the configure test for javac.
131 + export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
132 + fi
133 +
134 + ECONF_SOURCE=${S} econf \
135 + --sysconfdir="${EPREFIX}/etc/${PN}" \
136 + --enable-pretty-print-stacktrace \
137 + --enable-orterun-prefix-by-default \
138 + --with-hwloc="${EPREFIX}/usr" \
139 + --with-libltdl="${EPREFIX}/usr" \
140 + --with-libevent="${EPREFIX}/usr" \
141 + --enable-mpi-fortran=$(usex fortran all no) \
142 + $(use_enable cxx mpi-cxx) \
143 + $(use_with cma) \
144 + $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
145 + $(use_enable romio io-romio) \
146 + $(use_enable heterogeneous) \
147 + $(use_enable ipv6) \
148 + $(multilib_native_use_enable java) \
149 + $(multilib_native_use_enable java mpi-java) \
150 + $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
151 + $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
152 + $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
153 + $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
154 + $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
155 + $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
156 + $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
157 + $(multilib_native_use_with openmpi_rm_pbs tm) \
158 + $(multilib_native_use_with openmpi_rm_slurm slurm)
159 +}
160 +
161 +multilib_src_test() {
162 + # Doesn't work with the default src_test as the dry run (-n) fails.
163 + emake -j1 check
164 +}
165 +
166 +multilib_src_install() {
167 + default
168 +
169 + # fortran header cannot be wrapped (bug #540508), workaround part 1
170 + if multilib_is_native_abi && use fortran; then
171 + mkdir "${T}"/fortran || die
172 + mv "${ED}"usr/include/mpif* "${T}"/fortran || die
173 + else
174 + # some fortran files get installed unconditionally
175 + rm \
176 + "${ED}"usr/include/mpif* \
177 + "${ED}"usr/bin/mpif* \
178 + "${ED}"usr/bin/oshfort \
179 + "${ED}"usr/bin/shmemfort \
180 + || die
181 + fi
182 +}
183 +
184 +multilib_src_install_all() {
185 + # fortran header cannot be wrapped (bug #540508), workaround part 2
186 + if use fortran; then
187 + mv "${T}"/fortran/mpif* "${ED}"usr/include || die
188 + fi
189 +
190 + # Remove la files, no static libs are installed and we have pkg-config
191 + find "${ED}" -name '*.la' -delete || die
192 +
193 + if use java; then
194 + local mpi_jar="${ED}"usr/$(get_libdir)/mpi.jar
195 + java-pkg_dojar "${mpi_jar}"
196 + # We don't want to install the jar file twice
197 + # so let's clean after ourselves.
198 + rm "${mpi_jar}" || die
199 + fi
200 +
201 + einstalldocs
202 +}