SlideShare a Scribd company logo
Parallel Computing Example
with
Raspberry Pi Cluster
IBM’s
Blue Gene
Image source : https://en.wikipedia.org/wiki/Blue_Gene
Blue Gene’s
Scaling
Architecture
Image source : https://en.wikipedia.org/wiki/Blue_Gene
Image source : https://www.element14.com/community/docs/DOC-80899/l/raspberry-pi-3-model-b-technical-specifications
A computer cluster consists of a set of loosely or tightly
connected computers that work together so that, in many
respects, they can be viewed as a single system.
Image source :
http://www.zdnet.com/article/build-your-own-supercomputer-out-of-raspberry-pi-boards/
Our poor cluster architecture
(but works like a charm)
pi00 pi01 pi02
Switch
A Raspberry Pi 3 B as Master
+
2x Raspberry Pi 1 B as Nodes
Each :
- 700 (up to 1000) Mhz ARMv6
processor
- 256 MB RAM
- 16 GB flash storage
- Ethernet
- Other standart ports
Build steps
- Minimal foot print operating system (minibian)
- Connect them all in one subnet
- Seamless SSH access across nodes
- Install MPI library and its dependencies
- Distribute the program to each node
mpi4py
MPI (Message Passing Interface) binding for Python,
one program to rule them all (distributed system).
Some of the features :
- Send
- Receive
- Broadcast
- Scatter
- Gather
Basic MPI code structure
from mpi4py import MPI
comm = MPI.COMM_WORLD # Initiate communitacor
rank = comm.Get_rank() # Get the identity / label
if rank == 0 :
# I am master
# Communicate to other nodes
else :
# Do something as worker
# Communicate to other nodes
MPI execution across network
root@pi00:~$ mpiexec -n 3 --host pi00,pi01,pi02 ./program.py
Total node The node
hostname,
defined in
/etc/hosts
Parallel
computing
program
Artifical Intelligence
Bread First Search Pathfinding
Parallel Computing Example with Raspberry Pi Cluster
Bi-directional BFS Pathfinding
Parallel Computing Example with Raspberry Pi Cluster
Scatter
Master : Hei piSatu, kerjakan tugas, mulai dari titik A.
Eh piDua, sini, kerjakan mulai dari titik Z.
Tolong kerja sama yang baik!
Inter-node communication via master
piSatu : Sudah sampai O belom?
piDua : Beloman. Baru sampai R.
piSatu : Aku sudah dekat O nih.
piDua : Eh aku sudah sampai ke O.
piSatu : Sip! Aku sudah di O juga. Stop!
Gather
Master : Sudah? Sini kumpulin!
piSatu : ABCDEFGHIJKLMO
piDua : ZYXWVUTSRQPO
Master : ABCDEFGHIJKLMNOPQRSTUVWXYZ
Thank you

More Related Content

Viewers also liked (16)

ODP
Kelas Bootstrap Basic
Herpiko Dwi Aguno
 
PPTX
Herpiko Dwi Aguno - PKIWebSDK : Pustaka JavaScript untuk aplikasi PKI berbasi...
idsecconf
 
ODP
Ngaji NodeJs
Herpiko Dwi Aguno
 
PDF
FAST AND EFFICIENT IMAGE COMPRESSION BASED ON PARALLEL COMPUTING USING MATLAB
Journal For Research
 
PPT
Horizontal communication and the evolution of journalism
Donica Mensing
 
PDF
Parallel Computing into Javascript
Renato Augusto Gama
 
PPTX
Parallel computing
Kartik Kalpande Patil
 
PPT
Parallel computing diu pi cluster by Prof. Dr. Syed Akhter Hossain & Md Sami
MD Sami
 
PPTX
Parallel Computing in JS
Ahmed Gaber
 
PPTX
Concreteness
importerss
 
PPT
Introduction to parallel_computing
Mehul Patel
 
PPTX
Business Communication - Horizontal & Vertical Communication
Jay Mehta
 
PPTX
Upward communication
renujain1208
 
PPT
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
PPT
Parallel Computing
Ameya Waghmare
 
