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

What's hot (20)

PDF
An Overview of Distributed Debugging
Anant Narayanan
 
PPTX
Quality of Service
S. M. Shakib Limon
 
PPTX
Introduction to Data Center Network Architecture
Ankita Mahajan
 
PPT
program partitioning and scheduling IN Advanced Computer Architecture
Pankaj Kumar Jain
 
PPTX
TCP/IP model
Krishnkant Pandey
 
PPTX
Stream oriented communication
Shyama Bhuvanendran
 
PPTX
Distributed dbms architectures
Pooja Dixit
 
PPTX
Network Hardware And Software
Steven Cahill
 
PDF
Distributed Computing with Apache Hadoop: Technology Overview
Konstantin V. Shvachko
 
PPT
Introduction to computer network
Rutwik Jadhav
 
PDF
Cloud Mashup
Vasco Elvas
 
PPTX
Peer To Peer Networking
icanhasfay
 
PPT
Leach & Pegasis
ReenaShekar
 
PPT
Ppt for tranmission media
Manish8976
 
PDF
ISDN Integrated Services Digital Network
Madhumita Tamhane
 
PPTX
Routing algorithms
Parameswaran Selvakumar
 
PPT
Hardware multithreading
Fraboni Ec
 
PPT
Bluetooth protocol stack
stuimrozsm
 
PPTX
Congestion control algorithms.pptx
ujjwalmatoliya
 
An Overview of Distributed Debugging
Anant Narayanan
 
Quality of Service
S. M. Shakib Limon
 
Introduction to Data Center Network Architecture
Ankita Mahajan
 
program partitioning and scheduling IN Advanced Computer Architecture
Pankaj Kumar Jain
 
TCP/IP model
Krishnkant Pandey
 
Stream oriented communication
Shyama Bhuvanendran
 
Distributed dbms architectures
Pooja Dixit
 
Network Hardware And Software
Steven Cahill
 
Distributed Computing with Apache Hadoop: Technology Overview
Konstantin V. Shvachko
 
Introduction to computer network
Rutwik Jadhav
 
Cloud Mashup
Vasco Elvas
 
Peer To Peer Networking
icanhasfay
 
Leach & Pegasis
ReenaShekar
 
Ppt for tranmission media
Manish8976
 
ISDN Integrated Services Digital Network
Madhumita Tamhane
 
Routing algorithms
Parameswaran Selvakumar
 
Hardware multithreading
Fraboni Ec
 
Bluetooth protocol stack
stuimrozsm
 
Congestion control algorithms.pptx
ujjwalmatoliya
 

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
 
Ad

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
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PPTX
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 

Parallel Computing Example with Raspberry Pi Cluster