File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 2020 use_openmp : [OPENMP=ON]
2121 use_smm : [SMM=blas]
2222 blas_impl : [accelerate,openblas]
23- mpi_suffix : [openmpi,mpich ]
23+ mpi_suffix : [openmpi]
2424 exclude :
2525 - use_mpi : MPI=OFF
2626 mpi_suffix : mpich
@@ -31,19 +31,14 @@ jobs:
3131 fetch-depth : 0
3232 submodules : true
3333
34- - name : Install dependencies
34+ - name : Install common dependencies
3535 run : |
3636 env HOMEBREW_NO_AUTO_UPDATE=1 brew install \
37- ninja \
38- openmpi
37+ ninja
3938
40- - name : Unlink OpenMPI
39+ - name : Install ${{ matrix.mpi_suffix }}
4140 run : |
42- brew unlink openmpi
43-
44- - name : Install MPICH
45- run : |
46- env HOMEBREW_NO_AUTO_UPDATE=1 brew install mpich
41+ env HOMEBREW_NO_AUTO_UPDATE=1 brew install ${{ matrix.mpi_suffix }}
4742
4843 - name : Configure
4944 run : |
5752 -DUSE_${{ matrix.use_openmp }} \
5853 -DUSE_${{ matrix.use_smm }} \
5954 $([ "${{ matrix.blas_impl }}" = "openblas" ] && echo '-DCMAKE_PREFIX_PATH=/usr/local/opt/openblas') \
60- -DMPIEXEC_EXECUTABLE="$([ "${{ matrix.mpi_suffix }}" = "openmpi" ] && command -v /usr/local/Cellar/open-mpi/*/bin/mpiexec || command -v /usr/local/Cellar/mpich/*/bin/mpiexec)" \
6155 -DMPIEXEC_PREFLAGS="$([ "${{ matrix.mpi_suffix }}" = "openmpi" ] && echo "-mca btl ^openib --allow-run-as-root")" \
6256 -DTEST_MPI_RANKS=1 \
6357 ..
You can’t perform that action at this time.
0 commit comments