Raspberry Patch

building a cluster of raspberry pis

background software hardware step-by-step performance
Download this project as a .zip file Download this project as a tar.gz file

Image the SD cards

# find sd card
diskutil list

sudo dd of=/dev/rdisk1 if=~/rpi_mpi.img bs=1m
startx
# copy master image locally note change disk1 -> rdisk1
sudo dd if=/dev/rdisk1 of=~/rpi_mpi.img bs=1m
# update image using script
python setup_node.py rpi_mpi.img 1 #Here, 1 is an ID for the node

# copy master image locally note change disk1 -> rdisk1
sudo dd of=/dev/rdisk1 if=~/rpi_mpi.img bs=1m

Create the Hardware Connections

Wire the Network

Power the Devices

Run MPI

mpiexec --machinfile ~/machinefile -n 4 python hellompi.py