mpich #383
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mpich | |
on: | |
workflow_call: | |
inputs: | |
mpi4py-git: | |
description: 'mpi4py git' | |
default: mpi4py/mpi4py | |
required: true | |
type: string | |
mpi4py-ref: | |
description: 'mpi4py ref' | |
default: master | |
required: true | |
type: string | |
workflow_dispatch: | |
inputs: | |
mpi-git: | |
description: 'MPI git' | |
default: pmodels/mpich | |
required: true | |
type: string | |
mpi-ref: | |
description: 'MPI ref' | |
default: main | |
required: true | |
type: string | |
mpi4py-git: | |
description: 'mpi4py git' | |
default: mpi4py/mpi4py | |
required: true | |
type: string | |
mpi4py-ref: | |
description: 'mpi4py ref' | |
default: master | |
required: true | |
type: string | |
push: | |
branches: | |
- ci/all | |
- ci/mpich | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
pm: | |
- hydra | |
- gforker | |
device: | |
- ch3:sock | |
- ch3:nemesis | |
- ch4:ofi | |
- ch4:ucx | |
steps: | |
- name: Configure hostname | |
run: echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null | |
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }} | |
- name: Install depencencies | |
run: sudo apt-get install -y -q | |
libnuma-dev | |
- name: Checkout MPI | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.inputs.mpi-git || 'pmodels/mpich' }} | |
ref: ${{ github.event.inputs.mpi-ref || 'main' }} | |
submodules: recursive | |
- name: Bootstrap MPI | |
run: ./autogen.sh | |
- name: Configure MPI | |
run: ./configure | |
--with-pm=${{ matrix.pm }} | |
--with-device=${{ matrix.device }} | |
--disable-dependency-tracking | |
--disable-maintainer-mode | |
--enable-g=all | |
--enable-fast=none | |
--disable-fortran | |
LDFLAGS=-Wl,-rpath,/usr/local/lib | |
$(test ${{ matrix.pm }} == gforker && | |
echo --with-namepublisher=file) | |
- name: Build MPI | |
run: make -j 2 | |
- name: Install MPI | |
run: sudo make install | |
- name: Tweak MPI | |
run: | | |
# Tweak MPI | |
true | |
- name: Show MPI | |
run: mpichversion | |
- name: Show MPICC | |
run: mpicc -show | |
- name: Use Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3 | |
architecture: x64 | |
- name: Install Python packages (build) | |
run: python -m pip install --upgrade | |
setuptools pip wheel | |
- name: Install Python packages (test) | |
run: python -m pip install --upgrade | |
numpy cffi pyyaml | |
- name: Checkout mpi4py | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.inputs.mpi4py-git || 'mpi4py/mpi4py' }} | |
ref: ${{ github.event.inputs.mpi4py-ref || 'master' }} | |
path: mpi4py | |
- name: Install mpi4py | |
run: python -m pip install ./mpi4py | |
env: | |
CFLAGS: "-O0" | |
- name: Test mpi4py (singleton) | |
run: python mpi4py/test/runtests.py -v | |
if: ${{ true }} | |
- name: Test mpi4py (np=1) | |
run: mpiexec -n 1 python mpi4py/test/runtests.py -v | |
- name: Test mpi4py (np=2) | |
run: mpiexec -n 2 python mpi4py/test/runtests.py -v -f | |
- name: Test mpi4py (np=3) | |
run: mpiexec -n 3 python mpi4py/test/runtests.py -v -f | |
if: ${{ matrix.device == 'ch3:sock' }} | |
timeout-minutes: 10 | |
- name: Test mpi4py (np=5) | |
run: mpiexec -n 5 python mpi4py/test/runtests.py -v -f | |
if: ${{ matrix.device == 'ch3:sock' }} | |
timeout-minutes: 20 | |
- name: Test mpi4py.futures (singleton) | |
run: python mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=1) | |
run: mpiexec -n 1 python mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=2) | |
run: mpiexec -n 2 python mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=3) | |
run: mpiexec -n 3 python mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=1) | |
run: mpiexec -n 1 python -m mpi4py.futures mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=2) | |
run: mpiexec -n 2 python -m mpi4py.futures mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=3) | |
run: mpiexec -n 3 python -m mpi4py.futures mpi4py/demo/futures/test_futures.py -v | |
- name: Test mpi4py.run | |
run: python mpi4py/demo/test-run/test_run.py -v | |
- name: Test init-fini | |
run: bash mpi4py/demo/init-fini/run.sh | |
- name: Test check-mpiexec | |
run: bash mpi4py/demo/check-mpiexec/run.sh |