Skip to content

Commit

Permalink
Enable MPI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Aug 25, 2023
1 parent 1528726 commit 6ea99f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/step_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ jobs:
fail-fast: false
matrix:
toolchain: [ gcc, llvm, intel ]
mpi: ['', openmpi, mpich, intel]
include:
# flang is missing features in 16.0.6
- toolchain: llvm
experimental: true
steps:
- name: Install missing packages
run: dnf install -y bzip2 python-unversioned-command
- name: Load mpi module ${{ matrix.mpi }}
run: |
module load mpi/${{ matrix.mpi }}
# Set MPI flag on
echo "WITH_MPI=ON" >> $GITHUB_ENV
if: ${{ matrix.mpi }}
- name: Enable msvc toolchain on windows
uses: ilammy/msvc-dev-cmd@v1
if: contains(matrix.os, 'windows')
Expand Down
4 changes: 4 additions & 0 deletions cmake/CMakePresets-CI.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"WANNIER90_TEST": {
"type": "BOOL",
"value": true
},
"WANNIER90_WITH_MPI": {
"type": "BOOL",
"value": "$env{WITH_MPI}"
}
},
"errors": {
Expand Down

0 comments on commit 6ea99f4

Please sign in to comment.