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