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
|
2023-12-29 20:54:01 +00:00
|
|
|
pkgver=4.1.6
|
2024-01-25 00:41:38 +00:00
|
|
|
pkgrel=3
|
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')
|
2023-06-03 19:01:09 +00:00
|
|
|
depends=(
|
|
|
|
gcc-libs
|
|
|
|
glibc
|
|
|
|
hwloc
|
|
|
|
libevent
|
|
|
|
libnl
|
|
|
|
openpmix
|
|
|
|
openssh
|
|
|
|
zlib
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
gcc-fortran
|
|
|
|
valgrind
|
|
|
|
)
|
2022-06-07 12:35:30 +00:00
|
|
|
optdepends=(
|
|
|
|
'gcc-fortran: fortran support'
|
|
|
|
'perl: for aggregate_profile.pl and profile2mat.pl'
|
|
|
|
)
|
|
|
|
provides=(
|
|
|
|
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
|
|
|
|
)
|
2023-06-03 19:01:09 +00:00
|
|
|
source=(
|
2023-12-29 20:54:01 +00:00
|
|
|
https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2)
|
|
|
|
sha256sums=('f740994485516deb63b5311af122c265179f5328a0d857a567b85db00b11e415')
|
|
|
|
b2sums=('4f119e1ed9b8787f0f860295ab1721fe2fd5300b8e182230a9eba3a864680b02bbd30618cc6d798a693a121626fc0ad5f447144d9ba91becb734f1a530d7a23a')
|
2014-09-19 19:29:48 +00:00
|
|
|
|
2014-09-29 15:51:13 +00:00
|
|
|
build() {
|
2023-02-27 23:56:21 +00:00
|
|
|
local configure_options=(
|
|
|
|
--prefix=/usr
|
|
|
|
--enable-builtin-atomics
|
|
|
|
--enable-memchecker
|
|
|
|
--enable-mpi-cxx
|
|
|
|
--enable-mpi-fortran=all
|
|
|
|
--enable-pretty-print-stacktrace
|
|
|
|
--libdir=/usr/lib
|
|
|
|
--sysconfdir=/etc/$pkgname
|
|
|
|
--with-hwloc=external
|
|
|
|
--with-libevent=external
|
|
|
|
--with-pmix=external
|
|
|
|
--with-valgrind
|
|
|
|
)
|
2022-06-07 12:35:30 +00:00
|
|
|
cd $pkgname-$pkgver
|
2014-09-19 19:29:48 +00:00
|
|
|
|
2024-01-25 00:41:38 +00:00
|
|
|
# set environment variables for reproducible build
|
|
|
|
# see https://github.com/open-mpi/ompi/blob/main/docs/release-notes/general.rst
|
|
|
|
export HOSTNAME=buildhost
|
|
|
|
export USER=builduser
|
|
|
|
|
2022-06-07 12:35:30 +00:00
|
|
|
# TODO: depend on prrte with openmpi >= 5
|
2023-12-29 20:54:01 +00:00
|
|
|
# TODO: remove ac_cv_func_sem_open=no when there is a glibc release fixing https://sourceware.org/bugzilla/show_bug.cgi?id=30789
|
|
|
|
ac_cv_func_sem_open=no ./configure "${configure_options[@]}"
|
2022-06-07 12:35:30 +00:00
|
|
|
# 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:
|