1 |
commit: e2e216fe4a9752550ce4b58cb385e13f8735d895 |
2 |
Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 23 21:49:52 2015 +0000 |
4 |
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 23 21:50:37 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2e216fe |
7 |
|
8 |
sys-cluster/openmpi: bump 1.10.0 |
9 |
|
10 |
bug 561226 |
11 |
|
12 |
Package-Manager: portage-2.2.20.1 |
13 |
|
14 |
sys-cluster/openmpi/Manifest | 1 + |
15 |
sys-cluster/openmpi/openmpi-1.10.0.ebuild | 180 ++++++++++++++++++++++++++++++ |
16 |
2 files changed, 181 insertions(+) |
17 |
|
18 |
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest |
19 |
index 7d0a070..8101434 100644 |
20 |
--- a/sys-cluster/openmpi/Manifest |
21 |
+++ b/sys-cluster/openmpi/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
+DIST openmpi-1.10.0.tar.bz2 13207009 SHA256 26b432ce8dcbad250a9787402f2c999ecb6c25695b00c9c6ee05a306c78b6490 SHA512 62966f1e8aca162040659d4f774f17b686a19a6eecd272d345eb882a88fcfe00e768316b047bfb6b1653b3d947e355266b702eba5cf0e783f799835d384a4823 WHIRLPOOL fa60102708c10c9dd07ed8d912b7f54be79246db0c6d20774c466cf749eb2b088da8a187be0a6be38fa0eb528314b0a1210ea77911ec09504c3e6cc4d532ac44 |
24 |
DIST openmpi-1.4.3.tar.bz2 6626909 SHA256 220b72b1c7ee35469ff74b4cfdbec457158ac6894635143a33e9178aa3981015 SHA512 c33d5e019ba0b080aa34ecfa085182349da806e4bff26c1bf4dbdc8fb3f8f3c38899b9d96d671e1ae337b523ac9d634ae25c49d9af6eef2bc340c29dba75b1b8 WHIRLPOOL 92349d7bd16ff6e8563df602c215ce98ce5624b38a2975c13832d5b9504691c844206acad4c45376fe53e0116fe591782a3e5f8a132c4ac18ae793470d57db55 |
25 |
DIST openmpi-1.4.5.tar.bz2 6643760 SHA256 a3857bc69b7d5258cf7fc1ed1581d9ac69110f5c17976b949cb7ec789aae462d SHA512 f89922345cde8978483e397e9016103626db3f1787f9afccaf0f60d59caa2a4409b47b01ac221d60e24e241f2afecb636ca89688bf326dc0ca5c817de96b3e99 WHIRLPOOL 2008bd952f9cc93ead6508267f5a45ee6d9ebf9136e35e25b798400d162173514da73349518bfada4777471c32d315e8556bbee8847a5268719d6b32fd0fd811 |
26 |
DIST openmpi-1.6.5.tar.bz2 10943881 SHA256 fe37bab89b5ef234e0ac82dc798282c2ab08900bf564a1ec27239d3f1ad1fc85 SHA512 b0ede0264cd9263b8ba59ec51d17ad47b5f20d49d219ca05f7c396d608398d517b2023a46a2535fd6191160d709e4805c4de436dcfee56eda287383bd69f9652 WHIRLPOOL d0288677827c1deba17295ee1b69cd21da294ac314cc49404389b4c286384f9f2f229cae4c4fd62511e7f20abc510998642d6a2edfac3f16f83078f474f8e735 |
27 |
|
28 |
diff --git a/sys-cluster/openmpi/openmpi-1.10.0.ebuild b/sys-cluster/openmpi/openmpi-1.10.0.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..54f21ea |
31 |
--- /dev/null |
32 |
+++ b/sys-cluster/openmpi/openmpi-1.10.0.ebuild |
33 |
@@ -0,0 +1,180 @@ |
34 |
+# Copyright 1999-2015 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+FORTRAN_NEEDED=fortran |
41 |
+ |
42 |
+inherit cuda eutils flag-o-matic fortran-2 java-pkg-opt-2 multilib toolchain-funcs versionator |
43 |
+ |
44 |
+MY_P=${P/-mpi} |
45 |
+S=${WORKDIR}/${MY_P} |
46 |
+ |
47 |
+IUSE_OPENMPI_FABRICS=" |
48 |
+ openmpi_fabrics_ofed |
49 |
+ openmpi_fabrics_knem |
50 |
+ openmpi_fabrics_psm" |
51 |
+ |
52 |
+IUSE_OPENMPI_RM=" |
53 |
+ openmpi_rm_pbs |
54 |
+ openmpi_rm_slurm" |
55 |
+ |
56 |
+IUSE_OPENMPI_OFED_FEATURES=" |
57 |
+ openmpi_ofed_features_control-hdr-padding |
58 |
+ openmpi_ofed_features_connectx-xrc |
59 |
+ openmpi_ofed_features_udcm |
60 |
+ openmpi_ofed_features_rdmacm |
61 |
+ openmpi_ofed_features_dynamic-sl |
62 |
+ openmpi_ofed_features_failover" |
63 |
+ |
64 |
+DESCRIPTION="A high-performance message passing library (MPI)" |
65 |
+HOMEPAGE="http://www.open-mpi.org" |
66 |
+SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2" |
67 |
+LICENSE="BSD" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" |
70 |
+IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads vt |
71 |
+ ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
72 |
+ |
73 |
+REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
74 |
+ openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
75 |
+ openmpi_fabrics_psm? ( openmpi_fabrics_ofed ) |
76 |
+ openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
77 |
+ openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed ) |
78 |
+ openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
79 |
+ openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
80 |
+ openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed ) |
81 |
+ openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )" |
82 |
+ |
83 |
+MPI_UNCLASSED_DEP_STR=" |
84 |
+ vt? ( |
85 |
+ !dev-libs/libotf |
86 |
+ !app-text/lcdf-typetools |
87 |
+ )" |
88 |
+ |
89 |
+CDEPEND=" |
90 |
+ !sys-cluster/mpich |
91 |
+ !sys-cluster/mpich2 |
92 |
+ !sys-cluster/mpiexec |
93 |
+ dev-libs/libevent |
94 |
+ dev-libs/libltdl:0 |
95 |
+ >=sys-apps/hwloc-1.9.1[numa?] |
96 |
+ sys-libs/zlib |
97 |
+ cuda? ( dev-util/nvidia-cuda-toolkit ) |
98 |
+ elibc_FreeBSD? ( dev-libs/libexecinfo ) |
99 |
+ openmpi_fabrics_ofed? ( sys-infiniband/ofed:* ) |
100 |
+ openmpi_fabrics_knem? ( sys-cluster/knem ) |
101 |
+ openmpi_fabrics_psm? ( sys-infiniband/infinipath-psm:* ) |
102 |
+ openmpi_rm_pbs? ( sys-cluster/torque ) |
103 |
+ openmpi_rm_slurm? ( sys-cluster/slurm ) |
104 |
+ openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm:* )" |
105 |
+ |
106 |
+RDEPEND="${CDEPEND} |
107 |
+ java? ( >=virtual/jre-1.6 )" |
108 |
+ |
109 |
+DEPEND="${CDEPEND} |
110 |
+ java? ( >=virtual/jdk-1.6 )" |
111 |
+ |
112 |
+pkg_setup() { |
113 |
+ fortran-2_pkg_setup |
114 |
+ java-pkg-opt-2_pkg_setup |
115 |
+ |
116 |
+ if use mpi-threads; then |
117 |
+ echo |
118 |
+ ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
119 |
+ ewarn "default and officially unsupported by upstream." |
120 |
+ ewarn "You may stop now and set USE=-mpi-threads" |
121 |
+ echo |
122 |
+ fi |
123 |
+ |
124 |
+ echo |
125 |
+ elog "OpenMPI has an overwhelming count of configuration options." |
126 |
+ elog "Don't forget the EXTRA_ECONF environment variable can let you" |
127 |
+ elog "specify configure options if you find them necessary." |
128 |
+ echo |
129 |
+} |
130 |
+ |
131 |
+src_prepare() { |
132 |
+ # Necessary for scalibility, see |
133 |
+ # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
134 |
+ if use threads; then |
135 |
+ echo 'oob_tcp_listen_mode = listen_thread' \ |
136 |
+ >> opal/etc/openmpi-mca-params.conf |
137 |
+ fi |
138 |
+} |
139 |
+ |
140 |
+src_configure() { |
141 |
+ local myconf=( |
142 |
+ --sysconfdir="${EPREFIX}/etc/${PN}" |
143 |
+ --enable-pretty-print-stacktrace |
144 |
+ --enable-orterun-prefix-by-default |
145 |
+ --with-hwloc="${EPREFIX}/usr" |
146 |
+ --with-libltdl="${EPREFIX}/usr" |
147 |
+ ) |
148 |
+ |
149 |
+ if use fortran; then |
150 |
+ myconf+=(--enable-mpi-fortran=all) |
151 |
+ else |
152 |
+ myconf+=(--enable-mpi-fortran=no) |
153 |
+ fi |
154 |
+ |
155 |
+ if use java; then |
156 |
+ # We must always build with the right -source and -target |
157 |
+ # flags. Passing flags to javac isn't explicitly supported here |
158 |
+ # but we can cheat by overriding the configure test for javac. |
159 |
+ export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
160 |
+ fi |
161 |
+ |
162 |
+ ! use vt && myconf+=(--enable-contrib-no-build=vt) |
163 |
+ |
164 |
+ econf "${myconf[@]}" \ |
165 |
+ $(use_enable cxx mpi-cxx) \ |
166 |
+ $(use_with cma) \ |
167 |
+ $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
168 |
+ $(use_enable romio io-romio) \ |
169 |
+ $(use_enable heterogeneous) \ |
170 |
+ $(use_enable ipv6) \ |
171 |
+ $(use_enable java) \ |
172 |
+ $(use_enable java mpi-java) \ |
173 |
+ $(use_enable mpi-threads mpi-thread-multiple) \ |
174 |
+ $(use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
175 |
+ $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
176 |
+ $(use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \ |
177 |
+ $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
178 |
+ $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \ |
179 |
+ $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
180 |
+ $(use_enable openmpi_ofed_features_udcm openib-udcm) \ |
181 |
+ $(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
182 |
+ $(use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
183 |
+ $(use_with openmpi_rm_pbs tm) \ |
184 |
+ $(use_with openmpi_rm_slurm slurm) |
185 |
+} |
186 |
+ |
187 |
+src_install () { |
188 |
+ default |
189 |
+ |
190 |
+ # From USE=vt see #359917 |
191 |
+ rm "${ED}"/usr/share/libtool &> /dev/null |
192 |
+ |
193 |
+ # Avoid collisions with libevent |
194 |
+ rm -rf "${ED}"/usr/include/event2 &> /dev/null |
195 |
+ |
196 |
+ # Remove la files, no static libs are installed and we have pkg-config |
197 |
+ find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete |
198 |
+ |
199 |
+ if use java; then |
200 |
+ local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
201 |
+ java-pkg_dojar "${mpi_jar}" |
202 |
+ # We don't want to install the jar file twice |
203 |
+ # so let's clean after ourselves. |
204 |
+ rm "${mpi_jar}" || die |
205 |
+ fi |
206 |
+ |
207 |
+ dodoc README AUTHORS NEWS VERSION || die |
208 |
+} |
209 |
+ |
210 |
+src_test() { |
211 |
+ # Doesn't work with the default src_test as the dry run (-n) fails. |
212 |
+ emake -j1 check |
213 |
+} |