Skip to content

Commit 82896be

Browse files
committed
Switch Windows MPI setup from MS-MPI to MPICH
Replaced `mpi4py/setup-mpi` with a manual installation and configuration of MPICH (v4.2) for Windows builds. Updated CMake configuration to use `CMAKE_PREFIX_PATH` for MPICH integration. Simplified environment setup for consistent MPI tooling.
1 parent d729919 commit 82896be

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,16 @@ jobs:
843843
with:
844844
version: "17.0"
845845

846-
- name: Setup MPI
847-
uses: mpi4py/setup-mpi@v1
848-
with:
849-
mpi: msmpi
846+
- name: Download MPICH (64-bit)
847+
run: |
848+
curl -LO https://www.mpich.org/static/downloads/4.2/mpich-4.2-windows-x86_64.zip
849+
unzip mpich-4.2-windows-x86_64.zip -d mpich
850+
echo "MPICH installed"
851+
852+
- name: Setup environment for MPICH
853+
run: |
854+
echo "$GITHUB_WORKSPACE/mpich/bin" >> $GITHUB_PATH
855+
echo "MPICH_ROOT=$GITHUB_WORKSPACE/mpich" >> $GITHUB_ENV
850856
851857
- name: Setup ccache
852858
uses: Chocobo1/setup-ccache-action@v1
@@ -865,6 +871,7 @@ jobs:
865871
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache
866872
-D CMAKE_BUILD_TYPE=Release
867873
-D CMAKE_INSTALL_PREFIX=install
874+
-D CMAKE_PREFIX_PATH="${{ env.MPICH_ROOT }}"
868875
env:
869876
CC: clang
870877
CXX: clang++

0 commit comments

Comments
 (0)