41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Description: High performance message passing library (MPI)
|
|
# URL: https://www.open-mpi.org
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: eudev gcc-fortran hwloc libevent libnl
|
|
# Optional: cuda
|
|
|
|
name=openmpi
|
|
version=5.0.2
|
|
release=1
|
|
source=(https://www.open-mpi.org/software/ompi/v${version%.*}/downloads/$name-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc/$name \
|
|
--enable-mpi-fortran=all \
|
|
--libdir=/usr/lib/$name \
|
|
--with-hwloc=/usr \
|
|
--enable-builtin-atomics \
|
|
--enable-pretty-print-stacktrace \
|
|
--enable-ipv6 \
|
|
--enable-mpi1-compatibility \
|
|
--with-sge \
|
|
--without-slurm \
|
|
FC=/usr/bin/gfortran \
|
|
LDFLAGS="${LDFLAGS} -Wl,-z,noexecstack"
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -dm 755 $PKG/usr/lib/pkgconfig
|
|
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
|
|
ln -sf /usr/lib/openmpi/pkgconfig/$i $PKG/usr/lib/pkgconfig/
|
|
done
|
|
|
|
install -dm 755 $PKG/etc/ld.so.conf.d
|
|
echo /usr/lib/$name > $PKG/etc/ld.so.conf.d/$name.conf
|
|
}
|