1 |
commit: 0ee8a879d834304fa14d1e981c18a6555913262d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 10:27:18 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 10:27:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ee8a879 |
7 |
|
8 |
sys-cluster/openmpi: drop versions |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
sys-cluster/openmpi/Manifest | 10 -- |
13 |
sys-cluster/openmpi/files/openmpi-ltdl.patch | 78 ----------- |
14 |
sys-cluster/openmpi/metadata.xml | 6 - |
15 |
sys-cluster/openmpi/openmpi-1.10.7.ebuild | 194 --------------------------- |
16 |
sys-cluster/openmpi/openmpi-1.4.5-r1.ebuild | 103 -------------- |
17 |
sys-cluster/openmpi/openmpi-1.7.5-r2.ebuild | 163 ---------------------- |
18 |
sys-cluster/openmpi/openmpi-1.8.8-r1.ebuild | 176 ------------------------ |
19 |
sys-cluster/openmpi/openmpi-2.0.4-r1.ebuild | 177 ------------------------ |
20 |
sys-cluster/openmpi/openmpi-2.1.6-r1.ebuild | 170 ----------------------- |
21 |
sys-cluster/openmpi/openmpi-3.0.4-r1.ebuild | 167 ----------------------- |
22 |
sys-cluster/openmpi/openmpi-3.1.4-r1.ebuild | 167 ----------------------- |
23 |
sys-cluster/openmpi/openmpi-4.0.5-r3.ebuild | 174 ------------------------ |
24 |
sys-cluster/openmpi/openmpi-4.0.7.ebuild | 176 ------------------------ |
25 |
13 files changed, 1761 deletions(-) |
26 |
|
27 |
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest |
28 |
index 3129a6649dbb..42c7707e372a 100644 |
29 |
--- a/sys-cluster/openmpi/Manifest |
30 |
+++ b/sys-cluster/openmpi/Manifest |
31 |
@@ -1,11 +1 @@ |
32 |
-DIST openmpi-1.10.7.tar.bz2 13435131 BLAKE2B c1914e6842f59a4a21a27d015275eff00092e57784c4219f58424fbc69c6d9e58109aa1b2ff4e1e340ddc3b93f07d7271e728928772c66c271442e375c08315e SHA512 9c5470f9959ca37650a59e56fb8343c028422c709876ab9d25a411dd09a07cdde927c45d8f3db1ad524b1f2847fe799471d469fa1efee48f8018b2ff24427ecb |
33 |
-DIST openmpi-1.4.5.tar.bz2 6643760 BLAKE2B 6890e8ed6f75e77e0e02c88bce473a37195549bca06696881cf7c3f6e46db25abaa04d9517d7ff9a11ad64cc97cf8d1b8678d9797c49a1659656d8a5de5c56ae SHA512 f89922345cde8978483e397e9016103626db3f1787f9afccaf0f60d59caa2a4409b47b01ac221d60e24e241f2afecb636ca89688bf326dc0ca5c817de96b3e99 |
34 |
-DIST openmpi-1.7.5.tar.bz2 13286694 BLAKE2B 15862d34f8b8db60e7896f57274555df849713492c6e7e590feb06ec9b3655ff0311a81c0a6c87cc16dc8fd95510a1d79b23467af843d37768f75005ff4edd8c SHA512 72de2788fa26615a2e7373b5f32e0a2b9e39d56094c45b49348ef19bbb0ea306734b7d3275d76471a18628b5244d882de4ed3595eb46f13683e1c8d2b277f065 |
35 |
-DIST openmpi-1.8.8.tar.bz2 13231433 BLAKE2B d196fd0bb08cfb0c86a29ae39015eb15e1465554e322c1ae039b61cee3a027ea0ba8d7fecd02e310309caec416147611a233861e464db4449da3b449387b1dca SHA512 8ca2e3ebb9d9ba0f33faba9bef76fe95293721b73619cbc18176611074a56c277e9ab6cae7fa6c87ace11f16151c1bc495b2a8dbc8ad064d5a8f89f5d431a660 |
36 |
-DIST openmpi-2.0.4.tar.bz2 8272983 BLAKE2B 7d0a392fbc8c896cdccefb9bf0ff83fbd8db8a42d17f06cb23ac88ba896e2c75e1b1b7a79559d0ce3c2b881f197f54ce1bd8967c889bafe2b97f95fb6b957501 SHA512 2cccb83847d44f6282ec24f7bc12ab51b84dc5ac1a2a919ef0761847ff7cdcb31cfb1f38dca33df7063a98c27a64575a108002716d207cbba3a54773b999e6c5 |
37 |
-DIST openmpi-2.1.6.tar.bz2 8324626 BLAKE2B 4aed4b397c0e0ead24ed5e9bbf45ee8f6719a7566d74405cccf119ddf535891ece91c04cbcad96be5a5d9805c620aa13a1b51c0edd67c049827357e7668008b9 SHA512 f552f47961e040476e7d2949cdd3e5a0b5ad74bea2b6532608117ec893473a160cd368251d1f439fd773f4846950857baf939e7b3586bac2a099495f7bc0e349 |
38 |
-DIST openmpi-3.0.4.tar.bz2 9308341 BLAKE2B 84536082f8415c9a0e41db01d96d64bffc463ca84de7730b25789dfee74e2205db5467739a42f13b0938d0934b45c948cd2be406290cdb4b196a5b51a5a3fc88 SHA512 c9db432e89d680e8857444395fee3544bebd4d1535f3e85a9435ca21f9848fad9f181e6be1ab8b93241b88723395535e3b3bdb2a5dd4128ed26df887b9a55810 |
39 |
-DIST openmpi-3.1.4.tar.bz2 9468371 BLAKE2B 70a93aa170086f43b2eb4f9b7c74673065bd309ae7a4c8f478a6db7523167fd1d25af19f87661149f6dd6033898ab47b86690a0421a01aa6f5a4d70478072e0e SHA512 5b4aafffc79fd85cb94a11a6e2fac563b142ac532191009eb35826c432ed3c391a6616e2ca92eacbf36137468eadb7c0f7ddc787034bc95c4214232ed5128338 |
40 |
-DIST openmpi-4.0.5.tar.bz2 9752045 BLAKE2B 9709dc8c251d4f2be14d0ab498c5d0d0e59f95db98fb16d9e84fe3d30af5a8e2f9636bbceaf7ae4086a3312bcd6299f0e9e1ca609d658930a1f5abe1018311e1 SHA512 b7a1a5ccfc0eaa0f0504ff770b550480f7ae6727fa891e3310d9340a0d844a2ceddf62c2e59efd047ab9416b24c829919bbccd29606ca0e0d7a0569dad800011 |
41 |
-DIST openmpi-4.0.7.tar.bz2 9809794 BLAKE2B c8ecafa3d50c54ebb9c8853010628240a696b342b04d17df66c4dbbc199a6b65bf7d92a8c34867e86e36a8664d1e26b7d0b0fa16f28cc9c8fed5223a4c06ef81 SHA512 27c49a1598c565e7ab63d2ca5b5277aad36f9f863854199e86af0387ec6edce9a99e9a8bc8dad565d01a6ab4c9f61067603c07b30a165317cced4997507727a4 |
42 |
DIST openmpi-4.1.2.tar.bz2 10084596 BLAKE2B 2e6fc12b4564a302d2c364528d0f6bea8b23f9b1cd6059763b8d5de583d86aae2812c239b1d0bb40c83f3c7682c8e666ce1de3112e95de54848169cb5e2805e8 SHA512 1958f96434cddbe525b4511fcf8d0cf8bf1ff376e024466219bd3a2092900e318f45a4b1e1a8ef6b03e350f46a71777fc7db82a7df711f12bb9758150d209aad |
43 |
|
44 |
diff --git a/sys-cluster/openmpi/files/openmpi-ltdl.patch b/sys-cluster/openmpi/files/openmpi-ltdl.patch |
45 |
deleted file mode 100644 |
46 |
index a288ea272473..000000000000 |
47 |
--- a/sys-cluster/openmpi/files/openmpi-ltdl.patch |
48 |
+++ /dev/null |
49 |
@@ -1,78 +0,0 @@ |
50 |
-diff -up openmpi-1.6.3/ompi/debuggers/dlopen_test.c.ltdl openmpi-1.6.3/ompi/debuggers/dlopen_test.c |
51 |
---- openmpi-1.6.3/ompi/debuggers/dlopen_test.c.ltdl 2012-04-03 08:30:25.000000000 -0600 |
52 |
-+++ openmpi-1.6.3/ompi/debuggers/dlopen_test.c 2012-11-02 14:50:12.613702426 -0600 |
53 |
-@@ -13,7 +13,17 @@ |
54 |
- #include <string.h> |
55 |
- #include <stdlib.h> |
56 |
- |
57 |
--#include "opal/libltdl/ltdl.h" |
58 |
-+#if OPAL_WANT_LIBLTDL |
59 |
-+ #ifndef __WINDOWS__ |
60 |
-+ #if OPAL_LIBLTDL_INTERNAL |
61 |
-+ #include "opal/libltdl/ltdl.h" |
62 |
-+ #else |
63 |
-+ #include "ltdl.h" |
64 |
-+ #endif |
65 |
-+ #else |
66 |
-+ #include "ltdl.h" |
67 |
-+ #endif |
68 |
-+#endif |
69 |
- |
70 |
- static int do_test(void); |
71 |
- |
72 |
-diff -up openmpi-1.6.3/ompi/debuggers/Makefile.am.ltdl openmpi-1.6.3/ompi/debuggers/Makefile.am |
73 |
---- openmpi-1.6.3/ompi/debuggers/Makefile.am.ltdl 2012-04-03 08:30:25.000000000 -0600 |
74 |
-+++ openmpi-1.6.3/ompi/debuggers/Makefile.am 2012-11-02 15:04:53.636926260 -0600 |
75 |
-@@ -47,7 +47,7 @@ headers = \ |
76 |
- |
77 |
- dlopen_test_SOURCES = dlopen_test.c |
78 |
- dlopen_test_CPPFLAGS = -I$(top_srcdir)/opal/libltdl |
79 |
--dlopen_test_LDADD = $(top_builddir)/opal/libltdl/libltdlc.la |
80 |
-+dlopen_test_LDADD = $(LIBLTDL) |
81 |
- |
82 |
- predefined_gap_test_SOURCES = predefined_gap_test.c |
83 |
- predefined_gap_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) |
84 |
-diff -up openmpi-1.6.3/test/support/components.c.ltdl openmpi-1.6.3/test/support/components.c |
85 |
---- openmpi-1.6.3/test/support/components.c.ltdl 2012-04-03 08:29:44.000000000 -0600 |
86 |
-+++ openmpi-1.6.3/test/support/components.c 2012-11-02 14:50:29.204705380 -0600 |
87 |
-@@ -24,7 +24,17 @@ |
88 |
- |
89 |
- #include "opal/constants.h" |
90 |
- #include "opal/mca/mca.h" |
91 |
--#include "opal/libltdl/ltdl.h" |
92 |
-+#if OPAL_WANT_LIBLTDL |
93 |
-+ #ifndef __WINDOWS__ |
94 |
-+ #if OPAL_LIBLTDL_INTERNAL |
95 |
-+ #include "opal/libltdl/ltdl.h" |
96 |
-+ #else |
97 |
-+ #include "ltdl.h" |
98 |
-+ #endif |
99 |
-+ #else |
100 |
-+ #include "ltdl.h" |
101 |
-+ #endif |
102 |
-+#endif |
103 |
- |
104 |
- #include "components.h" |
105 |
- |
106 |
-diff -up openmpi-1.6.3/test/support/components.h.ltdl openmpi-1.6.3/test/support/components.h |
107 |
---- openmpi-1.6.3/test/support/components.h.ltdl 2012-04-03 08:29:44.000000000 -0600 |
108 |
-+++ openmpi-1.6.3/test/support/components.h 2012-11-02 14:50:22.409703519 -0600 |
109 |
-@@ -20,7 +20,17 @@ |
110 |
- #ifndef OMPI_SUPPORT_COMPONENTS_H |
111 |
- #define OMPI_SUPPORT_COMPONENTS_H |
112 |
- |
113 |
--#include "opal/libltdl/ltdl.h" |
114 |
-+#if OPAL_WANT_LIBLTDL |
115 |
-+ #ifndef __WINDOWS__ |
116 |
-+ #if OPAL_LIBLTDL_INTERNAL |
117 |
-+ #include "opal/libltdl/ltdl.h" |
118 |
-+ #else |
119 |
-+ #include "ltdl.h" |
120 |
-+ #endif |
121 |
-+ #else |
122 |
-+ #include "ltdl.h" |
123 |
-+ #endif |
124 |
-+#endif |
125 |
- #include "opal/mca/mca.h" |
126 |
- |
127 |
- BEGIN_C_DECLS |
128 |
|
129 |
diff --git a/sys-cluster/openmpi/metadata.xml b/sys-cluster/openmpi/metadata.xml |
130 |
index 54502ebb0c41..973c7450cc63 100644 |
131 |
--- a/sys-cluster/openmpi/metadata.xml |
132 |
+++ b/sys-cluster/openmpi/metadata.xml |
133 |
@@ -8,14 +8,8 @@ |
134 |
<use> |
135 |
<flag name="cma">Enable the CMA (Cross Memory Attach) MCA</flag> |
136 |
<flag name="cuda">Add GPU direct support</flag> |
137 |
- <flag name="heterogeneous">Enable features required for heterogeneous |
138 |
- platform support</flag> |
139 |
<flag name="libompitrace">Enable support for contributed package libompitrace</flag> |
140 |
- <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag> |
141 |
- <flag name="numa">Enable numactl to allow binding processes to CPUs</flag> |
142 |
- <flag name="pbs">Add support for the Portable Batch System (PBS)</flag> |
143 |
<flag name="peruse">Enable PERUSE interface</flag> |
144 |
<flag name="romio">Build the ROMIO MPI-IO component</flag> |
145 |
- <flag name="vt">Enable bundled VampirTrace support</flag> |
146 |
</use> |
147 |
</pkgmetadata> |
148 |
|
149 |
diff --git a/sys-cluster/openmpi/openmpi-1.10.7.ebuild b/sys-cluster/openmpi/openmpi-1.10.7.ebuild |
150 |
deleted file mode 100644 |
151 |
index bd10c4fe0ad4..000000000000 |
152 |
--- a/sys-cluster/openmpi/openmpi-1.10.7.ebuild |
153 |
+++ /dev/null |
154 |
@@ -1,194 +0,0 @@ |
155 |
-# Copyright 1999-2022 Gentoo Authors |
156 |
-# Distributed under the terms of the GNU General Public License v2 |
157 |
- |
158 |
-EAPI=7 |
159 |
- |
160 |
-FORTRAN_NEEDED=fortran |
161 |
- |
162 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib-minimal |
163 |
- |
164 |
-MY_P=${P/-mpi} |
165 |
-S=${WORKDIR}/${MY_P} |
166 |
- |
167 |
-IUSE_OPENMPI_FABRICS=" |
168 |
- openmpi_fabrics_ofed |
169 |
- openmpi_fabrics_knem" |
170 |
- |
171 |
-IUSE_OPENMPI_RM=" |
172 |
- openmpi_rm_pbs |
173 |
- openmpi_rm_slurm" |
174 |
- |
175 |
-IUSE_OPENMPI_OFED_FEATURES=" |
176 |
- openmpi_ofed_features_control-hdr-padding |
177 |
- openmpi_ofed_features_connectx-xrc |
178 |
- openmpi_ofed_features_udcm |
179 |
- openmpi_ofed_features_rdmacm |
180 |
- openmpi_ofed_features_dynamic-sl |
181 |
- openmpi_ofed_features_failover" |
182 |
- |
183 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
184 |
-HOMEPAGE="https://www.open-mpi.org" |
185 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
186 |
-LICENSE="BSD" |
187 |
-SLOT="0" |
188 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
189 |
-IUSE="cma cuda +cxx fortran heterogeneous ipv6 java mpi-threads numa romio threads vt |
190 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
191 |
- |
192 |
-REQUIRED_USE=" |
193 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
194 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
195 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
196 |
- openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed ) |
197 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
198 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
199 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed ) |
200 |
- openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )" |
201 |
- |
202 |
-MPI_UNCLASSED_DEP_STR=" |
203 |
- vt? ( |
204 |
- !dev-libs/libotf |
205 |
- !app-text/lcdf-typetools |
206 |
- )" |
207 |
- |
208 |
-# dev-util/nvidia-cuda-toolkit is always multilib |
209 |
-CDEPEND=" |
210 |
- !sys-cluster/mpich |
211 |
- !sys-cluster/mpich2 |
212 |
- !sys-cluster/nullmpi |
213 |
- !sys-cluster/pmix |
214 |
- >=dev-libs/libevent-2.0.21:=[${MULTILIB_USEDEP}] |
215 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
216 |
- <sys-apps/hwloc-2:=[${MULTILIB_USEDEP},numa?] |
217 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
218 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 ) |
219 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
220 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
221 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
222 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
223 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
224 |
- |
225 |
-RDEPEND="${CDEPEND} |
226 |
- java? ( >=virtual/jre-1.6 )" |
227 |
- |
228 |
-DEPEND="${CDEPEND} |
229 |
- java? ( >=virtual/jdk-1.6 )" |
230 |
- |
231 |
-MULTILIB_WRAPPED_HEADERS=( |
232 |
- /usr/include/mpi.h |
233 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
234 |
-) |
235 |
- |
236 |
-pkg_setup() { |
237 |
- fortran-2_pkg_setup |
238 |
- java-pkg-opt-2_pkg_setup |
239 |
- |
240 |
- if use mpi-threads; then |
241 |
- ewarn |
242 |
- ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
243 |
- ewarn "default and officially unsupported by upstream." |
244 |
- ewarn "You may stop now and set USE=-mpi-threads" |
245 |
- ewarn |
246 |
- fi |
247 |
- |
248 |
- elog |
249 |
- elog "OpenMPI has an overwhelming count of configuration options." |
250 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
251 |
- elog "specify configure options if you find them necessary." |
252 |
- elog |
253 |
-} |
254 |
- |
255 |
-src_prepare() { |
256 |
- default |
257 |
- |
258 |
- # Necessary for scalibility, see |
259 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
260 |
- if use threads; then |
261 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
262 |
- >> opal/etc/openmpi-mca-params.conf || die |
263 |
- fi |
264 |
-} |
265 |
- |
266 |
-multilib_src_configure() { |
267 |
- if use java; then |
268 |
- # We must always build with the right -source and -target |
269 |
- # flags. Passing flags to javac isn't explicitly supported here |
270 |
- # but we can cheat by overriding the configure test for javac. |
271 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
272 |
- fi |
273 |
- |
274 |
- ECONF_SOURCE=${S} econf \ |
275 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
276 |
- --enable-pretty-print-stacktrace \ |
277 |
- --enable-orterun-prefix-by-default \ |
278 |
- --with-hwloc="${EPREFIX}/usr" \ |
279 |
- --with-libltdl="${EPREFIX}/usr" \ |
280 |
- --enable-mpi-fortran=$(usex fortran all no) \ |
281 |
- $(usex !vt --enable-contrib-no-build=vt "") \ |
282 |
- $(use_enable cxx mpi-cxx) \ |
283 |
- $(use_with cma) \ |
284 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
285 |
- $(use_enable romio io-romio) \ |
286 |
- $(use_enable heterogeneous) \ |
287 |
- $(use_enable ipv6) \ |
288 |
- $(multilib_native_use_enable java) \ |
289 |
- $(multilib_native_use_enable java mpi-java) \ |
290 |
- $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \ |
291 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
292 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
293 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
294 |
- $(multilib_native_use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \ |
295 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
296 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
297 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
298 |
- $(multilib_native_use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
299 |
- $(multilib_native_use_with openmpi_rm_pbs tm) \ |
300 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
301 |
-} |
302 |
- |
303 |
-multilib_src_test() { |
304 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
305 |
- emake -j1 check |
306 |
-} |
307 |
- |
308 |
-multilib_src_install() { |
309 |
- default |
310 |
- |
311 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
312 |
- if multilib_is_native_abi && use fortran; then |
313 |
- mkdir "${T}"/fortran || die |
314 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
315 |
- else |
316 |
- # some fortran files get installed unconditionally |
317 |
- rm \ |
318 |
- "${ED}"/usr/include/mpif* \ |
319 |
- "${ED}"/usr/bin/mpif* \ |
320 |
- || die |
321 |
- fi |
322 |
-} |
323 |
- |
324 |
-multilib_src_install_all() { |
325 |
- # From USE=vt see #359917 |
326 |
- rm -rf "${ED}"/usr/share/libtool &> /dev/null || die |
327 |
- |
328 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
329 |
- if use fortran; then |
330 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
331 |
- fi |
332 |
- |
333 |
- # Avoid collisions with libevent |
334 |
- rm -rf "${ED}"/usr/include/event2 &> /dev/null || die |
335 |
- |
336 |
- # Remove la files, no static libs are installed and we have pkg-config |
337 |
- find "${ED}" -name '*.la' -delete || die |
338 |
- |
339 |
- if use java; then |
340 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
341 |
- java-pkg_dojar "${mpi_jar}" |
342 |
- # We don't want to install the jar file twice |
343 |
- # so let's clean after ourselves. |
344 |
- rm "${mpi_jar}" || die |
345 |
- fi |
346 |
- |
347 |
- einstalldocs |
348 |
-} |
349 |
|
350 |
diff --git a/sys-cluster/openmpi/openmpi-1.4.5-r1.ebuild b/sys-cluster/openmpi/openmpi-1.4.5-r1.ebuild |
351 |
deleted file mode 100644 |
352 |
index fb848dabe383..000000000000 |
353 |
--- a/sys-cluster/openmpi/openmpi-1.4.5-r1.ebuild |
354 |
+++ /dev/null |
355 |
@@ -1,103 +0,0 @@ |
356 |
-# Copyright 1999-2021 Gentoo Authors |
357 |
-# Distributed under the terms of the GNU General Public License v2 |
358 |
- |
359 |
-EAPI=7 |
360 |
- |
361 |
-FORTRAN_NEEDED=fortran |
362 |
- |
363 |
-inherit fortran-2 flag-o-matic toolchain-funcs |
364 |
- |
365 |
-MY_P=${P/-mpi} |
366 |
- |
367 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
368 |
-HOMEPAGE="https://www.open-mpi.org" |
369 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v1.4/downloads/${MY_P}.tar.bz2" |
370 |
- |
371 |
-LICENSE="BSD" |
372 |
-SLOT="0" |
373 |
-RESTRICT="mpi-threads? ( test )" |
374 |
- |
375 |
-KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86" |
376 |
-IUSE="+cxx fortran heterogeneous ipv6 mpi-threads pbs romio threads vt" |
377 |
-RDEPEND=" |
378 |
- pbs? ( sys-cluster/torque ) |
379 |
- vt? ( |
380 |
- !dev-libs/libotf |
381 |
- !app-text/lcdf-typetools |
382 |
- ) |
383 |
- !sys-cluster/mpich |
384 |
- !sys-cluster/mpich2 |
385 |
- !sys-cluster/pmix" |
386 |
-DEPEND="${RDEPEND}" |
387 |
- |
388 |
-S=${WORKDIR}/${MY_P} |
389 |
- |
390 |
-pkg_setup() { |
391 |
- fortran-2_pkg_setup |
392 |
- if use mpi-threads; then |
393 |
- echo |
394 |
- ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
395 |
- ewarn "default and officially unsupported by upstream." |
396 |
- ewarn "You may stop now and set USE=-mpi-threads" |
397 |
- echo |
398 |
- fi |
399 |
- |
400 |
- echo |
401 |
- elog "OpenMPI has an overwhelming count of configuration options." |
402 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
403 |
- elog "specify configure options if you find them necessary." |
404 |
- echo |
405 |
-} |
406 |
- |
407 |
-src_prepare() { |
408 |
- default |
409 |
- # Necessary for scalibility, see |
410 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
411 |
- if use threads; then |
412 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
413 |
- >> opal/etc/openmpi-mca-params.conf |
414 |
- fi |
415 |
-} |
416 |
- |
417 |
-src_configure() { |
418 |
- local myconf=( |
419 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
420 |
- --enable-pretty-print-stacktrace |
421 |
- --enable-orterun-prefix-by-default |
422 |
- --without-slurm) |
423 |
- |
424 |
- if use mpi-threads; then |
425 |
- myconf+=(--enable-mpi-threads |
426 |
- --enable-progress-threads) |
427 |
- fi |
428 |
- |
429 |
- if use fortran; then |
430 |
- if [[ $(tc-getFC) =~ g77 ]]; then |
431 |
- myconf+=(--disable-mpi-f90) |
432 |
- elif [[ $(tc-getFC) =~ if ]]; then |
433 |
- # Enabled here as gfortran compile times are huge with this enabled. |
434 |
- myconf+=(--with-mpi-f90-size=medium) |
435 |
- fi |
436 |
- else |
437 |
- myconf+=(--disable-mpi-f90 --disable-mpi-f77) |
438 |
- fi |
439 |
- |
440 |
- ! use vt && myconf+=(--enable-contrib-no-build=vt) |
441 |
- |
442 |
- econf "${myconf[@]}" \ |
443 |
- $(use_enable cxx mpi-cxx) \ |
444 |
- $(use_enable romio io-romio) \ |
445 |
- $(use_enable heterogeneous) \ |
446 |
- $(use_with pbs tm) \ |
447 |
- $(use_enable ipv6) |
448 |
-} |
449 |
- |
450 |
-src_install() { |
451 |
- default |
452 |
- dodoc README AUTHORS NEWS VERSION |
453 |
-} |
454 |
- |
455 |
-src_test() { |
456 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
457 |
- emake -j1 check |
458 |
-} |
459 |
|
460 |
diff --git a/sys-cluster/openmpi/openmpi-1.7.5-r2.ebuild b/sys-cluster/openmpi/openmpi-1.7.5-r2.ebuild |
461 |
deleted file mode 100644 |
462 |
index 8319c92e65d2..000000000000 |
463 |
--- a/sys-cluster/openmpi/openmpi-1.7.5-r2.ebuild |
464 |
+++ /dev/null |
465 |
@@ -1,163 +0,0 @@ |
466 |
-# Copyright 1999-2022 Gentoo Authors |
467 |
-# Distributed under the terms of the GNU General Public License v2 |
468 |
- |
469 |
-EAPI=7 |
470 |
- |
471 |
-FORTRAN_NEEDED=fortran |
472 |
- |
473 |
-inherit autotools cuda flag-o-matic fortran-2 toolchain-funcs |
474 |
- |
475 |
-MY_P=${P/-mpi} |
476 |
- |
477 |
-S="${WORKDIR}"/${MY_P} |
478 |
- |
479 |
-IUSE_OPENMPI_FABRICS=" |
480 |
- openmpi_fabrics_ofed |
481 |
- openmpi_fabrics_knem" |
482 |
- |
483 |
-IUSE_OPENMPI_RM=" |
484 |
- openmpi_rm_pbs |
485 |
- openmpi_rm_slurm" |
486 |
- |
487 |
-IUSE_OPENMPI_OFED_FEATURES=" |
488 |
- openmpi_ofed_features_control-hdr-padding |
489 |
- openmpi_ofed_features_connectx-xrc |
490 |
- openmpi_ofed_features_rdmacm |
491 |
- openmpi_ofed_features_dynamic-sl |
492 |
- openmpi_ofed_features_failover" |
493 |
- |
494 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
495 |
-HOMEPAGE="https://www.open-mpi.org" |
496 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
497 |
-LICENSE="BSD" |
498 |
-SLOT="0" |
499 |
-KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
500 |
-IUSE="cma cuda +cxx fortran heterogeneous ipv6 mpi-threads romio threads vt |
501 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
502 |
- |
503 |
-REQUIRED_USE=" |
504 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
505 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
506 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
507 |
- openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed ) |
508 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
509 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed ) |
510 |
- openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )" |
511 |
- |
512 |
-MPI_UNCLASSED_DEP_STR=" |
513 |
- vt? ( |
514 |
- !dev-libs/libotf |
515 |
- !app-text/lcdf-typetools |
516 |
- )" |
517 |
- |
518 |
-RDEPEND=" |
519 |
- !sys-cluster/mpich |
520 |
- !sys-cluster/mpich2 |
521 |
- !sys-cluster/pmix |
522 |
- dev-libs/libevent:= |
523 |
- dev-libs/libltdl:0 |
524 |
- <sys-apps/hwloc-2:= |
525 |
- cuda? ( dev-util/nvidia-cuda-toolkit ) |
526 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
527 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
528 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
529 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
530 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core ) |
531 |
- " |
532 |
-DEPEND="${RDEPEND}" |
533 |
- |
534 |
-pkg_setup() { |
535 |
- fortran-2_pkg_setup |
536 |
- |
537 |
- if use mpi-threads; then |
538 |
- echo |
539 |
- ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
540 |
- ewarn "default and officially unsupported by upstream." |
541 |
- ewarn "You may stop now and set USE=-mpi-threads" |
542 |
- echo |
543 |
- fi |
544 |
- |
545 |
- echo |
546 |
- elog "OpenMPI has an overwhelming count of configuration options." |
547 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
548 |
- elog "specify configure options if you find them necessary." |
549 |
- echo |
550 |
-} |
551 |
- |
552 |
-src_prepare() { |
553 |
- default |
554 |
- # Necessary for scalibility, see |
555 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
556 |
- if use threads; then |
557 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
558 |
- >> opal/etc/openmpi-mca-params.conf |
559 |
- fi |
560 |
- |
561 |
- # https://github.com/open-mpi/ompi/issues/163 |
562 |
- eapply "${FILESDIR}"/openmpi-ltdl.patch |
563 |
- |
564 |
- AT_M4DIR=config eautoreconf |
565 |
-} |
566 |
- |
567 |
-src_configure() { |
568 |
- local myconf=( |
569 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
570 |
- --enable-pretty-print-stacktrace |
571 |
- --enable-orterun-prefix-by-default |
572 |
- --with-hwloc="${EPREFIX}/usr" |
573 |
- --with-libltdl=external |
574 |
- ) |
575 |
- |
576 |
- if use mpi-threads; then |
577 |
- myconf+=(--enable-mpi-threads |
578 |
- --enable-opal-multi-threads) |
579 |
- fi |
580 |
- |
581 |
- if use fortran; then |
582 |
- if [[ $(tc-getFC) =~ g77 ]]; then |
583 |
- myconf+=(--disable-mpi-f90) |
584 |
- elif [[ $(tc-getFC) =~ if ]]; then |
585 |
- # Enabled here as gfortran compile times are huge with this enabled. |
586 |
- myconf+=(--with-mpi-f90-size=medium) |
587 |
- fi |
588 |
- else |
589 |
- myconf+=(--disable-mpi-f90 --disable-mpi-f77) |
590 |
- fi |
591 |
- |
592 |
- ! use vt && myconf+=(--enable-contrib-no-build=vt) |
593 |
- |
594 |
- econf "${myconf[@]}" \ |
595 |
- $(use_enable cxx mpi-cxx) \ |
596 |
- $(use_with cma) \ |
597 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
598 |
- $(use_enable romio io-romio) \ |
599 |
- $(use_enable heterogeneous) \ |
600 |
- $(use_enable ipv6) \ |
601 |
- $(use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
602 |
- $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
603 |
- $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
604 |
- $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \ |
605 |
- $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
606 |
- $(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
607 |
- $(use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
608 |
- $(use_with openmpi_rm_pbs tm) \ |
609 |
- $(use_with openmpi_rm_slurm slurm) |
610 |
-} |
611 |
- |
612 |
-src_install() { |
613 |
- default |
614 |
- |
615 |
- # From USE=vt see #359917 |
616 |
- rm "${ED}"/usr/share/libtool || die |
617 |
- |
618 |
- # Avoid collisions with libevent |
619 |
- rm -rf "${ED}"/usr/include/event2 || die |
620 |
- dodoc README AUTHORS NEWS VERSION |
621 |
-} |
622 |
- |
623 |
-src_test() { |
624 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
625 |
- |
626 |
- # Do not override malloc during build. Works around #462602 |
627 |
- emake -j1 check |
628 |
-} |
629 |
|
630 |
diff --git a/sys-cluster/openmpi/openmpi-1.8.8-r1.ebuild b/sys-cluster/openmpi/openmpi-1.8.8-r1.ebuild |
631 |
deleted file mode 100644 |
632 |
index ac6ed9df845f..000000000000 |
633 |
--- a/sys-cluster/openmpi/openmpi-1.8.8-r1.ebuild |
634 |
+++ /dev/null |
635 |
@@ -1,176 +0,0 @@ |
636 |
-# Copyright 1999-2022 Gentoo Authors |
637 |
-# Distributed under the terms of the GNU General Public License v2 |
638 |
- |
639 |
-EAPI=7 |
640 |
- |
641 |
-FORTRAN_NEEDED=fortran |
642 |
- |
643 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs |
644 |
- |
645 |
-MY_P=${P/-mpi} |
646 |
-S=${WORKDIR}/${MY_P} |
647 |
- |
648 |
-IUSE_OPENMPI_FABRICS=" |
649 |
- openmpi_fabrics_ofed |
650 |
- openmpi_fabrics_knem" |
651 |
- |
652 |
-IUSE_OPENMPI_RM=" |
653 |
- openmpi_rm_pbs |
654 |
- openmpi_rm_slurm" |
655 |
- |
656 |
-IUSE_OPENMPI_OFED_FEATURES=" |
657 |
- openmpi_ofed_features_control-hdr-padding |
658 |
- openmpi_ofed_features_connectx-xrc |
659 |
- openmpi_ofed_features_udcm |
660 |
- openmpi_ofed_features_rdmacm |
661 |
- openmpi_ofed_features_dynamic-sl |
662 |
- openmpi_ofed_features_failover" |
663 |
- |
664 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
665 |
-HOMEPAGE="https://www.open-mpi.org" |
666 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
667 |
-LICENSE="BSD" |
668 |
-SLOT="0" |
669 |
-KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
670 |
-IUSE="cma cuda +cxx fortran heterogeneous ipv6 java mpi-threads numa romio threads vt |
671 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
672 |
- |
673 |
-REQUIRED_USE=" |
674 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
675 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
676 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
677 |
- openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed ) |
678 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
679 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
680 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed ) |
681 |
- openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )" |
682 |
- |
683 |
-MPI_UNCLASSED_DEP_STR=" |
684 |
- vt? ( |
685 |
- !dev-libs/libotf |
686 |
- !app-text/lcdf-typetools |
687 |
- )" |
688 |
- |
689 |
-CDEPEND=" |
690 |
- !sys-cluster/mpich |
691 |
- !sys-cluster/mpich2 |
692 |
- !sys-cluster/pmix |
693 |
- dev-libs/libevent:= |
694 |
- dev-libs/libltdl:0 |
695 |
- <sys-apps/hwloc-2:=[numa?] |
696 |
- sys-libs/zlib |
697 |
- cuda? ( dev-util/nvidia-cuda-toolkit ) |
698 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
699 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
700 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
701 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
702 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
703 |
- |
704 |
-RDEPEND="${CDEPEND} |
705 |
- java? ( >=virtual/jre-1.6 )" |
706 |
- |
707 |
-DEPEND="${CDEPEND} |
708 |
- java? ( >=virtual/jdk-1.6 )" |
709 |
- |
710 |
-pkg_setup() { |
711 |
- fortran-2_pkg_setup |
712 |
- java-pkg-opt-2_pkg_setup |
713 |
- |
714 |
- if use mpi-threads; then |
715 |
- echo |
716 |
- ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
717 |
- ewarn "default and officially unsupported by upstream." |
718 |
- ewarn "You may stop now and set USE=-mpi-threads" |
719 |
- echo |
720 |
- fi |
721 |
- |
722 |
- echo |
723 |
- elog "OpenMPI has an overwhelming count of configuration options." |
724 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
725 |
- elog "specify configure options if you find them necessary." |
726 |
- echo |
727 |
-} |
728 |
- |
729 |
-src_prepare() { |
730 |
- default |
731 |
- # Necessary for scalibility, see |
732 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
733 |
- if use threads; then |
734 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
735 |
- >> opal/etc/openmpi-mca-params.conf |
736 |
- fi |
737 |
-} |
738 |
- |
739 |
-src_configure() { |
740 |
- local myconf=( |
741 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
742 |
- --enable-pretty-print-stacktrace |
743 |
- --enable-orterun-prefix-by-default |
744 |
- --with-hwloc="${EPREFIX}/usr" |
745 |
- --with-libltdl="${EPREFIX}/usr" |
746 |
- ) |
747 |
- |
748 |
- if use fortran; then |
749 |
- myconf+=(--enable-mpi-fortran=all) |
750 |
- else |
751 |
- myconf+=(--enable-mpi-fortran=no) |
752 |
- fi |
753 |
- |
754 |
- if use java; then |
755 |
- # We must always build with the right -source and -target |
756 |
- # flags. Passing flags to javac isn't explicitly supported here |
757 |
- # but we can cheat by overriding the configure test for javac. |
758 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
759 |
- fi |
760 |
- |
761 |
- ! use vt && myconf+=(--enable-contrib-no-build=vt) |
762 |
- |
763 |
- econf "${myconf[@]}" \ |
764 |
- $(use_enable cxx mpi-cxx) \ |
765 |
- $(use_with cma) \ |
766 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
767 |
- $(use_enable romio io-romio) \ |
768 |
- $(use_enable heterogeneous) \ |
769 |
- $(use_enable ipv6) \ |
770 |
- $(use_enable mpi-threads mpi-thread-multiple) \ |
771 |
- $(use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
772 |
- $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
773 |
- $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
774 |
- $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \ |
775 |
- $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
776 |
- $(use_enable openmpi_ofed_features_udcm openib-udcm) \ |
777 |
- $(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
778 |
- $(use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
779 |
- $(use_with openmpi_rm_pbs tm) \ |
780 |
- $(use_with openmpi_rm_slurm slurm) \ |
781 |
- $(use_enable java) \ |
782 |
- $(use_enable java mpi-java) |
783 |
-} |
784 |
- |
785 |
-src_install() { |
786 |
- default |
787 |
- |
788 |
- # From USE=vt see #359917 |
789 |
- rm "${ED}"/usr/share/libtool || die |
790 |
- |
791 |
- # Avoid collisions with libevent |
792 |
- rm -rf "${ED}"/usr/include/event2 || die |
793 |
- |
794 |
- # Remove la files, no static libs are installed and we have pkg-config |
795 |
- find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete |
796 |
- |
797 |
- if use java; then |
798 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
799 |
- java-pkg_dojar "${mpi_jar}" |
800 |
- # We don't want to install the jar file twice |
801 |
- # so let's clean after ourselves. |
802 |
- rm "${mpi_jar}" || die |
803 |
- fi |
804 |
- |
805 |
- dodoc README AUTHORS NEWS VERSION |
806 |
-} |
807 |
- |
808 |
-src_test() { |
809 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
810 |
- emake -j1 check |
811 |
-} |
812 |
|
813 |
diff --git a/sys-cluster/openmpi/openmpi-2.0.4-r1.ebuild b/sys-cluster/openmpi/openmpi-2.0.4-r1.ebuild |
814 |
deleted file mode 100644 |
815 |
index 752a3ae1982f..000000000000 |
816 |
--- a/sys-cluster/openmpi/openmpi-2.0.4-r1.ebuild |
817 |
+++ /dev/null |
818 |
@@ -1,177 +0,0 @@ |
819 |
-# Copyright 1999-2022 Gentoo Authors |
820 |
-# Distributed under the terms of the GNU General Public License v2 |
821 |
- |
822 |
-EAPI=7 |
823 |
- |
824 |
-FORTRAN_NEEDED=fortran |
825 |
- |
826 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib-minimal |
827 |
- |
828 |
-MY_P=${P/-mpi} |
829 |
-S=${WORKDIR}/${MY_P} |
830 |
- |
831 |
-IUSE_OPENMPI_FABRICS=" |
832 |
- openmpi_fabrics_ofed |
833 |
- openmpi_fabrics_knem" |
834 |
- |
835 |
-IUSE_OPENMPI_RM=" |
836 |
- openmpi_rm_pbs |
837 |
- openmpi_rm_slurm" |
838 |
- |
839 |
-IUSE_OPENMPI_OFED_FEATURES=" |
840 |
- openmpi_ofed_features_control-hdr-padding |
841 |
- openmpi_ofed_features_connectx-xrc |
842 |
- openmpi_ofed_features_udcm |
843 |
- openmpi_ofed_features_rdmacm |
844 |
- openmpi_ofed_features_dynamic-sl |
845 |
- openmpi_ofed_features_failover" |
846 |
- |
847 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
848 |
-HOMEPAGE="https://www.open-mpi.org" |
849 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
850 |
-LICENSE="BSD" |
851 |
-SLOT="0" |
852 |
-KEYWORDS="~alpha amd64 arm ~ia64 ~ppc ~ppc64 sparc x86 ~amd64-linux" |
853 |
-IUSE="cma cuda cxx fortran heterogeneous ipv6 java mpi-threads numa romio threads |
854 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
855 |
- |
856 |
-REQUIRED_USE=" |
857 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
858 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
859 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
860 |
- openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed ) |
861 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
862 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
863 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed ) |
864 |
- openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )" |
865 |
- |
866 |
-# dev-util/nvidia-cuda-toolkit is always multilib |
867 |
-CDEPEND=" |
868 |
- !sys-cluster/mpich |
869 |
- !sys-cluster/mpich2 |
870 |
- !sys-cluster/nullmpi |
871 |
- !sys-cluster/pmix |
872 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
873 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
874 |
- <sys-apps/hwloc-2:=[${MULTILIB_USEDEP},numa?] |
875 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
876 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
877 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
878 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
879 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
880 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
881 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
882 |
- |
883 |
-RDEPEND="${CDEPEND} |
884 |
- java? ( >=virtual/jre-1.6 )" |
885 |
- |
886 |
-DEPEND="${CDEPEND} |
887 |
- java? ( >=virtual/jdk-1.6 )" |
888 |
- |
889 |
-MULTILIB_WRAPPED_HEADERS=( |
890 |
- /usr/include/mpi.h |
891 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
892 |
-) |
893 |
- |
894 |
-pkg_setup() { |
895 |
- fortran-2_pkg_setup |
896 |
- java-pkg-opt-2_pkg_setup |
897 |
- |
898 |
- elog |
899 |
- elog "OpenMPI has an overwhelming count of configuration options." |
900 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
901 |
- elog "specify configure options if you find them necessary." |
902 |
- elog |
903 |
-} |
904 |
- |
905 |
-src_prepare() { |
906 |
- default |
907 |
- |
908 |
- # Necessary for scalibility, see |
909 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
910 |
- if use threads; then |
911 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
912 |
- >> opal/etc/openmpi-mca-params.conf || die |
913 |
- fi |
914 |
-} |
915 |
- |
916 |
-multilib_src_configure() { |
917 |
- if use java; then |
918 |
- # We must always build with the right -source and -target |
919 |
- # flags. Passing flags to javac isn't explicitly supported here |
920 |
- # but we can cheat by overriding the configure test for javac. |
921 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
922 |
- fi |
923 |
- |
924 |
- ECONF_SOURCE=${S} econf \ |
925 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
926 |
- --enable-pretty-print-stacktrace \ |
927 |
- --enable-orterun-prefix-by-default \ |
928 |
- --with-hwloc="${EPREFIX}/usr" \ |
929 |
- --with-libltdl="${EPREFIX}/usr" \ |
930 |
- --with-libevent="${EPREFIX}/usr" \ |
931 |
- --enable-mpi-fortran=$(usex fortran all no) \ |
932 |
- $(use_enable cxx mpi-cxx) \ |
933 |
- $(use_with cma) \ |
934 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
935 |
- $(use_enable romio io-romio) \ |
936 |
- $(use_enable heterogeneous) \ |
937 |
- $(use_enable ipv6) \ |
938 |
- $(multilib_native_use_enable java) \ |
939 |
- $(multilib_native_use_enable java mpi-java) \ |
940 |
- $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \ |
941 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
942 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
943 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
944 |
- $(multilib_native_use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \ |
945 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
946 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
947 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
948 |
- $(multilib_native_use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
949 |
- $(multilib_native_use_with openmpi_rm_pbs tm) \ |
950 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
951 |
- |
952 |
- # fix parallel build when f08 is enabled |
953 |
- mkdir -p ompi/mpi/fortran/use-mpi-f08/profile || die |
954 |
-} |
955 |
- |
956 |
-multilib_src_test() { |
957 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
958 |
- emake -j1 check |
959 |
-} |
960 |
- |
961 |
-multilib_src_install() { |
962 |
- default |
963 |
- |
964 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
965 |
- if multilib_is_native_abi && use fortran; then |
966 |
- mkdir "${T}"/fortran || die |
967 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
968 |
- else |
969 |
- # some fortran files get installed unconditionally |
970 |
- rm \ |
971 |
- "${ED}"/usr/include/mpif* \ |
972 |
- "${ED}"/usr/bin/mpif* \ |
973 |
- || die |
974 |
- fi |
975 |
-} |
976 |
- |
977 |
-multilib_src_install_all() { |
978 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
979 |
- if use fortran; then |
980 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
981 |
- fi |
982 |
- |
983 |
- # Remove la files, no static libs are installed and we have pkg-config |
984 |
- find "${ED}" -name '*.la' -delete || die |
985 |
- |
986 |
- if use java; then |
987 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
988 |
- java-pkg_dojar "${mpi_jar}" |
989 |
- # We don't want to install the jar file twice |
990 |
- # so let's clean after ourselves. |
991 |
- rm "${mpi_jar}" || die |
992 |
- fi |
993 |
- |
994 |
- einstalldocs |
995 |
-} |
996 |
|
997 |
diff --git a/sys-cluster/openmpi/openmpi-2.1.6-r1.ebuild b/sys-cluster/openmpi/openmpi-2.1.6-r1.ebuild |
998 |
deleted file mode 100644 |
999 |
index a6e5a26fe493..000000000000 |
1000 |
--- a/sys-cluster/openmpi/openmpi-2.1.6-r1.ebuild |
1001 |
+++ /dev/null |
1002 |
@@ -1,170 +0,0 @@ |
1003 |
-# Copyright 1999-2022 Gentoo Authors |
1004 |
-# Distributed under the terms of the GNU General Public License v2 |
1005 |
- |
1006 |
-EAPI=7 |
1007 |
- |
1008 |
-FORTRAN_NEEDED=fortran |
1009 |
- |
1010 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib-minimal |
1011 |
- |
1012 |
-MY_P=${P/-mpi} |
1013 |
-S=${WORKDIR}/${MY_P} |
1014 |
- |
1015 |
-IUSE_OPENMPI_FABRICS=" |
1016 |
- openmpi_fabrics_ofed |
1017 |
- openmpi_fabrics_knem" |
1018 |
- |
1019 |
-IUSE_OPENMPI_RM=" |
1020 |
- openmpi_rm_pbs |
1021 |
- openmpi_rm_slurm" |
1022 |
- |
1023 |
-IUSE_OPENMPI_OFED_FEATURES=" |
1024 |
- openmpi_ofed_features_control-hdr-padding |
1025 |
- openmpi_ofed_features_udcm |
1026 |
- openmpi_ofed_features_rdmacm |
1027 |
- openmpi_ofed_features_dynamic-sl" |
1028 |
- |
1029 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
1030 |
-HOMEPAGE="https://www.open-mpi.org" |
1031 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
1032 |
-LICENSE="BSD" |
1033 |
-SLOT="0" |
1034 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
1035 |
-IUSE="cma cuda cxx fortran heterogeneous ipv6 java mpi-threads numa romio threads |
1036 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
1037 |
- |
1038 |
-REQUIRED_USE=" |
1039 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
1040 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
1041 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
1042 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
1043 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
1044 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
1045 |
- |
1046 |
-# dev-util/nvidia-cuda-toolkit is always multilib |
1047 |
-CDEPEND=" |
1048 |
- !sys-cluster/mpich |
1049 |
- !sys-cluster/mpich2 |
1050 |
- !sys-cluster/nullmpi |
1051 |
- !sys-cluster/pmix |
1052 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
1053 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
1054 |
- <sys-apps/hwloc-2:=[${MULTILIB_USEDEP},numa?] |
1055 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1056 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
1057 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
1058 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
1059 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
1060 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
1061 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
1062 |
- |
1063 |
-RDEPEND="${CDEPEND} |
1064 |
- java? ( >=virtual/jre-1.6 )" |
1065 |
- |
1066 |
-DEPEND="${CDEPEND} |
1067 |
- java? ( >=virtual/jdk-1.6 )" |
1068 |
- |
1069 |
-MULTILIB_WRAPPED_HEADERS=( |
1070 |
- /usr/include/mpi.h |
1071 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
1072 |
-) |
1073 |
- |
1074 |
-pkg_setup() { |
1075 |
- fortran-2_pkg_setup |
1076 |
- java-pkg-opt-2_pkg_setup |
1077 |
- |
1078 |
- elog |
1079 |
- elog "OpenMPI has an overwhelming count of configuration options." |
1080 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
1081 |
- elog "specify configure options if you find them necessary." |
1082 |
- elog |
1083 |
-} |
1084 |
- |
1085 |
-src_prepare() { |
1086 |
- default |
1087 |
- |
1088 |
- # Necessary for scalibility, see |
1089 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
1090 |
- if use threads; then |
1091 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
1092 |
- >> opal/etc/openmpi-mca-params.conf || die |
1093 |
- fi |
1094 |
-} |
1095 |
- |
1096 |
-multilib_src_configure() { |
1097 |
- if use java; then |
1098 |
- # We must always build with the right -source and -target |
1099 |
- # flags. Passing flags to javac isn't explicitly supported here |
1100 |
- # but we can cheat by overriding the configure test for javac. |
1101 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
1102 |
- fi |
1103 |
- |
1104 |
- ECONF_SOURCE=${S} econf \ |
1105 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
1106 |
- --enable-pretty-print-stacktrace \ |
1107 |
- --enable-orterun-prefix-by-default \ |
1108 |
- --with-hwloc="${EPREFIX}/usr" \ |
1109 |
- --with-libltdl="${EPREFIX}/usr" \ |
1110 |
- --with-libevent="${EPREFIX}/usr" \ |
1111 |
- --enable-mpi-fortran=$(usex fortran all no) \ |
1112 |
- $(use_enable cxx mpi-cxx) \ |
1113 |
- $(use_with cma) \ |
1114 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
1115 |
- $(use_enable romio io-romio) \ |
1116 |
- $(use_enable heterogeneous) \ |
1117 |
- $(use_enable ipv6) \ |
1118 |
- $(multilib_native_use_enable java) \ |
1119 |
- $(multilib_native_use_enable java mpi-java) \ |
1120 |
- $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \ |
1121 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
1122 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
1123 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
1124 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
1125 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
1126 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
1127 |
- $(multilib_native_use_with openmpi_rm_pbs tm) \ |
1128 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
1129 |
-} |
1130 |
- |
1131 |
-multilib_src_test() { |
1132 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
1133 |
- emake -j1 check |
1134 |
-} |
1135 |
- |
1136 |
-multilib_src_install() { |
1137 |
- default |
1138 |
- |
1139 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
1140 |
- if multilib_is_native_abi && use fortran; then |
1141 |
- mkdir "${T}"/fortran || die |
1142 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
1143 |
- else |
1144 |
- # some fortran files get installed unconditionally |
1145 |
- rm \ |
1146 |
- "${ED}"/usr/include/mpif* \ |
1147 |
- "${ED}"/usr/bin/mpif* \ |
1148 |
- "${ED}"/usr/bin/oshfort \ |
1149 |
- "${ED}"/usr/bin/shmemfort \ |
1150 |
- || die |
1151 |
- fi |
1152 |
-} |
1153 |
- |
1154 |
-multilib_src_install_all() { |
1155 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
1156 |
- if use fortran; then |
1157 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
1158 |
- fi |
1159 |
- |
1160 |
- # Remove la files, no static libs are installed and we have pkg-config |
1161 |
- find "${ED}" -name '*.la' -delete || die |
1162 |
- |
1163 |
- if use java; then |
1164 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
1165 |
- java-pkg_dojar "${mpi_jar}" |
1166 |
- # We don't want to install the jar file twice |
1167 |
- # so let's clean after ourselves. |
1168 |
- rm "${mpi_jar}" || die |
1169 |
- fi |
1170 |
- |
1171 |
- einstalldocs |
1172 |
-} |
1173 |
|
1174 |
diff --git a/sys-cluster/openmpi/openmpi-3.0.4-r1.ebuild b/sys-cluster/openmpi/openmpi-3.0.4-r1.ebuild |
1175 |
deleted file mode 100644 |
1176 |
index d17836c5e10d..000000000000 |
1177 |
--- a/sys-cluster/openmpi/openmpi-3.0.4-r1.ebuild |
1178 |
+++ /dev/null |
1179 |
@@ -1,167 +0,0 @@ |
1180 |
-# Copyright 1999-2022 Gentoo Authors |
1181 |
-# Distributed under the terms of the GNU General Public License v2 |
1182 |
- |
1183 |
-EAPI=7 |
1184 |
- |
1185 |
-FORTRAN_NEEDED=fortran |
1186 |
- |
1187 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib-minimal |
1188 |
- |
1189 |
-MY_P=${P/-mpi} |
1190 |
-S=${WORKDIR}/${MY_P} |
1191 |
- |
1192 |
-IUSE_OPENMPI_FABRICS=" |
1193 |
- openmpi_fabrics_ofed |
1194 |
- openmpi_fabrics_knem" |
1195 |
- |
1196 |
-IUSE_OPENMPI_RM=" |
1197 |
- openmpi_rm_pbs |
1198 |
- openmpi_rm_slurm" |
1199 |
- |
1200 |
-IUSE_OPENMPI_OFED_FEATURES=" |
1201 |
- openmpi_ofed_features_control-hdr-padding |
1202 |
- openmpi_ofed_features_udcm |
1203 |
- openmpi_ofed_features_rdmacm |
1204 |
- openmpi_ofed_features_dynamic-sl" |
1205 |
- |
1206 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
1207 |
-HOMEPAGE="https://www.open-mpi.org" |
1208 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
1209 |
-LICENSE="BSD" |
1210 |
-SLOT="0" |
1211 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
1212 |
-IUSE="cma cuda cxx fortran heterogeneous ipv6 java numa romio |
1213 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
1214 |
- |
1215 |
-REQUIRED_USE=" |
1216 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
1217 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
1218 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
1219 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
1220 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
1221 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
1222 |
- |
1223 |
-# dev-util/nvidia-cuda-toolkit is always multilib |
1224 |
-CDEPEND=" |
1225 |
- !sys-cluster/mpich |
1226 |
- !sys-cluster/mpich2 |
1227 |
- !sys-cluster/nullmpi |
1228 |
- !sys-cluster/pmix |
1229 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
1230 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
1231 |
- <sys-apps/hwloc-2:=[${MULTILIB_USEDEP},numa?] |
1232 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1233 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
1234 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
1235 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
1236 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
1237 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
1238 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
1239 |
- |
1240 |
-RDEPEND="${CDEPEND} |
1241 |
- java? ( >=virtual/jre-1.6 )" |
1242 |
- |
1243 |
-DEPEND="${CDEPEND} |
1244 |
- java? ( >=virtual/jdk-1.6 )" |
1245 |
- |
1246 |
-MULTILIB_WRAPPED_HEADERS=( |
1247 |
- /usr/include/mpi.h |
1248 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
1249 |
-) |
1250 |
- |
1251 |
-pkg_setup() { |
1252 |
- fortran-2_pkg_setup |
1253 |
- java-pkg-opt-2_pkg_setup |
1254 |
- |
1255 |
- elog |
1256 |
- elog "OpenMPI has an overwhelming count of configuration options." |
1257 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
1258 |
- elog "specify configure options if you find them necessary." |
1259 |
- elog |
1260 |
-} |
1261 |
- |
1262 |
-src_prepare() { |
1263 |
- default |
1264 |
- |
1265 |
- # Necessary for scalibility, see |
1266 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
1267 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
1268 |
- >> opal/etc/openmpi-mca-params.conf || die |
1269 |
-} |
1270 |
- |
1271 |
-multilib_src_configure() { |
1272 |
- if use java; then |
1273 |
- # We must always build with the right -source and -target |
1274 |
- # flags. Passing flags to javac isn't explicitly supported here |
1275 |
- # but we can cheat by overriding the configure test for javac. |
1276 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
1277 |
- fi |
1278 |
- |
1279 |
- ECONF_SOURCE=${S} econf \ |
1280 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
1281 |
- --enable-pretty-print-stacktrace \ |
1282 |
- --enable-orterun-prefix-by-default \ |
1283 |
- --with-hwloc="${EPREFIX}/usr" \ |
1284 |
- --with-libltdl="${EPREFIX}/usr" \ |
1285 |
- --with-libevent="${EPREFIX}/usr" \ |
1286 |
- --enable-mpi-fortran=$(usex fortran all no) \ |
1287 |
- $(use_enable cxx mpi-cxx) \ |
1288 |
- $(use_with cma) \ |
1289 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
1290 |
- $(use_enable romio io-romio) \ |
1291 |
- $(use_enable heterogeneous) \ |
1292 |
- $(use_enable ipv6) \ |
1293 |
- $(multilib_native_use_enable java) \ |
1294 |
- $(multilib_native_use_enable java mpi-java) \ |
1295 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
1296 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
1297 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
1298 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
1299 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
1300 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
1301 |
- $(multilib_native_use_with openmpi_rm_pbs tm) \ |
1302 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
1303 |
-} |
1304 |
- |
1305 |
-multilib_src_test() { |
1306 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
1307 |
- emake -j1 check |
1308 |
-} |
1309 |
- |
1310 |
-multilib_src_install() { |
1311 |
- default |
1312 |
- |
1313 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
1314 |
- if multilib_is_native_abi && use fortran; then |
1315 |
- mkdir "${T}"/fortran || die |
1316 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
1317 |
- else |
1318 |
- # some fortran files get installed unconditionally |
1319 |
- rm \ |
1320 |
- "${ED}"/usr/include/mpif* \ |
1321 |
- "${ED}"/usr/bin/mpif* \ |
1322 |
- "${ED}"/usr/bin/oshfort \ |
1323 |
- "${ED}"/usr/bin/shmemfort \ |
1324 |
- || die |
1325 |
- fi |
1326 |
-} |
1327 |
- |
1328 |
-multilib_src_install_all() { |
1329 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
1330 |
- if use fortran; then |
1331 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
1332 |
- fi |
1333 |
- |
1334 |
- # Remove la files, no static libs are installed and we have pkg-config |
1335 |
- find "${ED}" -name '*.la' -delete || die |
1336 |
- |
1337 |
- if use java; then |
1338 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
1339 |
- java-pkg_dojar "${mpi_jar}" |
1340 |
- # We don't want to install the jar file twice |
1341 |
- # so let's clean after ourselves. |
1342 |
- rm "${mpi_jar}" || die |
1343 |
- fi |
1344 |
- |
1345 |
- einstalldocs |
1346 |
-} |
1347 |
|
1348 |
diff --git a/sys-cluster/openmpi/openmpi-3.1.4-r1.ebuild b/sys-cluster/openmpi/openmpi-3.1.4-r1.ebuild |
1349 |
deleted file mode 100644 |
1350 |
index d17836c5e10d..000000000000 |
1351 |
--- a/sys-cluster/openmpi/openmpi-3.1.4-r1.ebuild |
1352 |
+++ /dev/null |
1353 |
@@ -1,167 +0,0 @@ |
1354 |
-# Copyright 1999-2022 Gentoo Authors |
1355 |
-# Distributed under the terms of the GNU General Public License v2 |
1356 |
- |
1357 |
-EAPI=7 |
1358 |
- |
1359 |
-FORTRAN_NEEDED=fortran |
1360 |
- |
1361 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib-minimal |
1362 |
- |
1363 |
-MY_P=${P/-mpi} |
1364 |
-S=${WORKDIR}/${MY_P} |
1365 |
- |
1366 |
-IUSE_OPENMPI_FABRICS=" |
1367 |
- openmpi_fabrics_ofed |
1368 |
- openmpi_fabrics_knem" |
1369 |
- |
1370 |
-IUSE_OPENMPI_RM=" |
1371 |
- openmpi_rm_pbs |
1372 |
- openmpi_rm_slurm" |
1373 |
- |
1374 |
-IUSE_OPENMPI_OFED_FEATURES=" |
1375 |
- openmpi_ofed_features_control-hdr-padding |
1376 |
- openmpi_ofed_features_udcm |
1377 |
- openmpi_ofed_features_rdmacm |
1378 |
- openmpi_ofed_features_dynamic-sl" |
1379 |
- |
1380 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
1381 |
-HOMEPAGE="https://www.open-mpi.org" |
1382 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
1383 |
-LICENSE="BSD" |
1384 |
-SLOT="0" |
1385 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
1386 |
-IUSE="cma cuda cxx fortran heterogeneous ipv6 java numa romio |
1387 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
1388 |
- |
1389 |
-REQUIRED_USE=" |
1390 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
1391 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
1392 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
1393 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
1394 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
1395 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
1396 |
- |
1397 |
-# dev-util/nvidia-cuda-toolkit is always multilib |
1398 |
-CDEPEND=" |
1399 |
- !sys-cluster/mpich |
1400 |
- !sys-cluster/mpich2 |
1401 |
- !sys-cluster/nullmpi |
1402 |
- !sys-cluster/pmix |
1403 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
1404 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
1405 |
- <sys-apps/hwloc-2:=[${MULTILIB_USEDEP},numa?] |
1406 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1407 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
1408 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
1409 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
1410 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
1411 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
1412 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
1413 |
- |
1414 |
-RDEPEND="${CDEPEND} |
1415 |
- java? ( >=virtual/jre-1.6 )" |
1416 |
- |
1417 |
-DEPEND="${CDEPEND} |
1418 |
- java? ( >=virtual/jdk-1.6 )" |
1419 |
- |
1420 |
-MULTILIB_WRAPPED_HEADERS=( |
1421 |
- /usr/include/mpi.h |
1422 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
1423 |
-) |
1424 |
- |
1425 |
-pkg_setup() { |
1426 |
- fortran-2_pkg_setup |
1427 |
- java-pkg-opt-2_pkg_setup |
1428 |
- |
1429 |
- elog |
1430 |
- elog "OpenMPI has an overwhelming count of configuration options." |
1431 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
1432 |
- elog "specify configure options if you find them necessary." |
1433 |
- elog |
1434 |
-} |
1435 |
- |
1436 |
-src_prepare() { |
1437 |
- default |
1438 |
- |
1439 |
- # Necessary for scalibility, see |
1440 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
1441 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
1442 |
- >> opal/etc/openmpi-mca-params.conf || die |
1443 |
-} |
1444 |
- |
1445 |
-multilib_src_configure() { |
1446 |
- if use java; then |
1447 |
- # We must always build with the right -source and -target |
1448 |
- # flags. Passing flags to javac isn't explicitly supported here |
1449 |
- # but we can cheat by overriding the configure test for javac. |
1450 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
1451 |
- fi |
1452 |
- |
1453 |
- ECONF_SOURCE=${S} econf \ |
1454 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
1455 |
- --enable-pretty-print-stacktrace \ |
1456 |
- --enable-orterun-prefix-by-default \ |
1457 |
- --with-hwloc="${EPREFIX}/usr" \ |
1458 |
- --with-libltdl="${EPREFIX}/usr" \ |
1459 |
- --with-libevent="${EPREFIX}/usr" \ |
1460 |
- --enable-mpi-fortran=$(usex fortran all no) \ |
1461 |
- $(use_enable cxx mpi-cxx) \ |
1462 |
- $(use_with cma) \ |
1463 |
- $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
1464 |
- $(use_enable romio io-romio) \ |
1465 |
- $(use_enable heterogeneous) \ |
1466 |
- $(use_enable ipv6) \ |
1467 |
- $(multilib_native_use_enable java) \ |
1468 |
- $(multilib_native_use_enable java mpi-java) \ |
1469 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
1470 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
1471 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
1472 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
1473 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
1474 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
1475 |
- $(multilib_native_use_with openmpi_rm_pbs tm) \ |
1476 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
1477 |
-} |
1478 |
- |
1479 |
-multilib_src_test() { |
1480 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
1481 |
- emake -j1 check |
1482 |
-} |
1483 |
- |
1484 |
-multilib_src_install() { |
1485 |
- default |
1486 |
- |
1487 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
1488 |
- if multilib_is_native_abi && use fortran; then |
1489 |
- mkdir "${T}"/fortran || die |
1490 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
1491 |
- else |
1492 |
- # some fortran files get installed unconditionally |
1493 |
- rm \ |
1494 |
- "${ED}"/usr/include/mpif* \ |
1495 |
- "${ED}"/usr/bin/mpif* \ |
1496 |
- "${ED}"/usr/bin/oshfort \ |
1497 |
- "${ED}"/usr/bin/shmemfort \ |
1498 |
- || die |
1499 |
- fi |
1500 |
-} |
1501 |
- |
1502 |
-multilib_src_install_all() { |
1503 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
1504 |
- if use fortran; then |
1505 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
1506 |
- fi |
1507 |
- |
1508 |
- # Remove la files, no static libs are installed and we have pkg-config |
1509 |
- find "${ED}" -name '*.la' -delete || die |
1510 |
- |
1511 |
- if use java; then |
1512 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
1513 |
- java-pkg_dojar "${mpi_jar}" |
1514 |
- # We don't want to install the jar file twice |
1515 |
- # so let's clean after ourselves. |
1516 |
- rm "${mpi_jar}" || die |
1517 |
- fi |
1518 |
- |
1519 |
- einstalldocs |
1520 |
-} |
1521 |
|
1522 |
diff --git a/sys-cluster/openmpi/openmpi-4.0.5-r3.ebuild b/sys-cluster/openmpi/openmpi-4.0.5-r3.ebuild |
1523 |
deleted file mode 100644 |
1524 |
index ef9a1e2bea64..000000000000 |
1525 |
--- a/sys-cluster/openmpi/openmpi-4.0.5-r3.ebuild |
1526 |
+++ /dev/null |
1527 |
@@ -1,174 +0,0 @@ |
1528 |
-# Copyright 1999-2022 Gentoo Authors |
1529 |
-# Distributed under the terms of the GNU General Public License v2 |
1530 |
- |
1531 |
-EAPI=7 |
1532 |
- |
1533 |
-FORTRAN_NEEDED=fortran |
1534 |
- |
1535 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib multilib-minimal |
1536 |
- |
1537 |
-MY_P=${P/-mpi} |
1538 |
-S=${WORKDIR}/${MY_P} |
1539 |
- |
1540 |
-IUSE_OPENMPI_FABRICS=" |
1541 |
- openmpi_fabrics_ofed |
1542 |
- openmpi_fabrics_knem" |
1543 |
- |
1544 |
-IUSE_OPENMPI_RM=" |
1545 |
- openmpi_rm_pbs |
1546 |
- openmpi_rm_slurm" |
1547 |
- |
1548 |
-IUSE_OPENMPI_OFED_FEATURES=" |
1549 |
- openmpi_ofed_features_control-hdr-padding |
1550 |
- openmpi_ofed_features_udcm |
1551 |
- openmpi_ofed_features_rdmacm |
1552 |
- openmpi_ofed_features_dynamic-sl" |
1553 |
- |
1554 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
1555 |
-HOMEPAGE="https://www.open-mpi.org" |
1556 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
1557 |
-LICENSE="BSD" |
1558 |
-SLOT="0" |
1559 |
-KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~riscv sparc x86 ~amd64-linux" |
1560 |
-IUSE="cma cuda cxx fortran ipv6 java libompitrace peruse romio |
1561 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
1562 |
- |
1563 |
-REQUIRED_USE=" |
1564 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
1565 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
1566 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
1567 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
1568 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
1569 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
1570 |
- |
1571 |
-CDEPEND=" |
1572 |
- !sys-cluster/mpich |
1573 |
- !sys-cluster/mpich2 |
1574 |
- !sys-cluster/nullmpi |
1575 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
1576 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
1577 |
- >=sys-apps/hwloc-2.0.2:=[${MULTILIB_USEDEP}] |
1578 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1579 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
1580 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
1581 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
1582 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
1583 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
1584 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
1585 |
- |
1586 |
-RDEPEND="${CDEPEND} |
1587 |
- java? ( >=virtual/jre-1.8:* )" |
1588 |
- |
1589 |
-DEPEND="${CDEPEND} |
1590 |
- java? ( >=virtual/jdk-1.8:* )" |
1591 |
- |
1592 |
-MULTILIB_WRAPPED_HEADERS=( |
1593 |
- /usr/include/mpi.h |
1594 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
1595 |
- /usr/include/openmpi/mpiext/mpiext_cuda_c.h |
1596 |
-) |
1597 |
- |
1598 |
-pkg_setup() { |
1599 |
- fortran-2_pkg_setup |
1600 |
- java-pkg-opt-2_pkg_setup |
1601 |
- |
1602 |
- elog |
1603 |
- elog "OpenMPI has an overwhelming count of configuration options." |
1604 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
1605 |
- elog "specify configure options if you find them necessary." |
1606 |
- elog |
1607 |
-} |
1608 |
- |
1609 |
-src_prepare() { |
1610 |
- default |
1611 |
- |
1612 |
- # Necessary for scalibility, see |
1613 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
1614 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
1615 |
- >> opal/etc/openmpi-mca-params.conf || die |
1616 |
-} |
1617 |
- |
1618 |
-multilib_src_configure() { |
1619 |
- if use java; then |
1620 |
- # We must always build with the right -source and -target |
1621 |
- # flags. Passing flags to javac isn't explicitly supported here |
1622 |
- # but we can cheat by overriding the configure test for javac. |
1623 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
1624 |
- fi |
1625 |
- |
1626 |
- local myconf=( |
1627 |
- --enable-mpi-fortran=$(usex fortran all no) |
1628 |
- --enable-orterun-prefix-by-default |
1629 |
- --enable-pretty-print-stacktrace |
1630 |
- |
1631 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
1632 |
- |
1633 |
- --with-hwloc="${EPREFIX}/usr" |
1634 |
- --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)" |
1635 |
- --with-libltdl="${EPREFIX}/usr" |
1636 |
- --with-libevent="${EPREFIX}/usr" |
1637 |
- --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)" |
1638 |
- |
1639 |
- $(use_enable cxx mpi-cxx) |
1640 |
- --disable-heterogeneous |
1641 |
- $(use_enable ipv6) |
1642 |
- $(use_enable libompitrace) |
1643 |
- $(use_enable peruse) |
1644 |
- $(use_enable romio io-romio) |
1645 |
- |
1646 |
- $(use_with cma) |
1647 |
- |
1648 |
- $(multilib_native_use_enable java mpi-java) |
1649 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) |
1650 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) |
1651 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) |
1652 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) |
1653 |
- |
1654 |
- $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda) |
1655 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) |
1656 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) |
1657 |
- $(multilib_native_use_with openmpi_rm_pbs tm) |
1658 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
1659 |
- ) |
1660 |
- ECONF_SOURCE=${S} econf "${myconf[@]}" |
1661 |
-} |
1662 |
- |
1663 |
-multilib_src_test() { |
1664 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
1665 |
- emake -j1 check |
1666 |
-} |
1667 |
- |
1668 |
-multilib_src_install() { |
1669 |
- default |
1670 |
- |
1671 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
1672 |
- if multilib_is_native_abi && use fortran; then |
1673 |
- mkdir "${T}"/fortran || die |
1674 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
1675 |
- else |
1676 |
- # some fortran files get installed unconditionally |
1677 |
- rm \ |
1678 |
- "${ED}"/usr/include/mpif* \ |
1679 |
- "${ED}"/usr/bin/mpif* \ |
1680 |
- || die |
1681 |
- fi |
1682 |
-} |
1683 |
- |
1684 |
-multilib_src_install_all() { |
1685 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
1686 |
- if use fortran; then |
1687 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
1688 |
- fi |
1689 |
- |
1690 |
- # Remove la files, no static libs are installed and we have pkg-config |
1691 |
- find "${ED}" -name '*.la' -delete || die |
1692 |
- |
1693 |
- if use java; then |
1694 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
1695 |
- java-pkg_dojar "${mpi_jar}" |
1696 |
- # We don't want to install the jar file twice |
1697 |
- # so let's clean after ourselves. |
1698 |
- rm "${mpi_jar}" || die |
1699 |
- fi |
1700 |
- einstalldocs |
1701 |
-} |
1702 |
|
1703 |
diff --git a/sys-cluster/openmpi/openmpi-4.0.7.ebuild b/sys-cluster/openmpi/openmpi-4.0.7.ebuild |
1704 |
deleted file mode 100644 |
1705 |
index 543d4350d094..000000000000 |
1706 |
--- a/sys-cluster/openmpi/openmpi-4.0.7.ebuild |
1707 |
+++ /dev/null |
1708 |
@@ -1,176 +0,0 @@ |
1709 |
-# Copyright 1999-2022 Gentoo Authors |
1710 |
-# Distributed under the terms of the GNU General Public License v2 |
1711 |
- |
1712 |
-EAPI=7 |
1713 |
- |
1714 |
-FORTRAN_NEEDED=fortran |
1715 |
- |
1716 |
-inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib multilib-minimal |
1717 |
- |
1718 |
-MY_P=${P/-mpi} |
1719 |
-S=${WORKDIR}/${MY_P} |
1720 |
- |
1721 |
-IUSE_OPENMPI_FABRICS=" |
1722 |
- openmpi_fabrics_ofed |
1723 |
- openmpi_fabrics_knem" |
1724 |
- |
1725 |
-IUSE_OPENMPI_RM=" |
1726 |
- openmpi_rm_pbs |
1727 |
- openmpi_rm_slurm" |
1728 |
- |
1729 |
-IUSE_OPENMPI_OFED_FEATURES=" |
1730 |
- openmpi_ofed_features_control-hdr-padding |
1731 |
- openmpi_ofed_features_udcm |
1732 |
- openmpi_ofed_features_rdmacm |
1733 |
- openmpi_ofed_features_dynamic-sl" |
1734 |
- |
1735 |
-DESCRIPTION="A high-performance message passing library (MPI)" |
1736 |
-HOMEPAGE="https://www.open-mpi.org" |
1737 |
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
1738 |
- |
1739 |
-LICENSE="BSD" |
1740 |
-SLOT="0" |
1741 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" |
1742 |
-IUSE="cma cuda cxx fortran ipv6 java libompitrace peruse romio |
1743 |
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
1744 |
- |
1745 |
-REQUIRED_USE=" |
1746 |
- openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
1747 |
- openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
1748 |
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
1749 |
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
1750 |
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
1751 |
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
1752 |
- |
1753 |
-CDEPEND=" |
1754 |
- !sys-cluster/mpich |
1755 |
- !sys-cluster/mpich2 |
1756 |
- !sys-cluster/nullmpi |
1757 |
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads] |
1758 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
1759 |
- >=sys-apps/hwloc-2.0.2:=[${MULTILIB_USEDEP}] |
1760 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1761 |
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
1762 |
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core ) |
1763 |
- openmpi_fabrics_knem? ( sys-cluster/knem ) |
1764 |
- openmpi_rm_pbs? ( sys-cluster/torque ) |
1765 |
- openmpi_rm_slurm? ( sys-cluster/slurm ) |
1766 |
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )" |
1767 |
- |
1768 |
-RDEPEND="${CDEPEND} |
1769 |
- java? ( >=virtual/jre-1.8:* )" |
1770 |
- |
1771 |
-DEPEND="${CDEPEND} |
1772 |
- java? ( >=virtual/jdk-1.8:* )" |
1773 |
- |
1774 |
-MULTILIB_WRAPPED_HEADERS=( |
1775 |
- /usr/include/mpi.h |
1776 |
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
1777 |
- /usr/include/openmpi/mpiext/mpiext_cuda_c.h |
1778 |
-) |
1779 |
- |
1780 |
-pkg_setup() { |
1781 |
- fortran-2_pkg_setup |
1782 |
- java-pkg-opt-2_pkg_setup |
1783 |
- |
1784 |
- elog |
1785 |
- elog "OpenMPI has an overwhelming count of configuration options." |
1786 |
- elog "Don't forget the EXTRA_ECONF environment variable can let you" |
1787 |
- elog "specify configure options if you find them necessary." |
1788 |
- elog |
1789 |
-} |
1790 |
- |
1791 |
-src_prepare() { |
1792 |
- default |
1793 |
- |
1794 |
- # Necessary for scalibility, see |
1795 |
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
1796 |
- echo 'oob_tcp_listen_mode = listen_thread' \ |
1797 |
- >> opal/etc/openmpi-mca-params.conf || die |
1798 |
-} |
1799 |
- |
1800 |
-multilib_src_configure() { |
1801 |
- if use java; then |
1802 |
- # We must always build with the right -source and -target |
1803 |
- # flags. Passing flags to javac isn't explicitly supported here |
1804 |
- # but we can cheat by overriding the configure test for javac. |
1805 |
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
1806 |
- fi |
1807 |
- |
1808 |
- local myconf=( |
1809 |
- --enable-mpi-fortran=$(usex fortran all no) |
1810 |
- --enable-orterun-prefix-by-default |
1811 |
- --enable-pretty-print-stacktrace |
1812 |
- |
1813 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
1814 |
- |
1815 |
- --with-hwloc="${EPREFIX}/usr" |
1816 |
- --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)" |
1817 |
- --with-libltdl="${EPREFIX}/usr" |
1818 |
- --with-libevent="${EPREFIX}/usr" |
1819 |
- --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)" |
1820 |
- |
1821 |
- $(use_enable cxx mpi-cxx) |
1822 |
- --disable-heterogeneous |
1823 |
- $(use_enable ipv6) |
1824 |
- $(use_enable libompitrace) |
1825 |
- $(use_enable peruse) |
1826 |
- $(use_enable romio io-romio) |
1827 |
- |
1828 |
- $(use_with cma) |
1829 |
- |
1830 |
- $(multilib_native_use_enable java mpi-java) |
1831 |
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) |
1832 |
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) |
1833 |
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) |
1834 |
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) |
1835 |
- |
1836 |
- $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda) |
1837 |
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) |
1838 |
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) |
1839 |
- $(multilib_native_use_with openmpi_rm_pbs tm) |
1840 |
- $(multilib_native_use_with openmpi_rm_slurm slurm) |
1841 |
- ) |
1842 |
- |
1843 |
- ECONF_SOURCE=${S} econf "${myconf[@]}" |
1844 |
-} |
1845 |
- |
1846 |
-multilib_src_test() { |
1847 |
- # Doesn't work with the default src_test as the dry run (-n) fails. |
1848 |
- emake -j1 check |
1849 |
-} |
1850 |
- |
1851 |
-multilib_src_install() { |
1852 |
- default |
1853 |
- |
1854 |
- # fortran header cannot be wrapped (bug #540508), workaround part 1 |
1855 |
- if multilib_is_native_abi && use fortran; then |
1856 |
- mkdir "${T}"/fortran || die |
1857 |
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
1858 |
- else |
1859 |
- # some fortran files get installed unconditionally |
1860 |
- rm \ |
1861 |
- "${ED}"/usr/include/mpif* \ |
1862 |
- "${ED}"/usr/bin/mpif* \ |
1863 |
- || die |
1864 |
- fi |
1865 |
-} |
1866 |
- |
1867 |
-multilib_src_install_all() { |
1868 |
- # fortran header cannot be wrapped (bug #540508), workaround part 2 |
1869 |
- if use fortran; then |
1870 |
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
1871 |
- fi |
1872 |
- |
1873 |
- # Remove la files, no static libs are installed and we have pkg-config |
1874 |
- find "${ED}" -name '*.la' -delete || die |
1875 |
- |
1876 |
- if use java; then |
1877 |
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
1878 |
- java-pkg_dojar "${mpi_jar}" |
1879 |
- # We don't want to install the jar file twice |
1880 |
- # so let's clean after ourselves. |
1881 |
- rm "${mpi_jar}" || die |
1882 |
- fi |
1883 |
- einstalldocs |
1884 |
-} |