Summary and Schedule
This is a new lesson built with The Carpentries Workbench.
| Setup Instructions | Download files required for the lesson | |
| Duration: 00h 00m | 1. Introduction |
What’s the problem we are trying to solve? Is it suitable for a supercomputer? |
| Duration: 00h 12m | 2. Connecting to Falcon - SSH keys |
How can I connect to Falcon without typing my password every
time? What do the public and private keys do, and which one can I share? How can I make connections quicker and safer to use? |
| Duration: 00h 52m | 3. Finding the software and libraries you need |
Where do Python and NumPy come from on Falcon, and is the Python on the
login node the one I should use? How do I search for software, including Python packages hidden inside bundle modules? How do I choose between several versions of the same software? Why must I not run my script on the login node? :::::::::::::::::::::::::::::::::::::::::::::::: |
| Duration: 01h 27m | 4. Estimating resources |
How much resource should I ask for? How do I submit a job, follow it and find its output? Is my script faster on Falcon than on my laptop? :::::::::::::::::::::::::::::::::::::::::::::::: |
| Duration: 01h 39m | 5. Making the job script safe |
How do I stop one job from overwriting the results of another? How can the job script tell me about the job it is running in? How do I make a job script stop when something goes wrong, instead of carrying on? Where should a job write its files, and who cleans up afterwards? |
| Duration: 02h 19m | 6. Can more cores make it faster? |
If I ask for more CPUs, will my job run faster? How do I measure how well a program uses extra CPUs? What limits how much faster a program can get? |
| Duration: 02h 59m | 7. Measuring efficiency with sacct and seff |
How can I see what my finished jobs asked for and what they actually
used? Why is the CPU efficiency of a job almost never 100%? Why can a job that took far longer still report a high efficiency? |
| Duration: 03h 44m | 8. Watching a job run: interactive sessions, tmux, htop and ps |
How do I get a shell on a compute node to try things out or to watch a
program run? How can I keep that session alive if my connection drops, and look at two things at once? How can I see, while a program runs, how many CPUs it is really using? |
| Duration: 04h 29m | 9. Finding the bottleneck with a profiler |
Where does my program spend its time? How do I profile a Python program with Linaro Forge on Falcon? What should I look at in the profile? |
| Duration: 04h 54m | 10. Improving the code |
Once I know where the time goes, what can I do about it? Which changes give the most for the least effort? How do I check that a faster program still gives the right answer? |
| Duration: 05h 29m | 11. Running many analyses: array jobs and GNU Parallel |
How do I run the same analysis many times with different inputs? Why does the cluster limit how many jobs I can submit, and what can I do about it? When is an array job a bad idea, and what is the alternative? |
| Duration: 06h 29m | 12. Using GPUs |
How do I get access to a GPU on Falcon? Why is the software different on GPU nodes? How does a Python program use a GPU? |
| Duration: 07h 04m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
You can already log in to Falcon and run jobs. This lesson takes you from there to running your work faster and more reliably. Everything is built around one Python program that is fine on a laptop but disappointing on a supercomputer, and through live coding we find out why and fix it step by step.
Prerequisites
- A Falcon user account and a project to run jobs under (contact us if you need temporary access to a training project, see Setup)
- Comfort with the Linux command line: moving around directories, copying files and editing a text file
- Experience submitting a simple Slurm batch job (
sbatch,squeue) - No Python programming is needed
After this lesson you will be able to
- Set up SSH keys for passwordless access
- Identify the CPU and GPU architectures on Falcon and explain how they affect software
- Find and load additional software and Python packages
- Write more robust job scripts using Slurm environment variables and shell safeguards
- Estimate resource requirements and measure job efficiency
- Use
tmuxand live monitoring tools in interactive sessions - Use a profiler to find performance bottlenecks
- Run many tasks with array jobs and GNU Parallel, and explain QOS limits
- Run applications on GPU partitions
Data Sets
Download the data zip file and unzip it to your Desktop
Software Setup
Attendees need a program to connect via SSH to the Falcon supercomputer.
Remember you need to enable Cardiff VPN client to connect to Falcon and our documentation website.
Optional: Install Python and Numpy on your laptop to
run sweep.py included in the data
zip file to obtain base runtimes for comparison with Falcon.
Optional: Install Linaro Forge (remote client only) to analyse profiler files.
Use Powershell or PuTTY
Use Terminal.app
Use Terminal