iTranslated by AI
Understanding HPL: A Mathematical Perspective
In this article, I would like to explain the calculations performed during the HPL test, which is commonly used as a benchmark for computers.
Understanding what kind of calculations are performed during the test will help in considering the roles of important HPL parameters such as NB, P-values, and Q-values.
While there are many mathematical formulas, I intend to explain them in an easy-to-understand manner.
What is HPL? Massive Simultaneous Equations and Matrices
HPL is a type of benchmark test used as a performance indicator for many supercomputers. It measures calculation speed by solving massive systems of simultaneous equations.
Massive Simultaneous Equations
If we only describe HPL as "solving massive simultaneous equations," it sounds like a simple test.
Simultaneous equations are a collection of equations with common unknowns, like the ones you learned in junior high school:
HPL solves a super-massive version of this.
For massive cases, there aren't enough letters in the alphabet, so subscripts are used like
We solve for all
The Score is the Speed of Calculation Counts
GFLOPS is used for the HPL score. This is an abbreviation for:
- G (Giga): 1 billion (
)10^9 - FL (Floating-point): Numbers like
1.234 \times 10^5 - OPS (Operations Per Second): Number of calculations per second
Simply put, it means "how many floating-point calculations could be done per second."
The reason for calculating with floating-point numbers is that almost all scientific and technical calculations (weather forecasting, drug development, physics simulations, etc.) require a massive amount of these calculations.
Anyway, the larger the value, the more amazing, faster, and cooler it is. (That escalated quickly)
Why Represent Them with Matrices?
HPL is about solving simultaneous equations, but the reality is matrix calculation.
Simultaneous equations can be represented by matrices.
If we turn these simultaneous equations into a matrix:
This is what it looks like.
The notation is different, but the meaning is exactly the same.
However, representing it as a matrix has the advantage of allowing for ingenuity in calculation.
Furthermore, if we represent the matrix on the left as
If
The strategy is to use the properties of matrices to make them easier to solve before seeking the target
Ingenuity Unique to Matrices
This ingenuity requires knowledge of matrices. Specifically, "elementary row operations," "matrix multiplication," and "LU decomposition" are necessary.
If you already know about "elementary row operations" and "matrix multiplication," feel free to skip to LU decomposition.
Elementary Row Operations
In simultaneous equations, you can perform subtraction or addition between rows of equations. Exactly the same thing can be done with matrices.
For example, subtracting twice the equation ① from ②, or adding ① to ③, makes the equations simpler.
Matrices can also undergo operations like subtracting twice the first row from the second row (
This is a common occurrence in matrices: when elements become mostly zeros or ones, subsequent calculations (like multiplication mentioned later) become easier.
HPL also frequently uses these transformations when finding
Matrix Multiplication
Matrix multiplication is the "sum of products of rows and columns." It's easier to understand by looking at it.
As shown below, matrix multiplication is an operation where you take the sum of the products of the rows (horizontal) of the left matrix and the columns (vertical) of the right matrix[2][3].
(3) is easy to understand. The elements of the row of the left matrix and the column of the right are multiplied in order and then added.

Matrix multiplication is arduous to compute. However, if you have used elementary row operations in advance to ensure there are many zeros and ones, you can make the calculations slightly easier.
What is LU Decomposition?
The trick called LU decomposition makes solving for
Lower (Lower Triangular Matrix) and Upper (Upper Triangular Matrix)
LU decomposition is the task of splitting a matrix into a lower triangular matrix and an upper triangular matrix.
It is better to look at what lower and upper triangular matrices are. You will likely understand their origins.
These are matrices where the upper-right or lower-left halves are composed of zeros.
To reiterate, when there are many zeros and ones in a matrix, it becomes easier to calculate. By decomposing it this way, even for a massive matrix, you can simplify the calculation somewhat.
How to Perform LU Decomposition
I would like to illustrate how to perform LU decomposition using a 3x3 matrix.
Ultimately, a transformation like the one in the equation above is performed.
Actually, once you find either L or U, the other is automatically found, so it is not that difficult.
First, transform
Record the factors used (e.g., "what multiplier was subtracted"). Where do you record them? As elements of the
Since we subtracted twice the second row and -1 times the third row,
The only thing left is
Furthermore, we see that
LU decomposition is now complete. You can see that multiplying the matrices actually returns the original matrix.
Actual Solution Method
I will explain the calculations actually performed in HPL.
We solve this for
LU Decomposition
First, perform LU decomposition on
Please compute this carefully.
Intermediate Vector \bold{y}
It cannot be solved as is, so we introduce another twist.
Set
Once
This example only goes up to three rows, but this method can be used to solve much larger matrices.
Finding \bold{x}
Thanks to the lower triangular matrix,
Originally,
Now, we can find
By using the matrix-specific trick of LU decomposition, we were able to find
Verify Accuracy Before Generating Score
In the example above, we calculated using integers, but actual HPL uses floating-point numbers. Because of computer number systems, calculations with floating-point numbers can lead to errors.
Therefore, we verify if the obtained
Determining accuracy is simple: we solve the following equation:
Continued
This article introduced the mathematical concepts and techniques used in HPL calculations. There are still other calculations performed during HPL, but this covers the mathematical logic.
-
and\bold{x} are both vector quantities. You don't need to worry about this for now, but whether they are vectors is an important concept. Vectors are denoted using bold text like\bold{b} or using arrows like\bold{x} . In this article, I use bold text, which is less distracting, to make it easier for people who are not used to scalar or vector quantities. ↩︎\overrightarrow{x} -
In normal multiplication, a×b and b×a yield the same result, but for matrices, the order of multiplication changes the result. A multiplication like A·B is called "multiplying B by A from the left." ↩︎
-
There are two types of multiplication: the one denoted by "·" is the dot product, and the one denoted by "×" is the cross product. Each yields different meanings and values. Generally, AB refers to A·B (dot product). ↩︎
-
can be considered as the record of obtainingL fromU . Therefore, you have already foundA just by doing this. ↩︎L

Discussion