Skip to content

Commit

Permalink
Merge pull request #509 from mmuetzel/ci-msmpi
Browse files Browse the repository at this point in the history
Install and use MSMPI on MinGW CI.
  • Loading branch information
raback authored Aug 2, 2024
2 parents 0eb63b9 + 1639975 commit d8dcdd4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build-windows-mingw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: install dependencies
uses: msys2/setup-msys2@v2
Expand All @@ -45,12 +47,20 @@ jobs:
cc:p
fc:p
cmake:p
msmpi:p
openblas:p
parmetis:p
qwt-qt5:p
qt5-script:p
- name: install MSMPI
uses: mpi4py/setup-mpi@v1
with:
mpi: msmpi

- name: configure
# Downgrade incompatible-pointer-types to a warning to work around
# build error of Zoltan with newer GCC.
run: |
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
Expand All @@ -62,11 +72,16 @@ jobs:
-DBLA_VENDOR="OpenBLAS" \
-DWITH_OpenMP=ON \
-DWITH_LUA=ON \
-DWITH_Zoltan=OFF \
-DWITH_MPI=ON \
-DMPI_TEST_MAXPROC=2 \
-DMPIEXEC_EXECUTABLE="$(cygpath -m "${MSMPI_BIN}")/mpiexec.exe" \
-DWITH_Zoltan=ON \
-DCMAKE_C_FLAGS="-Wno-error=incompatible-pointer-types" \
-DParMetis_LIBRARIES="$(pkg-config --libs parmetis)" \
-DParMetis_INCLUDE_DIR="$(pkg-config --cflags parmetis)" \
-DWITH_Mumps=OFF \
-DWITH_ELMERGUI=ON \
-DCREATE_PKGCONFIG_FILE=ON \
-DWITH_MPI=OFF \
..
- name: build
Expand Down
3 changes: 3 additions & 0 deletions fem/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ ENDIF()

IF(HAVE_ZOLTAN)
TARGET_LINK_LIBRARIES(elmersolver ${ZOLTAN_LIBRARY})
IF(Zoltan_ENABLE_ParMETIS)
TARGET_LINK_LIBRARIES(elmersolver ${ParMetis_LIBRARIES})
ENDIF()
ADD_DEPENDENCIES(elmersolver ${ZOLTAN_LIBRARY})
# SET(ELMERSOLVER_RPATH_STRING_MOD "${ELMERSOLVER_RPATH_STRING_MOD}/:${ZOLTAN_LIBDIR}")
# SET(ELMERLIB_RPATH_STRING "${ELMERLIB_RPATH_STRING}/:${ZOLTAN_LIBDIR}")
Expand Down

0 comments on commit d8dcdd4

Please sign in to comment.