Summary

In this chapter, we learned how to download and install Ubuntu on the main PC. We wrote and ran a simple serial π code on one core of your PC multi-core processor, and then wrote and ran the first MPI code to call on the cores/processes in the multi-core processor in your PC. Armed with this knowledge/technique, we wrote and ran the MPI code version of the simple serial π code, and in the process learned how the for loop distributes the work/task among the cores in the processor for attaining an ultimate solution. Finally, we employed the MPI coding technique learned to generate the π values from the Euler, Leibniz, and Nilakantha infinite series. In Chapter 3, Preparing the Initial Two Nodes, we will learn how to prepare the initial two ...

Get Build Supercomputers with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.