SlideShare a Scribd company logo
Introducing HPC with a Raspberry Pi Cluster
Colin Sauzé <cos@aber.ac.uk>
Research Software Engineer
Super Computing Wales Project
Aberystwyth University
A practical use of and good excuse to build Raspberry Pi Clusters
Overview
● About Me
● Inspirations
● Why teach HPC with Raspberry Pi?
● My Raspberry Pi cluster
● Experiences from teaching
● Future Work
About Me
● Research Software Engineer with
Supercomputing Wales project
– 4 university partnership to supply
HPC systems
– Two physical HPCs
● PhD in Robotics
– Experience with Linux on single
board computers
– Lots of Raspberry Pi projects
Inspiration #1: Los Alamos National Laboratory
● 750 node cluster
● Test system for software
development
● Avoid tying up the real cluster
Inspiration #2: Wee Archie/Archlet
● EPCC’s Raspberry Pi Cluster
● Archie: 18x Raspberry Pi 2’s
(4 cores each)
● Archlet: smaller 4 or 5 node
clusters.
● Used for outreach demos.
● Setup instructions:
https://github.com/EPCCed/w
ee_archlet
Image from
https://raw.githubusercontent.com/EPCCed/wee_archlet/master/images/IMG_20170210_132818620.jpg
Inspiration #3: Swansea’s Raspberry Pi Cluster
● 16x Raspberry Pi 3s
● CFD demo using a Kinect
sensor
● Demoed at the Swansea
Festival of Science 2018
Why Teach with a Raspberry Pi cluster?
● Avoid loading real clusters doing actual research
– Less fear from learners that they might break something
● Resource limits more apparent
● More control over the environment
● Hardware less abstract
● No need to have accounts on a real HPC
My Cluster
● “Tweety Pi”
– 10x Raspberry Pi model B
version 1s
– 1x Raspberry Pi 3 as
head/login node
– Raspbian Stretch
● Head node acts as WiFi
access point
– Internet via phone or laptop
Demo Software
● British Science Week 2019
– Simple Pi with Monte Carlo methods demo
– MPI based
– GUI to control how many jobs launch and show
queuing
● Swansea CFD demo
– Needs more compute power
– 16x Raspberry Pi 3 vs 10x Raspberry Pi 1
● Wee Archie/Archlet Demos
– Many demos available
●
I only found this recently
– https://github.com/EPCCed/wee_archie
Making a realistic HPC environment
● MPICH
● Slurm
● Quotas on home directories
● NFS mounted home directories
● Software modules
● Network booting compute nodes
Network booting hack
● No PXE boot support on original Raspberry Pi (or Raspberry Pi
B+ and 2)
● Kernel + bootloader on SD card
● Root filesystem on NFS
– Cmdline.txt contains:
● console=tty1 root=/dev/nfs 
nfsroot=10.0.0.10:/nfs/node_rootfs,vers=3 ro ip=dhcp 
elevator=deadline rootwait
● SD cards can be identical, small 50mb image, easy to replace
Teaching Materials
● Based on Introduction to HPC with Super Computing Wales carpentry style
lesson:
– What is an HPC?
– Logging in
– Filesystems and transferring data
– Submitting/monitoring jobs with Slurm
– Profiling
– Parallelising code, Amdahl’s law
– MPI
– HPC Best Practice
Experiences from Teaching – STFC Summer
School
● New PhD students in solar
physics
– Not registered at universities
yet, no academic accounts
● 15 people each time
– 1st time using HPC for many
– Most had some Unix
experience
● Subset of Super Computing
Wales introduction to HPC
carpentry lesson
Feedback
● Very Positive
●
A lot seemed to enjoy playing around with SSH/SCP
– First time using a remote shell for some
– Others more adventurous than they might have been on a real HPC
● Main complaint was lack of time (only 1.5 hours)
– Only got as far as covering basic job submission
– Quick theoretical run through of MPI and Amdahl’s law
– Probably have 3-4 hours of material
●
Queuing became very apparent
– 10 nodes, 15 users
– “watch squeue” running on screen during practical parts
Problems
● Slurm issues on day 1
– Accidentally overwrote a system user when creating accounts
● WiFi via Laptop/phone slow
– When users connect to the cluster its their internet connection too
– Relied on this for access to course notes
Experiences from teaching – Supercomputing
Wales Training
● Approximately 10 people
– Mix of staff and research students
– Mixed experience levels
– All intending to use a real HPC
● Simultaneously used Raspberry Pi and real HPC
– Same commands run on both
● Useful backup system for those with locked accounts
● Feedback good
– Helped make HPC more tangible
Future Work
● Configuration management tool
(Ansible/Chef/Puppet/Salt etc) instead
of script for configuration
● CentOS/Open HPC stack instead of
Raspbian
● Public engagement demo which
focuses on our research
– Analysing satellite imagery
– Simulate the monsters from MonsterLab
(https://monster-lab.org/)
More Information
● Setup instructions and scripts -
https://github.com/colinsauze/pi_cluster
● Teaching material -
https://github.com/SCW-Aberystwyth/Introduction-to-HPC-with-
RaspberryPi
● Email me: cos@aber.ac.uk

More Related Content

PDF
CUDA-Python and RAPIDS for blazing fast scientific computing
PDF
State of ARM-based HPC
PDF
Exploring the Programming Models for the LUMI Supercomputer
PDF
High-Performance and Scalable Designs of Programming Models for Exascale Systems
PDF
Introduction to GPUs in HPC
PDF
Programming Models for Exascale Systems
PDF
A Library for Emerging High-Performance Computing Clusters
PDF
ARM HPC Ecosystem
CUDA-Python and RAPIDS for blazing fast scientific computing
State of ARM-based HPC
Exploring the Programming Models for the LUMI Supercomputer
High-Performance and Scalable Designs of Programming Models for Exascale Systems
Introduction to GPUs in HPC
Programming Models for Exascale Systems
A Library for Emerging High-Performance Computing Clusters
ARM HPC Ecosystem

What's hot (20)

PDF
Lustre Best Practices
PDF
Utilizing AMD GPUs: Tuning, programming models, and roadmap
PDF
Getting started with AMD GPUs
PDF
TAU E4S ON OpenPOWER /POWER9 platform
PDF
Microsoft Project Olympus AI Accelerator Chassis (HGX-1)
PDF
A PCIe Congestion-Aware Performance Model for Densely Populated Accelerator S...
PPTX
AI OpenPOWER Academia Discussion Group
PDF
BXI: Bull eXascale Interconnect
PDF
IBM HPC Transformation with AI
PDF
Energy Efficient Computing using Dynamic Tuning
PDF
OpenCAPI-based Image Analysis Pipeline for 18 GB/s kilohertz-framerate X-ray ...
PPT
Welcome to the 2016 HPC Advisory Council Switzerland Conference
PDF
Evaluating GPU programming Models for the LUMI Supercomputer
PDF
ARM and Machine Learning
PDF
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
PDF
DOME 64-bit μDataCenter
PDF
SCFE 2020 OpenCAPI presentation as part of OpenPWOER Tutorial
PDF
Assisting User’s Transition to Titan’s Accelerated Architecture
PDF
OpenHPC: A Comprehensive System Software Stack
PDF
Deep Learning on ARM Platforms - SFO17-509
Lustre Best Practices
Utilizing AMD GPUs: Tuning, programming models, and roadmap
Getting started with AMD GPUs
TAU E4S ON OpenPOWER /POWER9 platform
Microsoft Project Olympus AI Accelerator Chassis (HGX-1)
A PCIe Congestion-Aware Performance Model for Densely Populated Accelerator S...
AI OpenPOWER Academia Discussion Group
BXI: Bull eXascale Interconnect
IBM HPC Transformation with AI
Energy Efficient Computing using Dynamic Tuning
OpenCAPI-based Image Analysis Pipeline for 18 GB/s kilohertz-framerate X-ray ...
Welcome to the 2016 HPC Advisory Council Switzerland Conference
Evaluating GPU programming Models for the LUMI Supercomputer
ARM and Machine Learning
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
DOME 64-bit μDataCenter
SCFE 2020 OpenCAPI presentation as part of OpenPWOER Tutorial
Assisting User’s Transition to Titan’s Accelerated Architecture
OpenHPC: A Comprehensive System Software Stack
Deep Learning on ARM Platforms - SFO17-509
Ad

Similar to Introducing HPC with a Raspberry Pi Cluster (20)

PPT
Raspberry Pi Cluster Test Bed
PPTX
High performance computing for research
PPTX
PDF
Accessible hpc for everyone with docker and containers
PDF
PDF
PDF
OpenNebulaconf2017US: Rapid scaling of research computing to over 70,000 cor...
PPTX
Presentation 2 Spring 2016 FINAL fat cut (1)
PDF
PPTX
HannaRaspberryPi
PDF
HPC Cluster Computing from 64 to 156,000 Cores 
PDF
PDF
Cheap HPC
PPTX
Senior Design: Raspberry Pi Cluster Computing
PDF
High Performance Computing in a Nutshell
PDF
PERFORMANCE AND ENERGY-EFFICIENCY ASPECTS OF CLUSTERS OF SINGLE BOARD COMPUTERS
PDF
PERFORMANCE AND ENERGY-EFFICIENCY ASPECTS OF CLUSTERS OF SINGLE BOARD COMPUTERS
PDF
R&D work on pre exascale HPC systems
PDF
PDF
Uber cloud at ucc dresden dec 2013
Raspberry Pi Cluster Test Bed
High performance computing for research
Accessible hpc for everyone with docker and containers
OpenNebulaconf2017US: Rapid scaling of research computing to over 70,000 cor...
Presentation 2 Spring 2016 FINAL fat cut (1)
HannaRaspberryPi
HPC Cluster Computing from 64 to 156,000 Cores 
Cheap HPC
Senior Design: Raspberry Pi Cluster Computing
High Performance Computing in a Nutshell
PERFORMANCE AND ENERGY-EFFICIENCY ASPECTS OF CLUSTERS OF SINGLE BOARD COMPUTERS
PERFORMANCE AND ENERGY-EFFICIENCY ASPECTS OF CLUSTERS OF SINGLE BOARD COMPUTERS
R&D work on pre exascale HPC systems
Uber cloud at ucc dresden dec 2013
Ad

More from inside-BigData.com (20)

PDF
Major Market Shifts in IT
PDF
Preparing to program Aurora at Exascale - Early experiences and future direct...
PPTX
Transforming Private 5G Networks
PDF
The Incorporation of Machine Learning into Scientific Simulations at Lawrence...
PDF
How to Achieve High-Performance, Scalable and Distributed DNN Training on Mod...
PDF
Evolving Cyberinfrastructure, Democratizing Data, and Scaling AI to Catalyze ...
PDF
HPC Impact: EDA Telemetry Neural Networks
PDF
Biohybrid Robotic Jellyfish for Future Applications in Ocean Monitoring
PDF
Machine Learning for Weather Forecasts
PPTX
HPC AI Advisory Council Update
PDF
Fugaku Supercomputer joins fight against COVID-19
PDF
HPC at Scale Enabled by DDN A3i and NVIDIA SuperPOD
PDF
Versal Premium ACAP for Network and Cloud Acceleration
PDF
Zettar: Moving Massive Amounts of Data across Any Distance Efficiently
PDF
Scaling TCO in a Post Moore's Era
PDF
Overview of HPC Interconnects
PDF
Efficient Model Selection for Deep Neural Networks on Massively Parallel Proc...
PDF
Data Parallel Deep Learning
PDF
Making Supernovae with Jets
PDF
Adaptive Linear Solvers and Eigensolvers
Major Market Shifts in IT
Preparing to program Aurora at Exascale - Early experiences and future direct...
Transforming Private 5G Networks
The Incorporation of Machine Learning into Scientific Simulations at Lawrence...
How to Achieve High-Performance, Scalable and Distributed DNN Training on Mod...
Evolving Cyberinfrastructure, Democratizing Data, and Scaling AI to Catalyze ...
HPC Impact: EDA Telemetry Neural Networks
Biohybrid Robotic Jellyfish for Future Applications in Ocean Monitoring
Machine Learning for Weather Forecasts
HPC AI Advisory Council Update
Fugaku Supercomputer joins fight against COVID-19
HPC at Scale Enabled by DDN A3i and NVIDIA SuperPOD
Versal Premium ACAP for Network and Cloud Acceleration
Zettar: Moving Massive Amounts of Data across Any Distance Efficiently
Scaling TCO in a Post Moore's Era
Overview of HPC Interconnects
Efficient Model Selection for Deep Neural Networks on Massively Parallel Proc...
Data Parallel Deep Learning
Making Supernovae with Jets
Adaptive Linear Solvers and Eigensolvers

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
KodekX | Application Modernization Development
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced IT Governance
PDF
Modernizing your data center with Dell and AMD
PPTX
MYSQL Presentation for SQL database connectivity
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Per capita expenditure prediction using model stacking based on satellite ima...
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Review of recent advances in non-invasive hemoglobin estimation
madgavkar20181017ppt McKinsey Presentation.pdf
Spectral efficient network and resource selection model in 5G networks
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KodekX | Application Modernization Development
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced Soft Computing BINUS July 2025.pdf
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced IT Governance
Modernizing your data center with Dell and AMD
MYSQL Presentation for SQL database connectivity
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Introducing HPC with a Raspberry Pi Cluster

  • 1. Introducing HPC with a Raspberry Pi Cluster Colin Sauzé <[email protected]> Research Software Engineer Super Computing Wales Project Aberystwyth University A practical use of and good excuse to build Raspberry Pi Clusters
  • 2. Overview ● About Me ● Inspirations ● Why teach HPC with Raspberry Pi? ● My Raspberry Pi cluster ● Experiences from teaching ● Future Work
  • 3. About Me ● Research Software Engineer with Supercomputing Wales project – 4 university partnership to supply HPC systems – Two physical HPCs ● PhD in Robotics – Experience with Linux on single board computers – Lots of Raspberry Pi projects
  • 4. Inspiration #1: Los Alamos National Laboratory ● 750 node cluster ● Test system for software development ● Avoid tying up the real cluster
  • 5. Inspiration #2: Wee Archie/Archlet ● EPCC’s Raspberry Pi Cluster ● Archie: 18x Raspberry Pi 2’s (4 cores each) ● Archlet: smaller 4 or 5 node clusters. ● Used for outreach demos. ● Setup instructions: https://github.com/EPCCed/w ee_archlet Image from https://raw.githubusercontent.com/EPCCed/wee_archlet/master/images/IMG_20170210_132818620.jpg
  • 6. Inspiration #3: Swansea’s Raspberry Pi Cluster ● 16x Raspberry Pi 3s ● CFD demo using a Kinect sensor ● Demoed at the Swansea Festival of Science 2018
  • 7. Why Teach with a Raspberry Pi cluster? ● Avoid loading real clusters doing actual research – Less fear from learners that they might break something ● Resource limits more apparent ● More control over the environment ● Hardware less abstract ● No need to have accounts on a real HPC
  • 8. My Cluster ● “Tweety Pi” – 10x Raspberry Pi model B version 1s – 1x Raspberry Pi 3 as head/login node – Raspbian Stretch ● Head node acts as WiFi access point – Internet via phone or laptop
  • 9. Demo Software ● British Science Week 2019 – Simple Pi with Monte Carlo methods demo – MPI based – GUI to control how many jobs launch and show queuing ● Swansea CFD demo – Needs more compute power – 16x Raspberry Pi 3 vs 10x Raspberry Pi 1 ● Wee Archie/Archlet Demos – Many demos available ● I only found this recently – https://github.com/EPCCed/wee_archie
  • 10. Making a realistic HPC environment ● MPICH ● Slurm ● Quotas on home directories ● NFS mounted home directories ● Software modules ● Network booting compute nodes
  • 11. Network booting hack ● No PXE boot support on original Raspberry Pi (or Raspberry Pi B+ and 2) ● Kernel + bootloader on SD card ● Root filesystem on NFS – Cmdline.txt contains: ● console=tty1 root=/dev/nfs  nfsroot=10.0.0.10:/nfs/node_rootfs,vers=3 ro ip=dhcp  elevator=deadline rootwait ● SD cards can be identical, small 50mb image, easy to replace
  • 12. Teaching Materials ● Based on Introduction to HPC with Super Computing Wales carpentry style lesson: – What is an HPC? – Logging in – Filesystems and transferring data – Submitting/monitoring jobs with Slurm – Profiling – Parallelising code, Amdahl’s law – MPI – HPC Best Practice
  • 13. Experiences from Teaching – STFC Summer School ● New PhD students in solar physics – Not registered at universities yet, no academic accounts ● 15 people each time – 1st time using HPC for many – Most had some Unix experience ● Subset of Super Computing Wales introduction to HPC carpentry lesson
  • 14. Feedback ● Very Positive ● A lot seemed to enjoy playing around with SSH/SCP – First time using a remote shell for some – Others more adventurous than they might have been on a real HPC ● Main complaint was lack of time (only 1.5 hours) – Only got as far as covering basic job submission – Quick theoretical run through of MPI and Amdahl’s law – Probably have 3-4 hours of material ● Queuing became very apparent – 10 nodes, 15 users – “watch squeue” running on screen during practical parts
  • 15. Problems ● Slurm issues on day 1 – Accidentally overwrote a system user when creating accounts ● WiFi via Laptop/phone slow – When users connect to the cluster its their internet connection too – Relied on this for access to course notes
  • 16. Experiences from teaching – Supercomputing Wales Training ● Approximately 10 people – Mix of staff and research students – Mixed experience levels – All intending to use a real HPC ● Simultaneously used Raspberry Pi and real HPC – Same commands run on both ● Useful backup system for those with locked accounts ● Feedback good – Helped make HPC more tangible
  • 17. Future Work ● Configuration management tool (Ansible/Chef/Puppet/Salt etc) instead of script for configuration ● CentOS/Open HPC stack instead of Raspbian ● Public engagement demo which focuses on our research – Analysing satellite imagery – Simulate the monsters from MonsterLab (https://monster-lab.org/)
  • 18. More Information ● Setup instructions and scripts - https://github.com/colinsauze/pi_cluster ● Teaching material - https://github.com/SCW-Aberystwyth/Introduction-to-HPC-with- RaspberryPi ● Email me: [email protected]