Now Available - Protostax for Raspberry Pi Model 4B! || Buy ANY 2 Enclosures and get a Horizontal Stacking Kit free! || Free Shipping on orders in the USA over $45!

Raspberry Pi Zero Cluster Computing Fun

ProtoStax Raspberry Pi Zero 2-Node Cluster

ย 

Hello there!ย 

It's been a while since our last project, but the wait's been worth it, I promise! ๐Ÿ˜Š

In this project, we'll have some fun a two-node Raspberry Pi Zero W Cluster, housed in our awesome ProtoStax Enclosure for Raspberry Pi Zero, and ready to crunch some numbers! We'll show you how you can compute all primes below 100 million (yes, million!!) in a mere 24 seconds!ย 

Along the way, you'll have some fun learning about parallel computing and MPI, and a sweet math algorithm called Sieve of Eratosthenes! Even if you aren't familiar with any of these concepts, do not fear! I've taken care to try to explain the concepts and principles at a high level bird's eye (or plane's eye) view - a broad introduction without bogging you down with too many nitty gritty details. On the other hand, if you are math/computer savvy, there still plenty of information and pointers to additional information to keep you engaged! It's a win-win, I think! ๐Ÿ˜Š

And the great news is you can use your same ProtoStax Enclosure for Raspberry Pi Zero to house up to 4 Raspberry Pi Zeros! I would love to know how fast your cluster is, and how long it took you to compute all primes below 100 million? The current record is 24 seconds, if memory serves me well! ๐Ÿ˜ŠAre you ready to erase the current leaderboard? Ooooh, smack talk, eh?!ย 

Calculating Primes on a 2-Node MPI Cluster using Sieve of Eratosthenes

Alright, let's dive right in! You can find out more information about the project and what I did at the ProtoStax Project Hub!

Happy Making!

Sridhar (and the ProtoStax Team ๐Ÿ˜Š)

ย 

ย 

Leave a comment

Please note, comments must be approved before they are published