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

MPI concurrent wave equation and code


The following code was borrowed from Blaise Barney of Lawrence Livermore National Laboratory. It is an MPI concurrent wave equation program that the author implemented on his 64-core Pi3 supercomputer.

The code essentially solves a one-dimensional wave equation and it has the following form:

A(i,t+1) = (2.0*A(i,t)) - A(i,t-1)+(c*(A(i-1,t)-(2.0*A(i,t))+A(i+1,t)))

Please see; http://www.robopgmr.com/?p=2780 for more in-depth details and instructions.

Additionally, the code discretizes said vibrating string into points (100 in this slightly modified version of the code) along its length, and calculates the amplitudes of those points as per the number of time steps values (five for this code run) you entered initially, and then displays the results. The author employed all 64 cores of his Pi3 to generate the amplitudes at the points.

Note

The code was initially executed/tested on the author's main PC. The .c file was subsequently SFTP over to the master node on...