msmpi #41
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: msmpi | |
on: | |
workflow_call: | |
inputs: | |
mpi4py-git: | |
description: 'mpi4py git' | |
default: mpi4py/mpi4py | |
required: false | |
type: string | |
mpi4py-ref: | |
description: 'mpi4py ref' | |
default: '' | |
required: false | |
type: string | |
workflow_dispatch: | |
inputs: | |
mpi4py-git: | |
description: 'mpi4py git' | |
default: mpi4py/mpi4py | |
required: false | |
type: string | |
mpi4py-ref: | |
description: 'mpi4py ref' | |
default: '' | |
required: false | |
type: string | |
push: | |
branches: | |
- ci/all | |
- ci/msmpi | |
schedule: | |
- cron: '0 0 * * 6' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-2022 | |
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 MPI | |
uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: msmpi | |
- name: Tweak MPI | |
run: | | |
# Tweak MPI | |
echo "MSMPI_PROGRESS_SPIN_LIMIT=16" >> $GITHUB_ENV | |
shell: bash | |
- name: Show MPI | |
run: echo "$MSMPI_BIN" | |
shell: bash | |
- name: Show MPICC | |
run: | | |
echo "MSMPI_INC=$MSMPI_INC" | |
echo "MSMPI_LIB64=$MSMPI_LIB64" | |
shell: bash | |
- name: Use Python | |
uses: actions/setup-python@v5 | |
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@v4 | |
with: | |
repository: ${{ inputs.mpi4py-git || 'mpi4py/mpi4py' }} | |
ref: ${{ inputs.mpi4py-ref }} | |
- name: Install mpi4py | |
run: python -m pip install . | |
env: | |
CFLAGS: "-O0" | |
- name: Test mpi4py (singleton) | |
run: python test/main.py -v | |
if: ${{ true }} | |
- name: Test mpi4py (np=1) | |
run: mpiexec -n 1 python test/main.py -v | |
- name: Test mpi4py (np=2) | |
run: mpiexec -n 2 python test/main.py -v -f | |
timeout-minutes: 10 | |
- name: Test mpi4py (np=3) | |
run: mpiexec -n 3 python test/main.py -v -f | |
timeout-minutes: 10 | |
- name: Test mpi4py (np=4) | |
run: mpiexec -n 4 python test/main.py -v -f | |
timeout-minutes: 10 | |
- name: Test mpi4py (np=5) | |
run: mpiexec -n 5 python test/main.py -v -f | |
if: ${{ true }} | |
timeout-minutes: 10 | |
- name: Test mpi4py.futures (singleton) | |
run: python demo/futures/test_futures.py -v | |
if: ${{ true }} | |
- name: Test mpi4py.futures (np=1) | |
run: mpiexec -n 1 python demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=2) | |
run: mpiexec -n 2 python demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=3) | |
run: mpiexec -n 3 python demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=1) | |
run: mpiexec -n 1 python -m mpi4py.futures demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=2) | |
run: mpiexec -n 2 python -m mpi4py.futures demo/futures/test_futures.py -v | |
- name: Test mpi4py.futures (np=3) | |
run: mpiexec -n 3 python -m mpi4py.futures demo/futures/test_futures.py -v | |
- name: Test mpi4py.run | |
run: python demo/test-run/test_run.py -v | |
if: ${{ false }} | |
- name: Test init-fini | |
run: bash demo/init-fini/run.sh | |
if: ${{ false }} | |
- name: Test check-mpiexec | |
run: bash demo/check-mpiexec/run.sh | |
if: ${{ false }} |