2017-09-13 19:28:17 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
2022-06-07 12:35:30 +00:00
|
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
2017-09-13 19:28:17 +00:00
|
|
|
# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
|
2014-09-19 19:29:48 +00:00
|
|
|
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org
|
2022-06-07 12:35:30 +00:00
|
|
|
# - remove make/optdepend on cuda and configure option
|
2014-09-19 19:29:48 +00:00
|
|
|
|
|
|
|
pkgname=openmpi
|
2022-06-07 12:35:30 +00:00
|
|
|
pkgver=4.1.4
|
2022-08-29 18:01:31 +00:00
|
|
|
pkgrel=2
|
2014-09-19 19:29:48 +00:00
|
|
|
pkgdesc='High performance message passing library (MPI)'
|
2022-06-07 12:35:30 +00:00
|
|
|
arch=(x86_64)
|
2017-09-13 19:28:17 +00:00
|
|
|
url='https://www.open-mpi.org'
|
|
|
|
license=('custom:OpenMPI')
|
2022-06-07 12:35:30 +00:00
|
|
|
depends=(gcc-libs glibc hwloc libevent libnl openpmix zlib)
|
|
|
|
makedepends=(gcc-fortran inetutils valgrind)
|
|
|
|
optdepends=(
|
|
|
|
'gcc-fortran: fortran support'
|
|
|
|
'openssh: for offloading to remote hosts'
|
|
|
|
'perl: for aggregate_profile.pl and profile2mat.pl'
|
|
|
|
)
|
|
|
|
provides=(
|
|
|
|
libmca_common_cuda.so
|
|
|
|
libmca_common_monitoring.so
|
|
|
|
libmca_common_ompio.so
|
|
|
|
libmca_common_sm.so
|
|
|
|
libmpi.so
|
|
|
|
libmpi_cxx.so
|
|
|
|
libmpi_mpifh.so
|
|
|
|
libmpi_usempi_ignore_tkr.so
|
|
|
|
libmpi_usempif08.so
|
|
|
|
libompitrace.so
|
|
|
|
libopen-pal.so
|
|
|
|
libopen-rte.so
|
|
|
|
)
|
|
|
|
options=(debug)
|
|
|
|
source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2)
|
|
|
|
sha256sums=('92912e175fd1234368c8730c03f4996fe5942e7479bb1d10059405e7f2b3930d')
|
|
|
|
b2sums=('b020e3530ae5dde7b144e7c33b1a3f26f622526a4b48a97a0956fc6f49bbf9dfd5be9ebeeaf3bdc5168a307507408ba5dd8e2a537148821e1d476678177dc5d6')
|
2014-09-19 19:29:48 +00:00
|
|
|
|
2014-09-29 15:51:13 +00:00
|
|
|
build() {
|
2022-06-07 12:35:30 +00:00
|
|
|
cd $pkgname-$pkgver
|
2014-09-19 19:29:48 +00:00
|
|
|
|
2022-06-07 12:35:30 +00:00
|
|
|
# TODO: depend on prrte with openmpi >= 5
|
2021-03-21 17:16:27 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2017-09-13 19:28:17 +00:00
|
|
|
--enable-builtin-atomics \
|
2022-06-07 12:35:30 +00:00
|
|
|
--enable-memchecker \
|
2017-09-13 19:28:17 +00:00
|
|
|
--enable-mpi-cxx \
|
2022-06-07 12:35:30 +00:00
|
|
|
--enable-mpi-fortran=all \
|
2017-09-13 19:28:17 +00:00
|
|
|
--enable-pretty-print-stacktrace \
|
2022-06-07 12:35:30 +00:00
|
|
|
--libdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc/$pkgname \
|
|
|
|
--with-hwloc=external \
|
|
|
|
--with-libevent=external \
|
|
|
|
--with-pmix=external \
|
|
|
|
--with-valgrind \
|
|
|
|
--without-slurm
|
|
|
|
|
|
|
|
# prevent excessive overlinking due to libtool
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make V=1
|
2014-09-19 19:29:48 +00:00
|
|
|
}
|
|
|
|
|
2014-09-29 15:51:13 +00:00
|
|
|
check() {
|
2022-06-07 12:35:30 +00:00
|
|
|
make check -C $pkgname-$pkgver
|
2014-09-29 15:51:13 +00:00
|
|
|
}
|
|
|
|
|
2014-09-19 19:29:48 +00:00
|
|
|
package() {
|
2022-06-07 12:35:30 +00:00
|
|
|
depends+=(libpmix.so)
|
2014-09-19 19:29:48 +00:00
|
|
|
|
2022-06-07 12:35:30 +00:00
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
|
|
|
|
install -Dm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
2014-09-19 19:29:48 +00:00
|
|
|
}
|
2017-09-13 19:28:17 +00:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|