Skip to content

Commit 80d7f14

Browse files
committed
macOS: Ensure requested Homebrew MPI is linked
1 parent 393e2ec commit 80d7f14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup-mpi.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,14 @@ case $(uname) in
9595
echo "::group::Installing $MPI with brew"
9696
case $MPI in
9797
mpich)
98+
brew unlink openmpi > /dev/null 2>&1 || true
9899
brew install mpich
100+
brew link mpich
99101
;;
100102
openmpi)
103+
brew unlink mpich > /dev/null 2>&1 || true
101104
brew install openmpi
105+
brew link openmpi
102106
;;
103107
*)
104108
echo "Unknown MPI implementation:" $MPI

0 commit comments

Comments
 (0)