1 |
alexxy 11/07/03 23:57:26 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: openmpi-1.5.3-r2.ebuild |
5 |
Log: |
6 |
[sys-cluster/openmpi] Add slurm support |
7 |
|
8 |
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 sys-cluster/openmpi/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/metadata.xml?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/metadata.xml?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/metadata.xml?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/metadata.xml,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- metadata.xml 1 Jul 2011 21:55:59 -0000 1.9 |
24 |
+++ metadata.xml 3 Jul 2011 23:57:26 -0000 1.10 |
25 |
@@ -12,6 +12,7 @@ |
26 |
<flag name='romio'>Build the ROMIO MPI-IO component</flag> |
27 |
<flag name='mpi-threads'>Enable MPI_THREAD_MULTIPLE</flag> |
28 |
<flag name='sctp'>Enable SCTP support</flag> |
29 |
+ <flag name='slurm'>Add support for SLURM</flag> |
30 |
<flag name='vt'>Enable bundled VampirTrace support</flag> |
31 |
</use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.90 sys-cluster/openmpi/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.90&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.90&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.89&r2=1.90 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v |
45 |
retrieving revision 1.89 |
46 |
retrieving revision 1.90 |
47 |
diff -u -r1.89 -r1.90 |
48 |
--- ChangeLog 2 Jul 2011 16:37:24 -0000 1.89 |
49 |
+++ ChangeLog 3 Jul 2011 23:57:26 -0000 1.90 |
50 |
@@ -1,6 +1,11 @@ |
51 |
# ChangeLog for sys-cluster/openmpi |
52 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.89 2011/07/02 16:37:24 alexxy Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.90 2011/07/03 23:57:26 alexxy Exp $ |
55 |
+ |
56 |
+*openmpi-1.5.3-r2 (03 Jul 2011) |
57 |
+ |
58 |
+ 03 Jul 2011; Alexey Shvetsov <alexxy@g.o> +openmpi-1.5.3-r2.ebuild: |
59 |
+ Add slurm support |
60 |
|
61 |
02 Jul 2011; Alexey Shvetsov <alexxy@g.o> openmpi-1.5.3-r1.ebuild: |
62 |
Fix hwloc location detection |
63 |
|
64 |
|
65 |
|
66 |
1.1 sys-cluster/openmpi/openmpi-1.5.3-r2.ebuild |
67 |
|
68 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.3-r2.ebuild?rev=1.1&view=markup |
69 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.3-r2.ebuild?rev=1.1&content-type=text/plain |
70 |
|
71 |
Index: openmpi-1.5.3-r2.ebuild |
72 |
=================================================================== |
73 |
# Copyright 1999-2011 Gentoo Foundation |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.3-r2.ebuild,v 1.1 2011/07/03 23:57:26 alexxy Exp $ |
76 |
|
77 |
EAPI=4 |
78 |
inherit eutils fortran-2 multilib flag-o-matic toolchain-funcs |
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.5/downloads/${MY_P}.tar.bz2" |
86 |
LICENSE="BSD" |
87 |
SLOT="0" |
88 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
89 |
IUSE="+cxx elibc_FreeBSD fortran heterogeneous infiniband ipv6 mpi-threads pbs |
90 |
romio sctp slurm threads vt" |
91 |
|
92 |
REQUIRED_USE="^^ ( |
93 |
( !slurm !pbs ) |
94 |
( slurm !pbs ) |
95 |
( !slurm pbs ) |
96 |
)" |
97 |
|
98 |
RDEPEND=" |
99 |
fortran? ( virtual/fortran ) |
100 |
pbs? ( sys-cluster/torque ) |
101 |
infiniband? ( sys-infiniband/openib ) |
102 |
sctp? ( net-misc/lksctp-tools ) |
103 |
vt? ( |
104 |
!dev-libs/libotf |
105 |
!app-text/lcdf-typetools |
106 |
) |
107 |
elibc_FreeBSD? ( dev-libs/libexecinfo ) |
108 |
>=sys-apps/hwloc-1.1.1 |
109 |
!sys-cluster/mpich |
110 |
!sys-cluster/lam-mpi |
111 |
!sys-cluster/mpich2 |
112 |
!sys-cluster/mpiexec" |
113 |
DEPEND="${RDEPEND}" |
114 |
|
115 |
pkg_setup() { |
116 |
use fortran && fortran-2_pkg_setup |
117 |
if use mpi-threads; then |
118 |
echo |
119 |
ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
120 |
ewarn "default and officially unsupported by upstream." |
121 |
ewarn "You may stop now and set USE=-mpi-threads" |
122 |
echo |
123 |
fi |
124 |
|
125 |
echo |
126 |
elog "OpenMPI has an overwhelming count of configuration options." |
127 |
elog "Don't forget the EXTRA_ECONF environment variable can let you" |
128 |
elog "specify configure options if you find them necessary." |
129 |
echo |
130 |
} |
131 |
|
132 |
src_prepare() { |
133 |
# Necessary for scalibility, see |
134 |
# http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
135 |
if use threads; then |
136 |
echo 'oob_tcp_listen_mode = listen_thread' \ |
137 |
>> opal/etc/openmpi-mca-params.conf |
138 |
fi |
139 |
|
140 |
epatch "${FILESDIR}"/openmpi-r24328.patch |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
local myconf=( |
145 |
--sysconfdir="${EPREFIX}/etc/${PN}" |
146 |
--enable-pretty-print-stacktrace |
147 |
--enable-orterun-prefix-by-default |
148 |
--with-hwloc="${EPREFIX}/usr" |
149 |
) |
150 |
|
151 |
if use mpi-threads; then |
152 |
myconf+=(--enable-mpi-threads |
153 |
--enable-progress-threads) |
154 |
fi |
155 |
|
156 |
if use fortran; then |
157 |
if [[ $(tc-getFC) =~ g77 ]]; then |
158 |
myconf+=(--disable-mpi-f90) |
159 |
elif [[ $(tc-getFC) =~ if ]]; then |
160 |
# Enabled here as gfortran compile times are huge with this enabled. |
161 |
myconf+=(--with-mpi-f90-size=medium) |
162 |
fi |
163 |
else |
164 |
myconf+=(--disable-mpi-f90 --disable-mpi-f77) |
165 |
fi |
166 |
|
167 |
! use vt && myconf+=(--enable-contrib-no-build=vt) |
168 |
|
169 |
econf "${myconf[@]}" \ |
170 |
$(use_enable cxx mpi-cxx) \ |
171 |
$(use_enable romio io-romio) \ |
172 |
$(use_enable heterogeneous) \ |
173 |
$(use_with pbs tm) \ |
174 |
$(use_with slurm) \ |
175 |
$(use_enable ipv6) \ |
176 |
$(use_with infiniband openib) \ |
177 |
$(use_with sctp sctp) |
178 |
} |
179 |
|
180 |
src_install () { |
181 |
emake DESTDIR="${D}" install || die "make install failed" |
182 |
# From USE=vt see #359917 |
183 |
rm "${D}"/usr/share/libtool &> /dev/null |
184 |
dodoc README AUTHORS NEWS VERSION || die |
185 |
} |
186 |
|
187 |
src_test() { |
188 |
# Doesn't work with the default src_test as the dry run (-n) fails. |
189 |
cd "${S}" |
190 |
emake -j1 check || die "emake check failed" |
191 |
} |