LINPACK_BENCH is a FORTRAN90 program which carries out the LINPACK Benchmark.
The LINPACK benchmark is a test problem used to rate the performance of a computer on a simple linear algebra problem.
The test problem requires the user to set up a random dense matrix A of size N = 1000, and a right hand side vector B which is the product of A and a vector X of all 1's. The first task is to compute an LU factorization of A. The second task is to use the LU factorization to solve the linear system
A * X = B.
The number of floating point operations required for these two tasks is roughly
ops = 2 * N*N*N / 3 + 2 * N * N,therefore, the "MegaFLOPS" rating, or millions of floating point operations per second, can be found as
mflops = ops / ( cpu * 1000000 ).
On a given computer, if you run the benchmark for a sequence of increasing values of N, the behavior of the MegaFLOPS rating will vary as you pass through three main zones of behavior:
Language | Precision | Type | Machine | Comment | MegaFLOPS |
---|---|---|---|---|---|
Fortran90 | Single | Real | Chili | (rewritten) | 240 |
Fortran90 | Single | Real | Kachina | 196 | |
Fortran90 | Single | Real | Chili | 194 | |
Fortran90 | Single | Real | Eclipse | (1 processor) | 127 |
Fortran90 | Single | Real | DHCP95 (Apple G5) | gfortran | 118 |
Fortran90 | Single | Real | Yankee (Apple G4) | 36 | |
Fortran90 | Single | Real | Teragold | (1 processor) | 18 |
Fortran90 | Single | Real | Sgi | 16 | |
Fortran90 | Double | Real | DHCP95 (Apple G5) | gfortran | 149 |
Fortran90 | Double | Real | Chili | fort -fast | 104 |
Fortran90 | Double | Real | Kachina | 87 | |
Fortran90 | Double | Real | Chili | 77 | |
Fortran90 | Quad | Real | DHCP95 (Apple G5) | gfortran | 23 |
Fortran90 | Quad | Real | Chili | 10 |
LINPACK_BENCH is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a JAVA version and a MATLAB version.
LINPACK_D, a FORTRAN90 library which supplies the solvers used by LINPACK_BENCH.
LINPACK_Q, a FORTRAN90 library which implements a few of the LINPACK library of linear solvers, using quadruple precision.
MATMUL, a FORTRAN90 program which is an interactive matrix multiplication benchmark program.
MDBNCH, a FORTRAN77 program which is a benchmark code for a molecular dynamics calculation.
MEMORY_TEST, a FORTRAN90 program which declares and uses a sequence of larger and larger vectors, to see how big a vector can be used on a given machine and compiler.
MXM, a FORTRAN90 program which sets up a matrix multiplication problem A=B*C of arbitrary size, and compares the time required for IJK, IKJ, JIK, JKI, KIJ and KJI orderings of the loops.
MXV, a FORTRAN90 program which compares the performance of (DO I, DO J) loops, (DO J, DO I) loops, and MATMUL for computing the product of an MxN matrix A and an N vector X.
NAS, a FORTRAN90 program which runs the NASA kernel benchmark.
SUM_MILLION, a FORTRAN90 program which sums the integers from 1 to 1,000,000, as a demonstration of how to rate a computer's speed;
TIMER, a FORTRAN90 example which demonstrates how to measure CPU time or elapsed time.
LINPACK_BENCH_S is the single precision version:
LINPACK_BENCH_D is the double precision version:
LINPACK_BENCH_Q is the quad precision version (your compiler might not allow this arithmetic type, or you may have to change the syntax of the program to get it):
This is the list of routines for the double precision version of the benchmark program. The single and quad precision names are similar.
You can go up one level to the FORTRAN90 source codes.