Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: openmpi-1.6.3.ebuild ChangeLog
Date: Sun, 30 Dec 2012 14:24:15
Message-Id: 20121230142405.C06772171D@flycatcher.gentoo.org
1 xarthisius 12/12/30 14:24:05
2
3 Modified: ChangeLog
4 Added: openmpi-1.6.3.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
9
10 Revision Changes Path
11 1.115 sys-cluster/openmpi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.115&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.115&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.114&r2=1.115
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v
20 retrieving revision 1.114
21 retrieving revision 1.115
22 diff -u -r1.114 -r1.115
23 --- ChangeLog 16 Oct 2012 18:43:05 -0000 1.114
24 +++ ChangeLog 30 Dec 2012 14:24:05 -0000 1.115
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/openmpi
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.114 2012/10/16 18:43:05 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.115 2012/12/30 14:24:05 xarthisius Exp $
30 +
31 +*openmpi-1.6.3 (30 Dec 2012)
32 +
33 + 30 Dec 2012; Kacper Kowalik <xarthisius@g.o> +openmpi-1.6.3.ebuild:
34 + Version bump
35
36 16 Oct 2012; Justin Lecher <jlec@g.o> openmpi-1.4.3.ebuild,
37 openmpi-1.4.4.ebuild, openmpi-1.5.5.ebuild, openmpi-1.6-r1.ebuild,
38
39
40
41 1.1 sys-cluster/openmpi/openmpi-1.6.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.6.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.6.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openmpi-1.6.3.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.6.3.ebuild,v 1.1 2012/12/30 14:24:05 xarthisius Exp $
51
52 EAPI=4
53
54 FORTRAN_NEEDED=fortran
55
56 inherit eutils fortran-2 multilib flag-o-matic toolchain-funcs versionator
57
58 MY_P=${P/-mpi}
59 S=${WORKDIR}/${MY_P}
60
61 IUSE_OPENMPI_FABRICS="
62 openmpi_fabrics_dapl
63 openmpi_fabrics_ofed
64 openmpi_fabrics_knem
65 openmpi_fabrics_open-mx
66 openmpi_fabrics_psm
67 openmpi_fabrics_sctp"
68
69 IUSE_OPENMPI_RM="
70 openmpi_rm_pbs
71 openmpi_rm_slurm"
72
73 IUSE_OPENMPI_OFED_FEATURES="
74 openmpi_ofed_features_control-hdr-padding
75 openmpi_ofed_features_connectx-xrc
76 openmpi_ofed_features_rdmacm
77 openmpi_ofed_features_dynamic-sl
78 openmpi_ofed_features_failover
79 "
80
81 DESCRIPTION="A high-performance message passing library (MPI)"
82 HOMEPAGE="http://www.open-mpi.org"
83 SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
84 LICENSE="BSD"
85 SLOT="0"
86 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux"
87 IUSE="+cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads romio threads vt
88 ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
89
90 REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
91 openmpi_rm_pbs? ( !openmpi_rm_slurm )
92 openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
93 openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
94 openmpi_ofed_features_connectx-xrc? ( 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 RDEPEND="
100 !sys-cluster/mpich2
101 !sys-cluster/mpiexec
102 >=sys-apps/hwloc-1.3
103 elibc_FreeBSD? ( dev-libs/libexecinfo )
104 openmpi_fabrics_dapl? ( sys-infiniband/dapl )
105 openmpi_fabrics_ofed? ( sys-infiniband/ofed )
106 openmpi_fabrics_knem? ( sys-cluster/knem )
107 openmpi_fabrics_open-mx? ( sys-cluster/open-mx )
108 openmpi_fabrics_psm? ( sys-infiniband/infinipath-psm )
109 openmpi_fabrics_sctp? ( net-misc/lksctp-tools )
110 openmpi_rm_pbs? ( sys-cluster/torque )
111 openmpi_rm_slurm? ( sys-cluster/slurm )
112 openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm )
113 vt? (
114 !dev-libs/libotf
115 !app-text/lcdf-typetools
116 )
117 "
118 DEPEND="${RDEPEND}"
119 # TODO: Newer releases of Vampir use otf2 which would resolve the above blockers.
120
121 pkg_setup() {
122 fortran-2_pkg_setup
123 if use mpi-threads; then
124 echo
125 ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
126 ewarn "default and officially unsupported by upstream."
127 ewarn "You may stop now and set USE=-mpi-threads"
128 echo
129 fi
130
131 echo
132 elog "OpenMPI has an overwhelming count of configuration options."
133 elog "Don't forget the EXTRA_ECONF environment variable can let you"
134 elog "specify configure options if you find them necessary."
135 echo
136 }
137
138 src_prepare() {
139 # Necessary for scalibility, see
140 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
141 if use threads; then
142 echo 'oob_tcp_listen_mode = listen_thread' \
143 >> opal/etc/openmpi-mca-params.conf
144 fi
145 }
146
147 src_configure() {
148 local myconf=(
149 --sysconfdir="${EPREFIX}/etc/${PN}"
150 --enable-pretty-print-stacktrace
151 --enable-orterun-prefix-by-default
152 --with-hwloc="${EPREFIX}/usr"
153 )
154
155 if use mpi-threads; then
156 myconf+=(
157 --enable-mpi-thread-multiple
158 --enable-opal-multi-threads
159 )
160 fi
161
162 if use fortran; then
163 if [[ $(tc-getFC) =~ g77 ]]; then
164 myconf+=(--disable-mpi-f90)
165 elif [[ $(tc-getFC) =~ if ]]; then
166 # Enabled here as gfortran compile times are huge with this enabled.
167 myconf+=(--with-mpi-f90-size=medium)
168 fi
169 else
170 myconf+=(--disable-mpi-f90 --disable-mpi-f77)
171 fi
172
173 ! use vt && myconf+=(--enable-contrib-no-build=vt)
174
175 econf "${myconf[@]}" \
176 $(use_enable cxx mpi-cxx) \
177 $(use_enable romio io-romio) \
178 $(use_enable heterogeneous) \
179 $(use_enable ipv6) \
180 $(use_with openmpi_fabrics_dapl udapl "${EPREFIX}"/usr) \
181 $(use_with openmpi_fabrics_ofed openib "${EPREFIX}"/usr) \
182 $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
183 $(use_with openmpi_fabrics_open-mx mx "${EPREFIX}"/usr) \
184 $(use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
185 $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
186 $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
187 $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
188 $(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
189 $(use_enable openmpi_ofed_features_failover btl-openib-failover) \
190 $(use_with openmpi_fabrics_sctp sctp) \
191 $(use_with openmpi_rm_pbs tm) \
192 $(use_with openmpi_rm_slurm slurm)
193 }
194
195 src_install () {
196 emake DESTDIR="${D}" install || die "make install failed"
197 # From USE=vt see #359917
198 rm "${ED}"/usr/share/libtool &> /dev/null
199 dodoc README AUTHORS NEWS VERSION || die
200 }
201
202 src_test() {
203 # Doesn't work with the default src_test as the dry run (-n) fails.
204 emake -j1 check || die "emake check failed"
205 }