Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
LocScale
LocScale
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arjen Jakobi
  • LocScaleLocScale
  • Wiki
  • mpi4py_installation

Last edited by Arjen Jakobi Jan 15, 2018
Page history

mpi4py_installation

Running LocScale with MPI requires OpenMPI and setting up mpi4py within the EMAN2 Python framework. Please check with your system administration on any existing setup.

EMAN2 installed via miniconda

The setup is very simple in EMAN2 installed via miniconda. mpi4py is not installed by default in miniconda, so we need to fetch it:

conda install mpi4py

The MPI framework after EMAN2 install can be found /Users/user/miniconda/mpirun.

Other EMAN2 installations

(1) Install OpenMPI
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
    [openmpi]
    mpi_dir = PATH_TO_YOUR_OPENMPI
    mpicc = %(mpi_dir)s/bin/mpicc
    mpicxx = %(mpi_dir)s/bin/mpicxx 
    library_dirs = %(mpi_dir)s/include/openmpi
    runtime_library_dirs = %(library_dirs)s

    EOF

# assuming EMAN2 is the default Python framework
python setup.py build --mpi=openmpi 
python setup.py install --prefix=$EMAN2DIR
python -c 'import mpi4py’  
Clone repository

123