|
|
Running LocScale with MPI requires [OpenMPI](http://www.open-mpi.de/) and setting up [mpi4py](https://pypi.python.org/pypi/mpi4py) within the EMAN2 Python framework. Please check with your system administration on any existing setup.
|
|
|
|
|
|
import site; site.getsitepackages()
|
|
|
##### (1) Install OpenMPI
|
|
|
|
|
|
```
|
|
|
cd PATH-TO-LOCSCALE
|
|
|
wget http://mpi4py.googlecode.com/files/mpi4py-2.0.0.tar.gz
|
|
|
sudo apt-get install openmpi
|
|
|
```
|
|
|
|
|
|
##### (2) Install and set up mpi4py
|
|
|
|
|
|
$EMAN2DIR is the location of the EMAN2’s python before lib/python2.7/site-packages
|
|
|
|
|
|
```
|
|
|
cd $EMAN2DIR
|
|
|
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-2.0.0.tar.gz
|
|
|
tar -zxf $PWD/mpi4py-2.0.0.tar.gz
|
|
|
cd mpi4py-2.0.0
|
|
|
cat > mpi.cfg << EOF
|
... | ... | @@ -18,7 +27,7 @@ cat > mpi.cfg << EOF |
|
|
|
|
|
# assuming EMAN2 is the default Python framework
|
|
|
python setup.py build --mpi=openmpi
|
|
|
python setup.py install --prefix=$PWD
|
|
|
python setup.py install --prefix=$EMAN2DIR
|
|
|
python -c 'import mpi4py’
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |