From 0423225b776f2d74f00ac27efb5f4b2de215f2ce Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 11:14:49 -0800 Subject: [PATCH 1/8] wip --- .github/workflows/regression_test-numba_cpu_mpi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/regression_test-numba_cpu_mpi.yml b/.github/workflows/regression_test-numba_cpu_mpi.yml index 08f14b989..1ea1f2d30 100644 --- a/.github/workflows/regression_test-numba_cpu_mpi.yml +++ b/.github/workflows/regression_test-numba_cpu_mpi.yml @@ -30,4 +30,5 @@ jobs: - name: Regression Test - Numba and MPI run: | cd test/regression + mpiexec -n 4 python -m mpi4py.bench helloworld python run.py --mode=numba --mpiexec=4 From dc8f04388511ebda3e868ea81c1797bb681adf21 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 11:27:26 -0800 Subject: [PATCH 2/8] adding multiple debug commands --- .github/workflows/regression_test-numba_cpu_mpi.yml | 5 ++++- .github/workflows/regression_test-python_mpi.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression_test-numba_cpu_mpi.yml b/.github/workflows/regression_test-numba_cpu_mpi.yml index 1ea1f2d30..bdb8477c0 100644 --- a/.github/workflows/regression_test-numba_cpu_mpi.yml +++ b/.github/workflows/regression_test-numba_cpu_mpi.yml @@ -27,8 +27,11 @@ 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 - mpiexec -n 4 python -m mpi4py.bench helloworld python run.py --mode=numba --mpiexec=4 diff --git a/.github/workflows/regression_test-python_mpi.yml b/.github/workflows/regression_test-python_mpi.yml index f173c7f21..135907648 100644 --- a/.github/workflows/regression_test-python_mpi.yml +++ b/.github/workflows/regression_test-python_mpi.yml @@ -27,6 +27,9 @@ 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 - MPI run: | cd test/regression From c3959dfee9825315e556aab64888881b64dcc2c0 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 11:57:42 -0800 Subject: [PATCH 3/8] adding an independent mpi test --- .github/workflows/regression_test-python_mpi.yml | 5 +++++ test_mpi.py | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 test_mpi.py diff --git a/.github/workflows/regression_test-python_mpi.yml b/.github/workflows/regression_test-python_mpi.yml index 135907648..82a585b30 100644 --- a/.github/workflows/regression_test-python_mpi.yml +++ b/.github/workflows/regression_test-python_mpi.yml @@ -29,7 +29,12 @@ jobs: 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 diff --git a/test_mpi.py b/test_mpi.py new file mode 100644 index 000000000..589f95953 --- /dev/null +++ b/test_mpi.py @@ -0,0 +1,6 @@ +from mpi4py import MPI + + +print(">>>>>>> MPI Test <<<<<<<<") +print(MPI.COMM_WORLD.Get_size()) +print("") From a254214ddbc18b0a43f60323c16965db3eefb7e4 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 12:06:19 -0800 Subject: [PATCH 4/8] adding a zero issue workflow file --- .github/workflows/error_mpi4py.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/error_mpi4py.yml diff --git a/.github/workflows/error_mpi4py.yml b/.github/workflows/error_mpi4py.yml new file mode 100644 index 000000000..3c9070cf3 --- /dev/null +++ b/.github/workflows/error_mpi4py.yml @@ -0,0 +1,35 @@ +name: MPI CI Error + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest"] + 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: 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 \ No newline at end of file From c2a25f3cfa3f38dfa87ff9554d56bbf029820df2 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 12:36:00 -0800 Subject: [PATCH 5/8] remmoving numba command --- .github/workflows/error_mpi4py.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/error_mpi4py.yml b/.github/workflows/error_mpi4py.yml index 3c9070cf3..bde69b88f 100644 --- a/.github/workflows/error_mpi4py.yml +++ b/.github/workflows/error_mpi4py.yml @@ -23,9 +23,8 @@ jobs: - name: Install dependencies run: | pip install mpi4py - - name: Patch Numba + - name: Run MPI run : | - bash .github/workflows/patch.sh lscpu mpiexec -n 2 python -m mpi4py.bench helloworld echo " " From 1faeb8999a21248ee413098ab2c423d3815b6ea1 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Wed, 8 Jan 2025 13:34:24 -0800 Subject: [PATCH 6/8] wip --- test_mpi.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test_mpi.py b/test_mpi.py index 589f95953..68c4147f6 100644 --- a/test_mpi.py +++ b/test_mpi.py @@ -1,6 +1,5 @@ from mpi4py import MPI - -print(">>>>>>> MPI Test <<<<<<<<") print(MPI.COMM_WORLD.Get_size()) -print("") + +MPI.COMM_WORLD.Get_size() == 4 \ No newline at end of file From 9cfbd2f88442ff313825b25e1939fe214753e226 Mon Sep 17 00:00:00 2001 From: "Joanna Piper Morgan (jonsey)" Date: Thu, 9 Jan 2025 11:00:42 -0800 Subject: [PATCH 7/8] changing the mpi run command --- .github/workflows/error_mpi4py.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/error_mpi4py.yml b/.github/workflows/error_mpi4py.yml index bde69b88f..52b57cc85 100644 --- a/.github/workflows/error_mpi4py.yml +++ b/.github/workflows/error_mpi4py.yml @@ -26,9 +26,9 @@ jobs: - name: Run MPI run : | lscpu - mpiexec -n 2 python -m mpi4py.bench helloworld + mpirun -n 2 python -m mpi4py.bench helloworld echo " " - mpiexec -n 4 python -m mpi4py.bench helloworld + mpirun -n 4 python -m mpi4py.bench helloworld - mpiexec -n 4 python test_mpi.py - mpiexec -n 2 python test_mpi.py \ No newline at end of file + mpirun -n 4 python test_mpi.py + mpirun -n 2 python test_mpi.py \ No newline at end of file From 922aa410141bcc77b5ec269547c51048222bdd8f Mon Sep 17 00:00:00 2001 From: Joanna Piper Morgan <67020956+jpmorgan98@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:16:59 -0800 Subject: [PATCH 8/8] changing ubuntu release --- .github/workflows/error_mpi4py.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/error_mpi4py.yml b/.github/workflows/error_mpi4py.yml index 52b57cc85..f67613eb4 100644 --- a/.github/workflows/error_mpi4py.yml +++ b/.github/workflows/error_mpi4py.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-latest"] + os: ["ubuntu-22.04"] steps: - uses: actions/checkout@v3 - name: Set up python 3.11 @@ -31,4 +31,4 @@ jobs: mpirun -n 4 python -m mpi4py.bench helloworld mpirun -n 4 python test_mpi.py - mpirun -n 2 python test_mpi.py \ No newline at end of file + mpirun -n 2 python test_mpi.py