Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: openmpi-1.6.ebuild ChangeLog
Date: Tue, 29 May 2012 15:53:15
Message-Id: 20120529155305.2AA6A2004B@flycatcher.gentoo.org
1 alexxy 12/05/29 15:53:05
2
3 Modified: ChangeLog
4 Added: openmpi-1.6.ebuild
5 Log:
6 [sys-cluster/openmpi] Version bump
7
8 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.105 sys-cluster/openmpi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.105&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.105&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.104&r2=1.105
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v
20 retrieving revision 1.104
21 retrieving revision 1.105
22 diff -u -r1.104 -r1.105
23 --- ChangeLog 19 Apr 2012 20:15:34 -0000 1.104
24 +++ ChangeLog 29 May 2012 15:53:05 -0000 1.105
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.104 2012/04/19 20:15:34 alexxy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.105 2012/05/29 15:53:05 alexxy Exp $
30 +
31 +*openmpi-1.6 (29 May 2012)
32 +
33 + 29 May 2012; Alexey Shvetsov <alexxy@g.o> +openmpi-1.6.ebuild:
34 + [sys-cluster/openmpi] Version bump
35
36 19 Apr 2012; Alexey Shvetsov <alexxy@g.o> openmpi-1.5.5.ebuild:
37 [sys-cluster/openmpi] Add missing use conditional dep
38
39
40
41 1.1 sys-cluster/openmpi/openmpi-1.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openmpi-1.6.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.ebuild,v 1.1 2012/05/29 15:53:05 alexxy Exp $
51
52 EAPI=4
53 inherit eutils fortran-2 multilib flag-o-matic toolchain-funcs versionator
54
55 MY_P=${P/-mpi}
56 S=${WORKDIR}/${MY_P}
57
58 IUSE_OPENMPI_FABRICS="
59 openmpi_fabrics_dapl
60 openmpi_fabrics_ofed
61 openmpi_fabrics_knem
62 openmpi_fabrics_open-mx
63 openmpi_fabrics_psm
64 openmpi_fabrics_sctp"
65
66 IUSE_OPENMPI_RM="
67 openmpi_rm_pbs
68 openmpi_rm_slurm"
69
70 IUSE_OPENMPI_OFED_FEATURES="
71 openmpi_ofed_features_control-hdr-padding
72 openmpi_ofed_features_connectx-xrc
73 openmpi_ofed_features_rdmacm
74 openmpi_ofed_features_dynamic-sl
75 openmpi_ofed_features_failover
76 "
77
78 DESCRIPTION="A high-performance message passing library (MPI)"
79 HOMEPAGE="http://www.open-mpi.org"
80 SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
81 LICENSE="BSD"
82 SLOT="0"
83 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
84 IUSE="+cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads romio threads vt
85 ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
86
87 REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
88 openmpi_rm_pbs? ( !openmpi_rm_slurm )
89 openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
90 openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
91 openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
92 openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
93 openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
94 openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
95
96 RDEPEND="
97 !sys-cluster/mpich
98 !sys-cluster/lam-mpi
99 !sys-cluster/mpich2
100 !sys-cluster/mpiexec
101 >=sys-apps/hwloc-1.3
102 elibc_FreeBSD? ( dev-libs/libexecinfo )
103 openmpi_fabrics_dapl? ( sys-infiniband/dapl )
104 openmpi_fabrics_ofed? ( sys-infiniband/ofed )
105 openmpi_fabrics_knem? ( sys-cluster/knem )
106 openmpi_fabrics_open-mx? ( sys-cluster/open-mx )
107 openmpi_fabrics_psm? ( sys-infiniband/infinipath-psm )
108 openmpi_fabrics_sctp? ( net-misc/lksctp-tools )
109 openmpi_rm_pbs? ( sys-cluster/torque )
110 openmpi_rm_slurm? ( sys-cluster/slurm )
111 openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm )
112 fortran? ( virtual/fortran )
113 vt? (
114 !dev-libs/libotf
115 !app-text/lcdf-typetools
116 )
117 "
118 DEPEND="${RDEPEND}"
119
120 pkg_setup() {
121 use fortran && fortran-2_pkg_setup
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 )
153
154 if use mpi-threads; then
155 myconf+=(
156 --enable-mpi-thread-multiple
157 --enable-opal-multi-threads
158 )
159 fi
160
161 if use fortran; then
162 if [[ $(tc-getFC) =~ g77 ]]; then
163 myconf+=(--disable-mpi-f90)
164 elif [[ $(tc-getFC) =~ if ]]; then
165 # Enabled here as gfortran compile times are huge with this enabled.
166 myconf+=(--with-mpi-f90-size=medium)
167 fi
168 else
169 myconf+=(--disable-mpi-f90 --disable-mpi-f77)
170 fi
171
172 ! use vt && myconf+=(--enable-contrib-no-build=vt)
173
174 econf "${myconf[@]}" \
175 $(use_enable cxx mpi-cxx) \
176 $(use_enable romio io-romio) \
177 $(use_enable heterogeneous) \
178 $(use_enable ipv6) \
179 $(use_with openmpi_fabrics_dapl udapl "${EPREFIX}"/usr) \
180 $(use_with openmpi_fabrics_ofed openib "${EPREFIX}"/usr) \
181 $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
182 $(use_with openmpi_fabrics_open-mx mx "${EPREFIX}"/usr) \
183 $(use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
184 $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
185 $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
186 $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
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_fabrics_sctp sctp) \
190 $(use_with openmpi_rm_pbs tm) \
191 $(use_with openmpi_rm_slurm slurm)
192 }
193
194 src_install () {
195 emake DESTDIR="${D}" install || die "make install failed"
196 # From USE=vt see #359917
197 rm "${ED}"/usr/share/libtool &> /dev/null
198 dodoc README AUTHORS NEWS VERSION || die
199 }
200
201 src_test() {
202 # Doesn't work with the default src_test as the dry run (-n) fails.
203 emake -j1 check || die "emake check failed"
204 }