Book Image

Build Supercomputers with Raspberry Pi 3

By : Carlos R. Morrison
Book Image

Build Supercomputers with Raspberry Pi 3

By: Carlos R. Morrison

Overview of this book

Author Carlos R. Morrison (Staff Scientist, NASA) will empower the uninitiated reader to quickly assemble and operate a Pi3 supercomputer in the shortest possible time. The lifeblood of a supercomputer, the MPI code, is introduced early, and sample MPI code provides additional practice opportunities for you to test the effectiveness of your creation. You will learn how to configure various nodes and switches so that they can effectively communicate with each other. By the end of this book, you will have successfully built a supercomputer and the various applications related to it.
Table of Contents (20 chapters)
Build Supercomputers with Raspberry Pi 3
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface
6
Creating a Mountable Drive on the Master Node

Wielding the -H command


Shut down the entire cluster by successively ssh-ing into each node, and enter sudo shutdown -h now (we will discuss automating this procedure later). Reenergize the cluster by turning off the power strip, and then on again, or unplug the rapid charger from the wall socket, and then reinsert the plug into the socket. Wait about 30 seconds or so for the Pis to reboot. Then ssh into the master node, and switch to the alpha user, then change the directory to the gamma folder.

Execute the call-procs program to see if all the nodes are working appropriately. For example, if you have an eight or 16-node machine, type in, individually; mpiexec -H Mst0 call-procs, mpiexec -H Slv1 call-procs, mpiexec -H Slv2 call-procs, mpiexec -H Slv3 call-procs...mpiexec -H Slv7 call-procs or Slv15 call-procs. This procedure will initialize the nodes. Then command all the nodes using the command; mpiexec -H Slv1,Slv2,Slv3,Slv4,Slv5,Slv6,Slv7,Slv8,Slv9,Slv10,Slv11,Slv12,Slv13,Slv14,Slv15 call...