1 |
jsbronder 08/09/12 14:34:03 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: openmpi-1.2.7-r1.ebuild |
5 |
Log: |
6 |
Clean up the misleading usage of USE=threads by separating the safe and experimental portions. See #237435. Thanks to kyron (Eric Thibodeau) for the report and patch. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.33 sys-cluster/openmpi/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.33&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.33&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.32&r2=1.33 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v |
19 |
retrieving revision 1.32 |
20 |
retrieving revision 1.33 |
21 |
diff -u -r1.32 -r1.33 |
22 |
--- ChangeLog 28 Jul 2008 20:46:59 -0000 1.32 |
23 |
+++ ChangeLog 12 Sep 2008 14:34:02 -0000 1.33 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-cluster/openmpi |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.32 2008/07/28 20:46:59 pchrist Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.33 2008/09/12 14:34:02 jsbronder Exp $ |
29 |
+ |
30 |
+*openmpi-1.2.7-r1 (12 Sep 2008) |
31 |
+ |
32 |
+ 12 Sep 2008; Justin Bronder <jsbronder@g.o> metadata.xml, |
33 |
+ +openmpi-1.2.7-r1.ebuild: |
34 |
+ Clean up the misleading usage of USE=threads by separating the safe and |
35 |
+ experimental portions. See #237435. Thanks to kyron (Eric Thibodeau) for the |
36 |
+ report and patch. |
37 |
|
38 |
28 Jul 2008; Panagiotis Christopoulos <pchrist@g.o> metadata.xml: |
39 |
Update metadata.xml to include USE flag descriptions. Entries taken from |
40 |
|
41 |
|
42 |
|
43 |
1.5 sys-cluster/openmpi/metadata.xml |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/metadata.xml?rev=1.5&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/metadata.xml?rev=1.5&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/metadata.xml?r1=1.4&r2=1.5 |
48 |
|
49 |
Index: metadata.xml |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/metadata.xml,v |
52 |
retrieving revision 1.4 |
53 |
retrieving revision 1.5 |
54 |
diff -u -r1.4 -r1.5 |
55 |
--- metadata.xml 28 Jul 2008 20:46:59 -0000 1.4 |
56 |
+++ metadata.xml 12 Sep 2008 14:34:02 -0000 1.5 |
57 |
@@ -12,5 +12,6 @@ |
58 |
<flag name='romio'>Build the ROMIO MPI-IO component</flag> |
59 |
<flag name='smp'>Enable smp locks in atomic ops. Recommended for |
60 |
SMP/multi-threaded environments.</flag> |
61 |
+ <flag name='mpi-threads'>Enable MPI_THREAD_MULTIPLE</flag> |
62 |
</use> |
63 |
</pkgmetadata> |
64 |
|
65 |
|
66 |
|
67 |
1.1 sys-cluster/openmpi/openmpi-1.2.7-r1.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/openmpi-1.2.7-r1.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/openmpi/openmpi-1.2.7-r1.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: openmpi-1.2.7-r1.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2008 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.2.7-r1.ebuild,v 1.1 2008/09/12 14:34:02 jsbronder Exp $ |
77 |
|
78 |
inherit eutils multilib flag-o-matic toolchain-funcs fortran |
79 |
|
80 |
MY_P=${P/-mpi} |
81 |
S=${WORKDIR}/${MY_P} |
82 |
|
83 |
DESCRIPTION="A high-performance message passing library (MPI)" |
84 |
HOMEPAGE="http://www.open-mpi.org" |
85 |
SRC_URI="http://www.open-mpi.org/software/ompi/v1.2/downloads/${MY_P}.tar.bz2" |
86 |
LICENSE="BSD" |
87 |
SLOT="0" |
88 |
RESTRICT="mpi-threads? ( test )" |
89 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
90 |
IUSE="fortran heterogeneous ipv6 mpi-threads nocxx pbs romio threads" |
91 |
RDEPEND="pbs? ( sys-cluster/torque ) |
92 |
!sys-cluster/mpich |
93 |
!sys-cluster/lam-mpi |
94 |
!sys-cluster/mpich2" |
95 |
DEPEND="${RDEPEND}" |
96 |
|
97 |
pkg_setup() { |
98 |
if use mpi-threads; then |
99 |
ewarn |
100 |
ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
101 |
ewarn "default and officially unsupported by upstream." |
102 |
ewarn "You may stop now and set USE=-mpi-threads" |
103 |
ewarn |
104 |
epause 5 |
105 |
fi |
106 |
|
107 |
elog |
108 |
elog "OpenMPI has an overwhelming count of configuration options." |
109 |
elog "Don't forget the EXTRA_ECONF environment variable can let you" |
110 |
elog "specify configure options if you find them necessary." |
111 |
elog |
112 |
|
113 |
if use fortran; then |
114 |
FORTRAN="g77 gfortran ifc" |
115 |
fortran_pkg_setup |
116 |
fi |
117 |
} |
118 |
|
119 |
src_unpack() { |
120 |
unpack ${A} |
121 |
cd "${S}" |
122 |
|
123 |
# Necessary for scalibility, see |
124 |
# http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
125 |
if use threads; then |
126 |
echo 'oob_tcp_listen_mode = listen_thread' \ |
127 |
>> opal/etc/openmpi-mca-params.conf |
128 |
fi |
129 |
} |
130 |
|
131 |
src_compile() { |
132 |
local myconf=" |
133 |
--sysconfdir=/etc/${PN} |
134 |
--without-xgrid |
135 |
--enable-pretty-print-stacktrace |
136 |
--enable-orterun-prefix-by-default |
137 |
--without-slurm" |
138 |
|
139 |
if use mpi-threads; then |
140 |
myconf="${myconf} |
141 |
--enable-mpi-threads |
142 |
--with-progress-threads" |
143 |
fi |
144 |
|
145 |
if use fortran; then |
146 |
if [[ "${FORTRANC}" = "g77" ]]; then |
147 |
myconf="${myconf} --disable-mpi-f90" |
148 |
elif [[ "${FORTRANC}" = "gfortran" ]]; then |
149 |
# Because that's just a pain in the butt. |
150 |
myconf="${myconf} --with-wrapper-fflags=-I/usr/include" |
151 |
elif [[ "${FORTRANC}" = if* ]]; then |
152 |
# Enabled here as gfortran compile times are huge with this enabled. |
153 |
myconf="${myconf} --with-mpi-f90-size=medium" |
154 |
fi |
155 |
else |
156 |
myconf="${myconf} |
157 |
--disable-mpi-f90 |
158 |
--disable-mpi-f77" |
159 |
fi |
160 |
|
161 |
econf ${myconf} \ |
162 |
$(use_enable !nocxx mpi-cxx) \ |
163 |
$(use_enable romio io-romio) \ |
164 |
$(use_enable heterogeneous) \ |
165 |
$(use_with pbs tm) \ |
166 |
$(use_enable ipv6) \ |
167 |
|| die "econf failed" |
168 |
|
169 |
emake || die "emake failed" |
170 |
} |
171 |
|
172 |
src_install () { |
173 |
emake DESTDIR="${D}" install || die "make install failed" |
174 |
dodoc README AUTHORS NEWS VERSION |
175 |
} |
176 |
|
177 |
src_test() { |
178 |
# Doesn't work with the default src_test as the dry run (-n) fails. |
179 |
cd "${S}" |
180 |
emake -j1 check || die "emake check failed" |
181 |
} |