pip install --upgrade https://github.com/metamorph-inc/run_mdao/tarball/master
Repos:
https://github.com/metamorph-inc/OpenMDAO
https://github.com/metamorph-inc/run_mdao
https://github.com/metamorph-inc/testbenchexecutor
https://bitbucket.org/metamorphsoftwareinc/openmdao-couchdb-recorder
https://github.com/metamorph-inc/fmu_wrapper
.\venv\scripts\nosetests fmu_wrapper.test
https://github.com/metamorph-inc/excel_wrapper
Use the same file paths on every machine. Optional: put a Python virtualenv and PETSc on NFS.
Prerequisites:
apt-get install -y libmpich-dev mpich2 libmpich2-dev mpich2python python-dev build-essential libblas-dev liblapack-dev moreutils wget
Also need PETSc:
wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.6.2.tar.gz
tar xzvf petsc-3.6.2.tar.gz
cd petsc-3.6.2
./configure
make all
export PETSC_DIR=$(pwd)
echo export PETSC_DIR="$(pwd)" | cat - ~/.bashrc | sponge ~/.bashrc
Get the OpenMDAO and run_mdao repos (using the branches above) and set them up.
Add all hosts to /etc/hosts (or otherwise enable hostname resolution)
Install dependencies
Optional: apt-get install libatlas-dev
pip install mpi4py petsc4py
pip install testbenchexecutor
Optional: pip install openmdao-couchdb-recorder
Install XFOIL or whatever is needed
Run sshd and enable private key authentication from the root
apt-get install -y openssh-server
/etc/init.d/ssh start
cat >> ~/.ssh/authorized_keys
Create a hosts file containing IPs and number of cores, e.g.:
10.240.89.115:8
10.240.0.2:1
In the 'output' (generated) folder execute:
PYTHONPATH=...run_mdao/.. mpirun -f hosts -n {total-number-of-processes} python -m ...run_mdao/__main__.py