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