Kelas Bootstrap Basic
Herpiko Dwi Aguno
 
Herpiko Dwi Aguno - PKIWebSDK : Pustaka JavaScript untuk aplikasi PKI berbasi...
idsecconf
 
Ngaji NodeJs
Herpiko Dwi Aguno
 
FAST AND EFFICIENT IMAGE COMPRESSION BASED ON PARALLEL COMPUTING USING MATLAB
Journal For Research
 
Horizontal communication and the evolution of journalism
Donica Mensing
 
Parallel Computing into Javascript
Renato Augusto Gama
 
Parallel computing
Kartik Kalpande Patil
 
Parallel computing diu pi cluster by Prof. Dr. Syed Akhter Hossain & Md Sami
MD Sami
 
Parallel Computing in JS
Ahmed Gaber
 
Concreteness
importerss
 
Introduction to parallel_computing
Mehul Patel
 
Business Communication - Horizontal & Vertical Communication
Jay Mehta
 
Upward communication
renujain1208
 
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
Parallel Computing
Ameya Waghmare
 

Similar to Parallel Computing Example with Raspberry Pi Cluster (20)

PPTX
Senior Design: Raspberry Pi Cluster Computing
Ralph Walker II
 
PDF
MPI Presentation
Tayfun Sen
 
PDF
Elasticwulf Pycon Talk
Peter Skomoroch
 
DOCX
Clustering manual
Md. Mahedi Mahfuj
 
PDF
mpi4py.pdf
A Jorge Garcia
 
PDF
More mpi4py
A Jorge Garcia
 
PPTX
The Message Passing Interface (MPI) in Layman's Terms
Jeff Squyres
 
PDF
High Performance Computing using MPI
Ankit Mahato
 
PDF
Programming Modes and Performance of Raspberry-Pi Clusters
AM Publications
 
PDF
Mpi4py
A Jorge Garcia
 
PPTX
MPI Raspberry pi 3 cluster
Arafat Hussain
 
PDF
Building A Linux Cluster Using Raspberry PI #2!
A Jorge Garcia
 
PPTX
Introduction to MPI Basics easy way.pptx
imareebkhan25
 
PPT
What is [Open] MPI?
Jeff Squyres
 
PPT
Parallel computing(2)
Md. Mahedi Mahfuj
 
PPT
Lecture11
tt_aljobory
 
PDF
Operating Systems - Distributed Parallel Computing
Emery Berger
 
PDF
Move Message Passing Interface Applications to the Next Level
Intel® Software
 
PPT
Clusters (Distributed computing)
Sri Prasanna
 
PDF
2023comp90024_workshop.pdf
LevLafayette1
 
Senior Design: Raspberry Pi Cluster Computing
Ralph Walker II
 
MPI Presentation
Tayfun Sen
 
Elasticwulf Pycon Talk
Peter Skomoroch
 
Clustering manual
Md. Mahedi Mahfuj
 
mpi4py.pdf
A Jorge Garcia
 
More mpi4py
A Jorge Garcia
 
The Message Passing Interface (MPI) in Layman's Terms
Jeff Squyres
 
High Performance Computing using MPI
Ankit Mahato
 
Programming Modes and Performance of Raspberry-Pi Clusters
AM Publications
 
MPI Raspberry pi 3 cluster
Arafat Hussain
 
Building A Linux Cluster Using Raspberry PI #2!
A Jorge Garcia
 
Introduction to MPI Basics easy way.pptx
imareebkhan25
 
What is [Open] MPI?
Jeff Squyres
 
Parallel computing(2)
Md. Mahedi Mahfuj
 
Lecture11
tt_aljobory
 
Operating Systems - Distributed Parallel Computing
Emery Berger
 
Move Message Passing Interface Applications to the Next Level
Intel® Software
 
Clusters (Distributed computing)
Sri Prasanna
 
2023comp90024_workshop.pdf
LevLafayette1
 
Ad

Recently uploaded (20)

PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
July Patch Tuesday
Ivanti
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Python basic programing language for automation
DanialHabibi2
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Ad

Parallel Computing Example with Raspberry Pi Cluster