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