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 openssh zlib)
14 makedepends=(cuda gcc-fortran inetutils valgrind)
17 'gcc-fortran: fortran support'
18 'perl: for aggregate_profile.pl and profile2mat.pl'
22 libmca_common_monitoring.so
23 libmca_common_ompio.so
28 libmpi_usempi_ignore_tkr.so
34 source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2)
35 sha256sums=('a640986bc257389dd379886fdae6264c8cfa56bc98b71ce3ae3dfbd8ce61dbe3')
36 b2sums=('135a8373ed6173b7a94def18e3b964c6b6050c909382e0dbb1898a6d261ae428931358121ef6d325d303f4f510017a94970f7c66b280a5fc460365821f36dece')
39 local configure_options=(
41 --enable-builtin-atomics
44 --enable-mpi-fortran=all
45 --enable-pretty-print-stacktrace
47 --sysconfdir=/etc/$pkgname
50 --with-libevent=external
56 # TODO: depend on prrte with openmpi >= 5
57 ./configure "${configure_options[@]}"
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/"