© Ashwin Pajankar 2017

Ashwin Pajankar, Raspberry Pi Supercomputing and Scientific Programming, 10.1007/978-1-4842-2878-4_8

8. Parallel Programming in Python 3

Ashwin Pajankar

(1)Nashik, Maharashtra, India

In the last chapter, we learned how to overclock various models of Raspberry Pi to increase their computational power. In this chapter, we will learn how to write parallel programs with Python and MPI4PY. I prefer Python due to its simplicity, and the code in Python is less scary. We will explore MPI concepts and implement those in Python with MPI4PY.

The MPI concepts we will study and implement are as follows:

  • MPI rank and processes

  • Sending and receiving data

  • Data tagging

  • Broadcasting data

  • Scattering and gathering data

Basics of MPI4PY

In the earlier ...

Get Raspberry Pi Supercomputing and Scientific Programming: MPI4PY, NumPy, and SciPy for Enthusiasts 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.