© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.