How to evaluate a run
Last updated on 2026-10-27 | Edit this page
Overview
Questions
- What do you do after a run finishes, and what do you do with that answer?
- Which line of
time -pis the time you waited?
Objectives
- Name the three steps in the life cycle of an HPC application.
- Time one short command with
time -pand readreal.
The life cycle
An HPC application is software written to use a supercomputer or a cluster on a hard problem. It does three kinds of work: intensive computation, communication between parallel processes, and input and output on a fast file system.
The life cycle is a loop with three steps.
- Run the application.
- Evaluate the performance.
- Make changes to the application.
Then you run it again. A change you have not timed is a guess.
What “evaluate” can mean
The deck lists several ways to evaluate a run:
- Tools such as Score-P, Scalasca, Nsight Systems, and AMD uProf.
- The execution time.
- The memory footprint.
- The network load.
- A comparison with a similar application or model.
- A comparison on different hardware.
- A guess you have not measured.
This episode uses the second one. You time one short command and write down a single number. Later episodes compare that kind of number. They do not replace this first step.
time -p
time -p is the POSIX form. It prints three lines on
standard error.
-
realis the elapsed time, the seconds you waited. That is the wall-clock time. -
userandsysare CPU time. Added together they can be larger thanrealwhen several cores run at once. They can be near zero when the process is waiting.
real is the wall-clock time. For sleep 1 it
is about 1 second. user and sys are near zero
because the process spent the second waiting, not computing. Write the
real line down. That is the whole measurement this episode
asks for: one short timed run, one number.
- The life cycle is run, evaluate, change, and run again.
-
time -pprintsreal,user, andsys. -
realis the wall-clock seconds you waited. - Start with one short timed run before you reach for a profiler.