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: Sun, 26 Nov 2017 21:25:25
Message-Id: 1511731513.640954319ea6cd1213d9a3203ae40fd8bcb1bfe7.jsbronder@gentoo
1 commit: 640954319ea6cd1213d9a3203ae40fd8bcb1bfe7
2 Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 26 21:24:47 2017 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 26 21:25:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64095431
7
8 sys-cluster/openmpi: bump 3.0.0
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 sys-cluster/openmpi/Manifest | 1 +
13 sys-cluster/openmpi/openmpi-3.0.0.ebuild | 171 +++++++++++++++++++++++++++++++
14 2 files changed, 172 insertions(+)
15
16 diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest
17 index a158d00edd7..7f00f19cdd5 100644
18 --- a/sys-cluster/openmpi/Manifest
19 +++ b/sys-cluster/openmpi/Manifest
20 @@ -9,3 +9,4 @@ DIST openmpi-1.8.8.tar.bz2 13231433 SHA256 a28382d1e6a36f4073412dc00836ff2524e42
21 DIST openmpi-2.0.2.tar.bz2 8311215 SHA256 cae396e643f9f91f0a795f8d8694adf7bacfb16f967c22fb39e9e28d477730d3 SHA512 87dc3c23db4b9cb92dbacc9b384b21ce8c4288fe4edc204fbf4a3bef70d8ac4329269e777ed190fa87933d78b73b9e5550ea3b925b2039599cfef3953567232a WHIRLPOOL 9403135fbf1682597c211b1ca0d1e300bd6f49294e9a70bf21f030c48a54f85d2d7ce8de8693dccaf81e2b46fbfd9a43a817bf598dc1f96e122b3f6ea6ffc3c6
22 DIST openmpi-2.0.4.tar.bz2 8272983 BLAKE2B 7d0a392fbc8c896cdccefb9bf0ff83fbd8db8a42d17f06cb23ac88ba896e2c75e1b1b7a79559d0ce3c2b881f197f54ce1bd8967c889bafe2b97f95fb6b957501 SHA512 2cccb83847d44f6282ec24f7bc12ab51b84dc5ac1a2a919ef0761847ff7cdcb31cfb1f38dca33df7063a98c27a64575a108002716d207cbba3a54773b999e6c5
23 DIST openmpi-2.1.2.tar.bz2 8278459 BLAKE2B 83f6617322baad4fb13d399fa6a491d1d8dec1a5862974552a5f0cb033ab2a27eb0a44055e2670e3fbe79dbac68ed0130bdfec057cad48e474b814ccd56e59e6 SHA512 8a27a67cab384f9f03efe69bfdd51a8e8790f47a156e3a7e34f26a29d033889653070981c0105f142a96f00293fc069536bd020ae28a97afb564eab747e60457
24 +DIST openmpi-3.0.0.tar.bz2 9267606 BLAKE2B 9ee569a9c5f5918bb3d389a2945a2e7a5d98464afbd111eb2426a4e8296a23cf6d5b558554ce8126b13f910bd59acbb77e93ac297f3cf222c4bc764836b39ee6 SHA512 7e37eacf959a803d6d89dff4291b64a1f3d83bc7941b778a2fb13d12be0f205cb904e4a807d79676ad1e31fd99ffb15f255c8a227e830673455abb144f14616a
25
26 diff --git a/sys-cluster/openmpi/openmpi-3.0.0.ebuild b/sys-cluster/openmpi/openmpi-3.0.0.ebuild
27 new file mode 100644
28 index 00000000000..b50c4f2ad16
29 --- /dev/null
30 +++ b/sys-cluster/openmpi/openmpi-3.0.0.ebuild
31 @@ -0,0 +1,171 @@
32 +# Copyright 1999-2017 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-fbsd ~x86-fbsd ~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 )
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 +}