Skip to content

Commit

Permalink
action: Support alternative MPI names
Browse files Browse the repository at this point in the history
openmpi:  open-mpi, ompi
intelmpi: intel-mpi, impi, intel
msmpi:    microsoft-mpi, microsoftmpi, microsoft
  • Loading branch information
dalcinl committed Oct 9, 2023
1 parent 80d7f14 commit a2cf984
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion setup-mpi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
#!/bin/bash
set -eu

MPI=$(echo "${1:-}" | tr '[:upper:]' '[:lower:]')
MPI=$(echo "${1:-}" | tr '[:upper:]' '[:lower:]' | tr -d '-')

case $MPI in
mpich)
MPI=mpich
;;
ompi | openmpi)
MPI=openmpi
;;
impi | intelmpi | intel)
MPI=intelmpi
;;
msmpi | microsoftmpi | microsoft)
MPI=msmpi
;;
esac

setup-apt-intel-oneapi () {
apt_repo_url=https://apt.repos.intel.com/
Expand Down

0 comments on commit a2cf984

Please sign in to comment.