Skip to content

Commit e7220ec

Browse files
committed
Switch to mpi4py/setup-mpi for MPI setup in Windows builds
Replaced manual MPICH installation and configuration with `mpi4py/setup-mpi` GitHub action for streamlined MPI setup. Updated CMake configuration to require MPI and removed redundant MPICH-specific setup steps.
1 parent 82896be commit e7220ec

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/main.yml

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

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
846+
- name: Setup MPI
847+
uses: mpi4py/setup-mpi@v1
848+
with:
849+
mpi: msmpi
856850

857851
- name: Setup ccache
858852
uses: Chocobo1/setup-ccache-action@v1

modules/core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ if(NOT MSVC)
5454
endif()
5555
endif()
5656

57+
find_package(MPI REQUIRED)
5758
if( MPI_COMPILE_FLAGS )
5859
set_target_properties(${exec_func_lib} PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
5960
endif( MPI_COMPILE_FLAGS )

0 commit comments

Comments
 (0)