Gentoo Archives: gentoo-commits

From: "Justin Bronder (jsbronder)" <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: openmpi-1.8.4.ebuild ChangeLog
Date: Wed, 04 Feb 2015 05:10:22
Message-Id: 20150204051012.1183D1103A@oystercatcher.gentoo.org
1 jsbronder 15/02/04 05:10:12
2
3 Modified: ChangeLog
4 Added: openmpi-1.8.4.ebuild
5 Log:
6 Version bump #535800
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
9
10 Revision Changes Path
11 1.128 sys-cluster/openmpi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.128&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.128&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.127&r2=1.128
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v
20 retrieving revision 1.127
21 retrieving revision 1.128
22 diff -u -r1.127 -r1.128
23 --- ChangeLog 16 Oct 2014 14:59:06 -0000 1.127
24 +++ ChangeLog 4 Feb 2015 05:10:12 -0000 1.128
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/openmpi
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.127 2014/10/16 14:59:06 jsbronder Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.128 2015/02/04 05:10:12 jsbronder Exp $
31 +
32 +*openmpi-1.8.4 (04 Feb 2015)
33 +
34 + 04 Feb 2015; Justin Bronder <jsbronder@g.o> +openmpi-1.8.4.ebuild:
35 + Version bump #535800
36
37 16 Oct 2014; Justin Bronder <jsbronder@g.o> openmpi-1.8.ebuild,
38 openmpi-1.8.1.ebuild, openmpi-1.8.3.ebuild:
39
40
41
42 1.1 sys-cluster/openmpi/openmpi-1.8.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.8.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.8.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openmpi-1.8.4.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.8.4.ebuild,v 1.1 2015/02/04 05:10:12 jsbronder Exp $
52
53 EAPI=5
54
55 FORTRAN_NEEDED=fortran
56
57 inherit cuda eutils flag-o-matic fortran-2 multilib toolchain-funcs versionator
58
59 MY_P=${P/-mpi}
60 S=${WORKDIR}/${MY_P}
61
62 IUSE_OPENMPI_FABRICS="
63 openmpi_fabrics_ofed
64 openmpi_fabrics_knem
65 openmpi_fabrics_open-mx
66 openmpi_fabrics_psm"
67
68 IUSE_OPENMPI_RM="
69 openmpi_rm_pbs
70 openmpi_rm_slurm"
71
72 IUSE_OPENMPI_OFED_FEATURES="
73 openmpi_ofed_features_control-hdr-padding
74 openmpi_ofed_features_connectx-xrc
75 openmpi_ofed_features_udcm
76 openmpi_ofed_features_rdmacm
77 openmpi_ofed_features_dynamic-sl
78 openmpi_ofed_features_failover"
79
80 DESCRIPTION="A high-performance message passing library (MPI)"
81 HOMEPAGE="http://www.open-mpi.org"
82 SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
83 LICENSE="BSD"
84 SLOT="0"
85 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
86 IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads romio threads vt
87 ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
88
89 REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
90 openmpi_rm_pbs? ( !openmpi_rm_slurm )
91 openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
92 openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
93 openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
94 openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
95 openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
96 openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
97 openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
98
99 MPI_UNCLASSED_DEP_STR="
100 vt? (
101 !dev-libs/libotf
102 !app-text/lcdf-typetools
103 )"
104
105 RDEPEND="
106 !sys-cluster/mpich
107 !sys-cluster/mpich2
108 !sys-cluster/mpiexec
109 dev-libs/libevent
110 >=sys-apps/hwloc-1.9.1
111 sys-libs/zlib
112 cuda? ( dev-util/nvidia-cuda-toolkit )
113 elibc_FreeBSD? ( dev-libs/libexecinfo )
114 openmpi_fabrics_ofed? ( sys-infiniband/ofed )
115 openmpi_fabrics_knem? ( sys-cluster/knem )
116 openmpi_fabrics_open-mx? ( sys-cluster/open-mx )
117 openmpi_fabrics_psm? ( sys-infiniband/infinipath-psm )
118 openmpi_rm_pbs? ( sys-cluster/torque )
119 openmpi_rm_slurm? ( sys-cluster/slurm )
120 openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm )
121 "
122 DEPEND="${RDEPEND}"
123
124 pkg_setup() {
125 fortran-2_pkg_setup
126
127 if use mpi-threads; then
128 echo
129 ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
130 ewarn "default and officially unsupported by upstream."
131 ewarn "You may stop now and set USE=-mpi-threads"
132 echo
133 fi
134
135 echo
136 elog "OpenMPI has an overwhelming count of configuration options."
137 elog "Don't forget the EXTRA_ECONF environment variable can let you"
138 elog "specify configure options if you find them necessary."
139 echo
140 }
141
142 src_prepare() {
143 # Necessary for scalibility, see
144 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
145 if use threads; then
146 echo 'oob_tcp_listen_mode = listen_thread' \
147 >> opal/etc/openmpi-mca-params.conf
148 fi
149 }
150
151 src_configure() {
152 local myconf=(
153 --sysconfdir="${EPREFIX}/etc/${PN}"
154 --enable-pretty-print-stacktrace
155 --enable-orterun-prefix-by-default
156 --with-hwloc="${EPREFIX}/usr"
157 )
158
159 if use mpi-threads; then
160 myconf+=(--enable-mpi-threads
161 --enable-opal-multi-threads)
162 fi
163
164 if use fortran; then
165 myconf+=(--enable-mpi-fortran=all)
166 else
167 myconf+=(--enable-mpi-fortran=no)
168 fi
169
170 ! use vt && myconf+=(--enable-contrib-no-build=vt)
171
172 econf "${myconf[@]}" \
173 $(use_enable cxx mpi-cxx) \
174 $(use_with cma) \
175 $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
176 $(use_enable romio io-romio) \
177 $(use_enable heterogeneous) \
178 $(use_enable ipv6) \
179 $(use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
180 $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
181 $(use_with openmpi_fabrics_open-mx mx "${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 emake DESTDIR="${D}" install
195
196 # From USE=vt see #359917
197 rm "${ED}"/usr/share/libtool &> /dev/null
198
199 # Avoid collisions with libevent
200 rm -rf "${ED}"/usr/include/event2 &> /dev/null
201
202 # Remove la files, no static libs are installed and we have pkg-config
203 find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete
204
205 dodoc README AUTHORS NEWS VERSION || die
206 }
207
208 src_test() {
209 # Doesn't work with the default src_test as the dry run (-n) fails.
210 emake -j1 check
211 }