Skip to content

Commit

Permalink
openmpi
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Feb 18, 2025
1 parent 3bc2ef5 commit 82ae322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ jobs:
- name: Install MPI
shell: bash -eux {0}
run: |
FCFLAGS=-fPIC CFLAGS=-fPIC FFLAGS=-fPIC ${ATLAS_TOOLS}/install-mpi.sh --mpi openmpi --prefix ${DEPS_DIR}/openmpi
if [[ "${{ matrix.os }}" =~ macos ]]; then
MPI_VERSION="--version 5.0.7"
echo "CACHE_SUFFIX=${CACHE_SUFFIX}-mpi_v5.0.7" >> $GITHUB_ENV
fi
FCFLAGS=-fPIC CFLAGS=-fPIC FFLAGS=-fPIC ${ATLAS_TOOLS}/install-mpi.sh --mpi openmpi ${MPI_VERSION} --prefix ${DEPS_DIR}/openmpi
[ -f ${DEPS_DIR}/openmpi/env.sh ] && source ${DEPS_DIR}/openmpi/env.sh
[ -z ${MPI_HOME+x} ] || echo "MPI_HOME=${MPI_HOME}" >> $GITHUB_ENV
Expand Down
5 changes: 2 additions & 3 deletions tools/install-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ case "$os" in
brew ls --versions mpich || brew install mpich
;;
openmpi)
brew list --versions
brew info openmpi
brew ls --versions openmpi || brew install [email protected]
brew info open-mpi
brew ls --versions open-mpi || brew install open-mpi@${OMPIVER}
echo "localhost slots=72" >> $(brew --prefix)/etc/openmpi-default-hostfile
echo "localhost slots=72" >> $(brew --prefix)/etc/prte-default-hostfile

Expand Down

0 comments on commit 82ae322

Please sign in to comment.