diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc7f0f5..5433021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,3 +120,98 @@ jobs: mpiexec /help2 mpiexec /help3 if: ${{ runner.os == 'Windows' && matrix.mpi == 'msmpi' }} + + Linux: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup MPICH + id: setup1 + uses: ./ + with: + mpi: mpich + - run: test ${{ steps.setup1.outputs.mpi }} == mpich + - run: command -v mpichversion + + - name: Setup Open MPI + id: setup2 + uses: ./ + with: + mpi: openmpi + - run: test ${{ steps.setup2.outputs.mpi }} == openmpi + - run: command -v ompi_info + + - name: Setup Intel MPI + id: setup3 + uses: ./ + with: + mpi: intelmpi + - run: test ${{ steps.setup3.outputs.mpi }} == intelmpi + - run: command -v impi_info + + macOS: + runs-on: macos-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup MPICH + id: setup1 + uses: ./ + with: + mpi: mpich + - run: test ${{ steps.setup1.outputs.mpi }} == mpich + - run: command -v mpichversion + + - name: Setup Open MPI + id: setup2 + uses: ./ + with: + mpi: open-mpi + - run: test ${{ steps.setup2.outputs.mpi }} == openmpi + - run: command -v ompi_info + + - name: Unlink Homebrew MPI formulae + run: brew unlink mpich openmpi + + - name: Setup MPICH + id: setup3 + uses: ./ + with: + mpi: mpich + - run: test ${{ steps.setup3.outputs.mpi }} == mpich + - run: command -v mpichversion + + - name: Setup Open MPI + id: setup4 + uses: ./ + with: + mpi: ompi + - run: test ${{ steps.setup4.outputs.mpi }} == openmpi + - run: command -v ompi_info + + Windows: + runs-on: windows-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Intel MPI + id: setup1 + uses: ./ + with: + mpi: intel + + - name: Setup Microsoft MPI + id: setup2 + uses: ./ + with: + mpi: microsoft + + - run: test ${{ steps.setup1.outputs.mpi }} == intelmpi + - run: test ${{ steps.setup2.outputs.mpi }} == msmpi diff --git a/setup-mpi.sh b/setup-mpi.sh index 003aa6e..35806ed 100755 --- a/setup-mpi.sh +++ b/setup-mpi.sh @@ -177,6 +177,7 @@ esac if [ $MPI == openmpi ]; then openmpi_mca_params=$HOME/.openmpi/mca-params.conf mkdir -p $(dirname $openmpi_mca_params) + rm -f $openmpi_mca_params echo plm=isolated >> $openmpi_mca_params echo rmaps_base_oversubscribe=true >> $openmpi_mca_params echo btl_base_warn_component_unused=false >> $openmpi_mca_params