2023-09-07 19:32:16 +03:00
|
|
|
distributable:
|
|
|
|
url: https://download.open-mpi.org/release/open-mpi/v{{version.marketing}}/openmpi-{{version}}.tar.bz2
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: open-mpi/ompi/tags
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
open-mpi.org/hwloc: '*'
|
|
|
|
libevent.org: '*'
|
|
|
|
gnu.org/gcc: '*' # for gfortran
|
|
|
|
gnu.org/inetutils: '*' # for rsh
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
2023-10-02 03:41:57 +03:00
|
|
|
OPAL_PREFIX: '{{prefix}}'
|
2023-09-07 19:32:16 +03:00
|
|
|
OMPI_CC: gcc
|
|
|
|
OMPI_CXX: g++
|
|
|
|
OMPI_FC: gfortran
|
|
|
|
OMPI_CFLAGS: $CFLAGS
|
|
|
|
OMPI_CXXFLAGS: $CXXFLAGS
|
|
|
|
OMPI_FCFLAGS: $FCFLAGS -I{{prefix}}/include
|
|
|
|
OMPI_CPPFLAGS: $CPPFLAGS
|
|
|
|
OMPI_LDFLAGS: $LDFLAGS
|
|
|
|
OMPI_F77FLAGS: $FCFLAGS -I{{prefix}}/include
|
|
|
|
OMPI_F90FLAGS: $FCFLAGS -I{{prefix}}/include
|
|
|
|
|
|
|
|
build:
|
2023-10-02 07:39:38 +03:00
|
|
|
dependencies:
|
2023-10-08 09:32:09 +03:00
|
|
|
zlib.net: ^1
|
|
|
|
gnu.org/binutils: '*'
|
2024-01-07 07:40:21 +03:00
|
|
|
python.org: ^3
|
2023-10-08 09:32:09 +03:00
|
|
|
linux:
|
|
|
|
gnu.org/make: '*'
|
2023-09-07 19:32:16 +03:00
|
|
|
script:
|
|
|
|
- ./configure $CONFIGURE_ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }} all
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
2024-01-07 07:40:21 +03:00
|
|
|
|
|
|
|
- run: sed -i "s|$PKGX_DIR|\${pcfiledir}/../../../..|g" *.pc
|
2023-10-02 03:41:57 +03:00
|
|
|
working-directory: '{{prefix}}/lib/pkgconfig'
|
2024-01-07 07:40:21 +03:00
|
|
|
|
|
|
|
- run: sed -i "s|linker_flags=.*|linker_flags=|g" *-wrapper-data.txt
|
2023-10-02 03:41:57 +03:00
|
|
|
working-directory: '{{prefix}}/share/openmpi'
|
2024-01-07 07:40:21 +03:00
|
|
|
|
2023-09-07 19:32:16 +03:00
|
|
|
- install {{prefix}}/lib/*.mod {{prefix}}/include/
|
|
|
|
env:
|
2024-01-07 07:40:21 +03:00
|
|
|
linux:
|
|
|
|
AR: ${{deps.gnu.org/binutils.prefix}}/bin/ar
|
|
|
|
RANLIB: ${{deps.gnu.org/binutils.prefix}}/bin/ranlib
|
2023-10-08 09:32:09 +03:00
|
|
|
CXXFLAGS: $CXXFLAGS -std=c++11
|
|
|
|
darwin:
|
2024-01-07 07:40:21 +03:00
|
|
|
# FIXME: binutils ar/ranlib are broken on macOS?
|
|
|
|
AR: /usr/bin/ar
|
|
|
|
RANLIB: /usr/bin/ranlib
|
2023-10-08 09:32:09 +03:00
|
|
|
CFLAGS: $CFLAGS -Wl,-rpath,{{pkgx.prefix}}
|
|
|
|
CXXFLAGS: $CXXFLAGS -Wl,-rpath,{{pkgx.prefix}}
|
|
|
|
FCFLAGS: $FCFLAGS -Wl,-rpath,{{pkgx.prefix}}
|
2024-01-07 07:40:21 +03:00
|
|
|
LDFLAGS: $LDFLAGS -headerpad_max_install_names
|
2023-09-07 19:32:16 +03:00
|
|
|
CONFIGURE_ARGS:
|
|
|
|
- --disable-debug
|
|
|
|
- --disable-dependency-tracking
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --libdir="{{prefix}}/lib"
|
|
|
|
- --disable-silent-rules
|
|
|
|
- --enable-ipv6
|
|
|
|
- --enable-mca-no-build=reachable-netlink
|
|
|
|
- --sysconfdir="{{prefix}}/etc"
|
|
|
|
- --with-libevent="{{deps.libevent.org.prefix}}"
|
|
|
|
- --with-sge
|
|
|
|
- --disable-dlopen
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/mpic++
|
|
|
|
- bin/mpiCC
|
|
|
|
- bin/mpicc
|
|
|
|
- bin/mpicxx
|
|
|
|
- bin/mpiexec
|
|
|
|
- bin/mpif77
|
|
|
|
- bin/mpif90
|
|
|
|
- bin/mpifort
|
|
|
|
- bin/mpirun
|
|
|
|
- bin/ompi_info
|
|
|
|
- bin/opal_wrapper
|
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
script:
|
|
|
|
- mpicc hello.c -o hello
|
|
|
|
- ./hello
|
|
|
|
- mpirun ./hello
|
|
|
|
- mpifort hellof.f90 -o hellof
|
|
|
|
- ./hellof
|
|
|
|
- mpirun ./hellof
|
|
|
|
- mpifort hellousempi.f90 -o hellousempi
|
|
|
|
- ./hellousempi
|
|
|
|
- mpirun ./hellousempi
|
|
|
|
- mpifort hellousempif08.f90 -o hellousempif08
|
|
|
|
- ./hellousempif08
|
|
|
|
- mpirun ./hellousempif08
|
|
|
|
- pkg-config --modversion ompi
|
|
|
|
env:
|
|
|
|
linux/x86-64: # GHA hosts run as root
|
|
|
|
OMPI_ALLOW_RUN_AS_ROOT: 1
|
|
|
|
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
|