Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI CI Debug *DO NOT APPROVE* #268

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/error_mpi4py.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: MPI CI Error

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
steps:
- uses: actions/checkout@v3
- name: Set up python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: debug
run: |
pwd
ls
- uses: mpi4py/setup-mpi@v1
- name: Install dependencies
run: |
pip install mpi4py
- name: Run MPI
run : |
lscpu
mpirun -n 2 python -m mpi4py.bench helloworld
echo " "
mpirun -n 4 python -m mpi4py.bench helloworld

mpirun -n 4 python test_mpi.py
mpirun -n 2 python test_mpi.py
4 changes: 4 additions & 0 deletions .github/workflows/regression_test-numba_cpu_mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
- name: Patch Numba
run : |
bash .github/workflows/patch.sh
lscpu
mpiexec -n 2 python -m mpi4py.bench helloworld
mpiexec -n 4 python -m mpi4py.bench helloworld

- name: Regression Test - Numba and MPI
run: |
cd test/regression
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/regression_test-python_mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
- name: Patch Numba
run : |
bash .github/workflows/patch.sh
lscpu
mpiexec -n 2 python -m mpi4py.bench helloworld
echo " "
mpiexec -n 4 python -m mpi4py.bench helloworld

mpiexec -n 4 python test_mpi.py
mpiexec -n 2 python test_mpi.py

- name: Regression Test - MPI
run: |
cd test/regression
Expand Down
5 changes: 5 additions & 0 deletions test_mpi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from mpi4py import MPI

print(MPI.COMM_WORLD.Get_size())

MPI.COMM_WORLD.Get_size() == 4
Loading