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

Configuring static IP address of the master Pi


Note the IP address for the master (Mst0) and slave (Slv1) Pi by using the ifconfig command discussed in Chapter 3, Preparing the Initial Two Nodes. Go ahead and ssh into the master node from the main PC, and edit the network interfaces file. Enter sudo vim /etc/network/interfaces. The editor opens the file, displaying the following contents:

Insert the text highlighted in red; note the IP address and netmask address. These were ascertained earlier. The text iface etho inet manuel is commented out with #, and replaced with iface eth0 inet static; underneath that is the master Pi IP address, and next to that is the netmask address. Save the changes by entering Esc:wq, that is, colon wq, (colon ( : ), write ( w ), and quit (q)). You should now be back at the pi@Mst0:~ $ prompt. You now want to restart the network interface by entering, at the $ prompt, the sudo /etc/init.d/networking restart command. Repeat the same procedure for the slave ...