Commit f6083877 authored by Paul Rich's avatar Paul Rich
Browse files

adding in OpenMPI build using built pmix and prrte.

parent 51b8e4e0
......@@ -92,4 +92,6 @@ Vagrant.configure("2") do |config|
"REBUILD_PRRTE" => ENV["REBUILD_PRRTE"],
"UPDATE_ALL" => ENV["UPDATE_ALL"],
"REBUILD_ALL" => ENV["REBUILD_ALL"] }
config.vm.provision "shell", path: "provision-openmpi.sh", name: "openmpi", privileged: false, env:
{"UPDATE_OPENMPI" => ENV["UPDATE_OPENMPI"], "REBUILD_OPENMPI" => ENV["REBUILD_OPENMPI"]}
end
# Profile for Mesos test env
source /etc/bashrc
# Mesos-specfic environment settings:
export PATH=$HOME/openmpi-install/bin:$PATH:$HOME/local/bin
#!/bin/bash -x
# Provision script for OpenMPI against pmix and prrte builds in a
# VM CentOS7 environment
# These are intended to run as the vagrant user.
configure_opts="--prefix=/home/vagrant/openmpi-install \
--with-pmix=/home/vagrant/local --with-hwloc=external \
--with-libevent=external --with-ompi-pmix-rte"
if [ ! -d /home/vagrant/openmpi-install ]; then
mkdir -p /home/vagrant/openmpi-install
fi
if [ ! -d ompi ]; then
git clone https://github.com/open-mpi/ompi.git
REBUILD_OPENMPI=1
fi
if [ ! -z "$UPDATE_OPENMPI" ]; then
cd ompi
git fetch --all
git pull master
cd -
REBUILD_OPENMPI=1
fi
if [ ! -z "$REBUILD_OPENMPI" ]; then
cd ompi
./autogen.pl
./configure $configure_opts
make -j 4
make install
cd -
fi
echo "OPENMPI BUILD COMPLETE"
......@@ -4,11 +4,13 @@
# These steps are intended to be vm-wide and this is run as root duirng
# the provisioning process.
# We will be building OpenMPI later for use with pmix rather than using the prebuilt devel mpich
# Adding in EPEL repository
sudo yum -y install epel-release
USER_PACKAGES="vim emacs tmux gcc nc json git lsof mlocate python2-pip \
USER_PACKAGES="vim emacs tmux gcc gcc-c++ nc json git lsof mlocate python2-pip \
python2-virtualenv python36-pip python36-virtualenv yum-utils \
mpich mpich-devel nmap libtool wget tar git lynx nss-mdns avahi avahi-tools"
mpich nmap libtool wget tar git lynx nss-mdns avahi avahi-tools"
# Note: mpich is required, but already covered in general user packages.
PMIX_PACKAGES="m4 flex libevent-devel hwloc-devel"
yum install -y $USER_PACKAGES $PMIX_PACKAGES
......@@ -2,6 +2,9 @@
# Provision script for Mesos VM CentOS7 environment
# These are intended to run as the vagrant user.
if [ ! -d /home/vagrant/local ]; then
mkdir -p /home/vagrant/local
fi
if [ ! -z "$UPDATE_ALL" ]; then
UPDATE_PMIX=1
UPDATE_PRRTE=1
......@@ -24,9 +27,9 @@ fi
if [ ! -z "$REBUILD_PMIX" ]; then
cd pmix
./autogen.pl
./configure
./configure --prefix=/home/vagrant/local
make -j 4 all
sudo make install
make install
cd -
fi
if [ ! -d prrte ]; then
......@@ -43,8 +46,8 @@ fi
if [ ! -z "$REBUILD_PRRTE" ]; then
cd prrte
./autogen.pl
./configure --enable-debug --with-pmix=/usr/local
./configure --enable-debug --with-pmix=/home/vagrant/local --prefix=/home/vagrant/local
make -j 4 all
sudo make install
make install
cd -
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment