blob: a8fe76deeb9549db66613a37b6af9b04172bdbc3 (
plain)
1 # Description: High performance message passing library (MPI)
2 # URL: https://www.open-mpi.org
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: eudev gcc-fortran libevent libnl zlib
5 # Optional: cuda hwloc
6
7 name=openmpi
8 version=4.1.4
9 release=1
10 source=(https://www.open-mpi.org/software/ompi/v${version%.*}/downloads/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14
15 ./configure \
16 --prefix=/usr \
17 --sysconfdir=/etc/$name \
18 --enable-mpi-fortran=all \
19 --libdir=/usr/lib/$name \
20 --enable-builtin-atomics \
21 --enable-mpi-cxx \
22 --enable-pretty-print-stacktrace \
23 --without-slurm \
24 FC=/usr/bin/gfortran \
25 LDFLAGS="${LDFLAGS} -Wl,-z,noexecstack"
26
27 make
28 make DESTDIR=$PKG install
29
30 install -dm 755 $PKG/usr/lib/pkgconfig
31 for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
32 ln -sf /usr/lib/openmpi/pkgconfig/$i $PKG/usr/lib/pkgconfig/
33 done
34
35 install -dm 755 $PKG/etc/ld.so.conf.d
36 echo /usr/lib/$name > $PKG/etc/ld.so.conf.d/$name.conf
37 }
|