Skip to content

Commit

Permalink
install pmix if not present (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpillons authored Mar 5, 2024
1 parent 9e2db1b commit 785757f
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
set -e

# Install PMIx if not present in the image
# if the /opt/pmix/v4 directory is not present, then install PMIx
if [ ! -d /opt/pmix/v4 ]; then
os_release=$(cat /etc/os-release | grep "^ID\=" | cut -d'=' -f 2 | xargs)
case $os_release in
rhel|almalinux)
dnf -y install autoconf flex libevent-devel git
;;
ubuntu|debian)
apt-get update
apt-get install -y git libevent-dev libhwloc-dev autoconf flex make gcc libxml2
;;
esac
# Build PMIx
cd /mnt/scratch
rm -rf openpmix
git clone --recursive https://github.com/openpmix/openpmix.git
cd openpmix
git checkout v4.2.9
./autogen.pl
./configure --prefix=/opt/pmix/v4
make -j install
fi

# Exit if Enroot is not in the image
[ -d /etc/enroot ] || exit 0
Expand Down

0 comments on commit 785757f

Please sign in to comment.