diff --git a/.github/workflows/step_test.yaml b/.github/workflows/step_test.yaml index b370854a..39bce239 100644 --- a/.github/workflows/step_test.yaml +++ b/.github/workflows/step_test.yaml @@ -30,6 +30,7 @@ jobs: fail-fast: false matrix: toolchain: [ gcc, llvm, intel ] + mpi: ['', openmpi, mpich, intel] include: # flang is missing features in 16.0.6 - toolchain: llvm @@ -37,6 +38,12 @@ jobs: 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') diff --git a/cmake/CMakePresets-CI.json b/cmake/CMakePresets-CI.json index 0cffa480..e2979c3c 100644 --- a/cmake/CMakePresets-CI.json +++ b/cmake/CMakePresets-CI.json @@ -15,6 +15,10 @@ "WANNIER90_TEST": { "type": "BOOL", "value": true + }, + "WANNIER90_WITH_MPI": { + "type": "BOOL", + "value": "$env{WITH_MPI}" } }, "errors": {