1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
4 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
9 pkgdesc='High performance message passing library (MPI)'
11 url='https://www.open-mpi.org'
12 license=('custom:OpenMPI')
13 depends=(gcc-libs glibc hwloc libevent libnl openpmix zlib)
14 makedepends=(cuda gcc-fortran inetutils valgrind)
17 'gcc-fortran: fortran support'
18 'openssh: for offloading to remote hosts'
19 'perl: for aggregate_profile.pl and profile2mat.pl'
23 libmca_common_monitoring.so
24 libmca_common_ompio.so
29 libmpi_usempi_ignore_tkr.so
35 source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2)
36 sha256sums=('92912e175fd1234368c8730c03f4996fe5942e7479bb1d10059405e7f2b3930d')
37 b2sums=('b020e3530ae5dde7b144e7c33b1a3f26f622526a4b48a97a0956fc6f49bbf9dfd5be9ebeeaf3bdc5168a307507408ba5dd8e2a537148821e1d476678177dc5d6')
42 # TODO: depend on prrte with openmpi >= 5
45 --enable-builtin-atomics \
48 --enable-mpi-fortran=all \
49 --enable-pretty-print-stacktrace \
51 --sysconfdir=/etc/$pkgname \
52 --with-cuda=/opt/cuda \
53 --with-hwloc=external \
54 --with-libevent=external \
55 --with-pmix=external \
58 # prevent excessive overlinking due to libtool
59 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
64 make check -C $pkgname-$pkgver
70 make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
71 install -Dm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"