Created
July 30, 2016 18:51
-
-
Save JordiCorbilla/03293ef0eff4173be14733b89f3e90a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ****************************** | |
# These steps will allow you to install MPI4PY to your Raspbian Jessie distro | |
# Jordi Corbilla | |
# ****************************** | |
# download mpi4py | |
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-2.0.0.tar.gz | |
#unzip the file | |
sudo tar -zxf mpi4py-2.0.0.tar.gz | |
# go to the directory | |
cd mpi4py-2.0.0 | |
# install python-dev package | |
sudo aptitude install python-dev | |
# run the setup | |
python setup.py build | |
sudo python setup.py install | |
# Set the python path | |
export PYTHONPATH=/home/pi/mpi4py-2.0.0 | |
# Test that MPI works on your device | |
mpiexec -n 5 python demo/helloworld.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment