1 |
commit: b394fd7a7350a215a2a935d3ddea5cb7af82e838 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 21 11:32:34 2019 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 21 11:32:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b394fd7a |
7 |
|
8 |
sys-cluster/openmpi: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.64, Repoman-2.3.12 |
11 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/openmpi/Manifest | 1 + |
14 |
sys-cluster/openmpi/openmpi-4.0.1.ebuild | 170 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 171 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest |
18 |
index abcc2e4b8cb..cab90a779c0 100644 |
19 |
--- a/sys-cluster/openmpi/Manifest |
20 |
+++ b/sys-cluster/openmpi/Manifest |
21 |
@@ -11,3 +11,4 @@ DIST openmpi-2.0.4.tar.bz2 8272983 BLAKE2B 7d0a392fbc8c896cdccefb9bf0ff83fbd8db8 |
22 |
DIST openmpi-2.1.6.tar.bz2 8324626 BLAKE2B 4aed4b397c0e0ead24ed5e9bbf45ee8f6719a7566d74405cccf119ddf535891ece91c04cbcad96be5a5d9805c620aa13a1b51c0edd67c049827357e7668008b9 SHA512 f552f47961e040476e7d2949cdd3e5a0b5ad74bea2b6532608117ec893473a160cd368251d1f439fd773f4846950857baf939e7b3586bac2a099495f7bc0e349 |
23 |
DIST openmpi-3.0.3.tar.bz2 9316109 BLAKE2B e67e649917911eff3286c0f3d15e181b30e4ac6061891f6e13c75570368edb943fff55e4d41ffaa4a095b2060c84d24f8c32975758ad4632bae1813accd9f516 SHA512 12bbc5add4160e732ac10f302106c4bc2fa61ef2cde955e1fdd4a7aaad44b022d6babdd4bd529f687bb03fc5e5c3804ba6b1869e9609c9725bc291524c8304d7 |
24 |
DIST openmpi-3.1.3.tar.bz2 9442937 BLAKE2B 40067e1694a106d96e5ba41884a6facec9e605b5afba03ab908e4cf124f35b0691f0ab626e5190cffebc9c28d05b11b5c6401a5aa39ac17ec04650ed29e0976e SHA512 700821df676de5f85ce2793298242dcaea73f585f89540e30999792a568f193545a9f9b2bcb3ea22effa3bf14744531c4eb5fc4c84a8d7bbe5e5fdd76ab3a04a |
25 |
+DIST openmpi-4.0.1.tar.bz2 9838152 BLAKE2B 75657940e37c23fbe88032f116588960c6bcf34c4928d77b45e8fde6fb51e814f521adb6c5155cb588fff9d1b382c2470873d90979a68598ff13e1aa205fc811 SHA512 09f35dc2e44b4f84aab9c5af9d81f90bbdb030e4d90800a5d3ffae88cb32b7faecc9bea0abb113da53c21f73e9d19db68f961f997bc47bdd28d83a87beee0731 |
26 |
|
27 |
diff --git a/sys-cluster/openmpi/openmpi-4.0.1.ebuild b/sys-cluster/openmpi/openmpi-4.0.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8aca8f38042 |
30 |
--- /dev/null |
31 |
+++ b/sys-cluster/openmpi/openmpi-4.0.1.ebuild |
32 |
@@ -0,0 +1,170 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+FORTRAN_NEEDED=fortran |
39 |
+ |
40 |
+inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib multilib-minimal |
41 |
+ |
42 |
+MY_P=${P/-mpi} |
43 |
+S=${WORKDIR}/${MY_P} |
44 |
+ |
45 |
+IUSE_OPENMPI_FABRICS=" |
46 |
+ openmpi_fabrics_ofed |
47 |
+ openmpi_fabrics_knem |
48 |
+ openmpi_fabrics_psm" |
49 |
+ |
50 |
+IUSE_OPENMPI_RM=" |
51 |
+ openmpi_rm_pbs |
52 |
+ openmpi_rm_slurm" |
53 |
+ |
54 |
+IUSE_OPENMPI_OFED_FEATURES=" |
55 |
+ openmpi_ofed_features_control-hdr-padding |
56 |
+ openmpi_ofed_features_udcm |
57 |
+ openmpi_ofed_features_rdmacm |
58 |
+ openmpi_ofed_features_dynamic-sl" |
59 |
+ |
60 |
+DESCRIPTION="A high-performance message passing library (MPI)" |
61 |
+HOMEPAGE="http://www.open-mpi.org" |
62 |
+SRC_URI="http://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2" |
63 |
+LICENSE="BSD" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
66 |
+IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java numa romio |
67 |
+ ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
68 |
+ |
69 |
+REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
70 |
+ openmpi_rm_pbs? ( !openmpi_rm_slurm ) |
71 |
+ openmpi_fabrics_psm? ( openmpi_fabrics_ofed ) |
72 |
+ openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed ) |
73 |
+ openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed ) |
74 |
+ openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed ) |
75 |
+ openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )" |
76 |
+ |
77 |
+CDEPEND=" |
78 |
+ !sys-cluster/mpich |
79 |
+ !sys-cluster/mpich2 |
80 |
+ !sys-cluster/nullmpi |
81 |
+ !sys-cluster/mpiexec |
82 |
+ >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads] |
83 |
+ dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
84 |
+ >=sys-apps/hwloc-2.0.2[${MULTILIB_USEDEP}] |
85 |
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
86 |
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= ) |
87 |
+ elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) ) |
88 |
+ openmpi_fabrics_ofed? ( sys-fabric/ofed:* ) |
89 |
+ openmpi_fabrics_knem? ( sys-cluster/knem ) |
90 |
+ openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* ) |
91 |
+ openmpi_rm_pbs? ( sys-cluster/torque ) |
92 |
+ openmpi_rm_slurm? ( sys-cluster/slurm ) |
93 |
+ openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )" |
94 |
+ |
95 |
+RDEPEND="${CDEPEND} |
96 |
+ java? ( >=virtual/jre-1.6 )" |
97 |
+ |
98 |
+DEPEND="${CDEPEND} |
99 |
+ java? ( >=virtual/jdk-1.6 )" |
100 |
+ |
101 |
+MULTILIB_WRAPPED_HEADERS=( |
102 |
+ /usr/include/mpi.h |
103 |
+ /usr/include/openmpi/ompi/mpi/java/mpiJava.h |
104 |
+) |
105 |
+ |
106 |
+pkg_setup() { |
107 |
+ fortran-2_pkg_setup |
108 |
+ java-pkg-opt-2_pkg_setup |
109 |
+ |
110 |
+ elog |
111 |
+ elog "OpenMPI has an overwhelming count of configuration options." |
112 |
+ elog "Don't forget the EXTRA_ECONF environment variable can let you" |
113 |
+ elog "specify configure options if you find them necessary." |
114 |
+ elog |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ default |
119 |
+ |
120 |
+ # Necessary for scalibility, see |
121 |
+ # http://www.open-mpi.org/community/lists/users/2008/09/6514.php |
122 |
+ echo 'oob_tcp_listen_mode = listen_thread' \ |
123 |
+ >> opal/etc/openmpi-mca-params.conf || die |
124 |
+} |
125 |
+ |
126 |
+multilib_src_configure() { |
127 |
+ if use java; then |
128 |
+ # We must always build with the right -source and -target |
129 |
+ # flags. Passing flags to javac isn't explicitly supported here |
130 |
+ # but we can cheat by overriding the configure test for javac. |
131 |
+ export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)" |
132 |
+ fi |
133 |
+ |
134 |
+ ECONF_SOURCE=${S} econf \ |
135 |
+ --sysconfdir="${EPREFIX}/etc/${PN}" \ |
136 |
+ --enable-pretty-print-stacktrace \ |
137 |
+ --enable-orterun-prefix-by-default \ |
138 |
+ --with-hwloc="${EPREFIX}/usr" \ |
139 |
+ --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)" \ |
140 |
+ --with-libltdl="${EPREFIX}/usr" \ |
141 |
+ --with-libevent="${EPREFIX}/usr" \ |
142 |
+ --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)" \ |
143 |
+ --enable-mpi-fortran=$(usex fortran all no) \ |
144 |
+ $(use_enable cxx mpi-cxx) \ |
145 |
+ $(use_with cma) \ |
146 |
+ $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda) \ |
147 |
+ $(use_enable romio io-romio) \ |
148 |
+ $(use_enable heterogeneous) \ |
149 |
+ $(use_enable ipv6) \ |
150 |
+ $(multilib_native_use_enable java mpi-java) \ |
151 |
+ $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \ |
152 |
+ $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \ |
153 |
+ $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \ |
154 |
+ $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \ |
155 |
+ $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \ |
156 |
+ $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \ |
157 |
+ $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
158 |
+ $(multilib_native_use_with openmpi_rm_pbs tm) \ |
159 |
+ $(multilib_native_use_with openmpi_rm_slurm slurm) |
160 |
+} |
161 |
+ |
162 |
+multilib_src_test() { |
163 |
+ # Doesn't work with the default src_test as the dry run (-n) fails. |
164 |
+ emake -j1 check |
165 |
+} |
166 |
+ |
167 |
+multilib_src_install() { |
168 |
+ default |
169 |
+ |
170 |
+ # fortran header cannot be wrapped (bug #540508), workaround part 1 |
171 |
+ if multilib_is_native_abi && use fortran; then |
172 |
+ mkdir "${T}"/fortran || die |
173 |
+ mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
174 |
+ else |
175 |
+ # some fortran files get installed unconditionally |
176 |
+ rm \ |
177 |
+ "${ED}"usr/include/mpif* \ |
178 |
+ "${ED}"usr/bin/mpif* \ |
179 |
+ "${ED}"usr/bin/oshfort \ |
180 |
+ "${ED}"usr/bin/shmemfort \ |
181 |
+ || die |
182 |
+ fi |
183 |
+} |
184 |
+ |
185 |
+multilib_src_install_all() { |
186 |
+ # fortran header cannot be wrapped (bug #540508), workaround part 2 |
187 |
+ if use fortran; then |
188 |
+ mv "${T}"/fortran/mpif* "${ED}"/usr/include || die |
189 |
+ fi |
190 |
+ |
191 |
+ # Remove la files, no static libs are installed and we have pkg-config |
192 |
+ find "${ED}" -name '*.la' -delete || die |
193 |
+ |
194 |
+ if use java; then |
195 |
+ local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
196 |
+ java-pkg_dojar "${mpi_jar}" |
197 |
+ # We don't want to install the jar file twice |
198 |
+ # so let's clean after ourselves. |
199 |
+ rm "${mpi_jar}" || die |
200 |
+ fi |
201 |
+ einstalldocs |
202 |
+} |