# LINPACK

LINPACK基准测试是一种计算机性能基准测试，用于衡量系统求解稠密线性方程组的速度，以每秒浮点运算次数报告结果。它由[田纳西大学](https://www.edgepedia.org/zh/university-of-tennessee)（University of Tennessee）计算机科学教授[杰克·唐加拉](https://www.edgepedia.org/zh/jack-dongarra)（Jack Dongarra）提出，大量计算机的测试结果已汇总在一份大约每年更新两次的报告中<sup>[1](https://www.netlib.org/benchmark/top500/lists/linpack.html)</sup><sup> • </sup><sup>[2](https://www.math.utah.edu/software/linpack.html)</sup>。该基准测试最为人所知的是作为全球最快超级计算机TOP500榜单的基础，该榜单于1993年6月首次发布<sup>[3](https://www.top500.org/25years/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 任务 | 使用带部分主元消去法的LU分解求解稠密线性方程组Ax = b<sup>[1](https://www.netlib.org/benchmark/top500/lists/linpack.html)</sup><sup> • </sup><sup>[4](https://www.top500.org/files/TOP500_Looking_back_HWM.pdf)</sup> |
| 运算计数 | 算法必须符合标准计数\( \tfrac{2}{3}n^{3} + O(n^{2}) \)次浮点运算，其中不包括Strassen算法等快速矩阵乘法方法<sup>[1](https://www.netlib.org/benchmark/top500/lists/linpack.html)</sup> |
| 报告指标 | Rmax（运行最大问题时的性能）、Nmax（该问题的规模）、N½（性能为Rmax一半时的问题规模）和Rpeak（理论峰值）<sup>[5](https://www.netlib.org/performance/papers/linpack/)</sup> |
| 原始形式 | 使用未经修改的LINPACK Fortran例程求解一个100阶矩阵；一个1000阶的“迈向峰值性能”变体允许重写或替换代码<sup>[2](https://www.math.utah.edu/software/linpack.html)</sup> |
| 分布式内存形式 | HPL，即面向分布式内存计算机的可移植高性能Linpack，参考实现版本2.3（Petitet、Whaley、杰克·唐加拉、Cleary，2018年12月2日）<sup>[6](https://www.netlib.org/benchmark/hpl/)</sup> |
| TOP500首秀 | 首份榜单发布于1993年6月24日；排名第一的系统是洛斯阿拉莫斯国家实验室（Los Alamos National Laboratory）的一台CM-5，拥有3,680个处理器，运行Linpack达到143.40 Gflop/s<sup>[3](https://www.top500.org/25years/)</sup> |
| 当前领先者 | El Capitan在2025年11月的榜单上以HPL验证性能1.809 exaFLOPS蝉联第一；LineShine后来达到2.198 FP64 exaFLOPS，成为首台仅用CPU突破2 exaFLOPS的机器<sup>[7](https://www.llnl.gov/article/53596/el-capitan-retains-title-worlds-fastest-supercomputer-latest-top500)</sup><sup> • </sup><sup>[8](https://www.tomshardware.com/tech-industry/supercomputers/chinas-lineshine-supercomputer-dethrones-us-el-capitan-secures-first-place-in-top-500-list-first-machine-in-the-rankings-to-sustain-more-than-2-exaflops-of-double-precision-performance-using-only-cpus)</sup> |

## 基准测试及其规则

任务是求解稠密线性方程组。在原始形式中，计时运行使用LINPACK库中的两个例程——单精度用SGEFA和SGESL，双精度用DGEFA和DGESL——对一个100阶矩阵执行带部分主元消去法的标准LU分解和回代，不允许修改Fortran源代码<sup>[5](https://www.netlib.org/performance/papers/linpack/)</sup>。第二列标为“迈向峰值性能”（TPP），使用一个1000阶问题并允许手工优化：用户可以替换或修改LU例程并提供任何求解方法，前提是使用带有测试矩阵生成器和残差检查的主驱动程序，并且Mflop/s速率根据[LU分解](https://www.edgepedia.org/zh/lu-decomposition)的运算计数计算<sup>[5](https://www.netlib.org/performance/papers/linpack/)</sup>。

对于TOP500，使用的版本允许调整问题规模并优化软件以在给定机器上达到最佳性能。为使结果在不同计算机之间具有可比性，算法必须符合带部分主元消去法的LU分解的标准运算计数，即\( \tfrac{2}{3}n^{3} + O(n^{2}) \)次浮点运算，这排除了Strassen算法等快速矩阵乘法算法<sup>[1](https://www.netlib.org/benchmark/top500/lists/linpack.html)</sup>。精度通过计算残差\( \|Ax-b\| / (\|A\|\,\|x\|) \)<sup>[5](https://www.netlib.org/performance/papers/linpack/)</sup>来检查。

由于问题非常规则，所达到的性能很高，这些数字能很好地校正峰值性能。在不同问题规模下测量性能可得到Nmax处的Rmax以及达到Rmax一半时的规模N½；这些数字连同理论峰值Rpeak一起，是TOP500中报告的数值<sup>[1](https://www.netlib.org/benchmark/top500/lists/linpack.html)</sup>。

## HPL与TOP500

分布式内存版本——高性能Linpack（HPL）——通过双精度带部分主元消去法的LU分解在进程网格上分布式求解稠密方程组，旨在现代系统上高效利用分布式内存和网络连接<sup>[9](https://www.wirewalk.com/writing/hpl-benchmarking/)</sup><sup> • </sup><sup>[10](https://onlinelibrary.wiley.com/doi/full/10.1002/cpe.7962)</sup>。参考实现维护在netlib和GitHub仓库中<sup>[6](https://www.netlib.org/benchmark/hpl/)</sup>。

TOP500项目于1993年启动，以取代已使用七年的曼海姆超级计算机统计数据。其发起者选择Linpack，是因为系统仅按其求解稠密随机矩阵线性方程组的能力排名，因此任何超级计算机，无论其架构如何，只要能以浮点运算求解此类方程即可入选。该项目发起者后来写道，尽管这一选择从一开始就受到批评，但正是这一选择使TOP500取得成功，而Linpack的可扩展性使他们能够对覆盖10个数量级性能范围的系统进行基准测试<sup>[4](https://www.top500.org/files/TOP500_Looking_back_HWM.pdf)</sup>。

运行HPL对机器本身也有很高要求：TOP500发起者指出，一些新系统因为不够稳定而无法运行该测试，运行Linpack可作为新型HPC系统的一种初步可靠性测试<sup>[4](https://www.top500.org/files/TOP500_Looking_back_HWM.pdf)</sup>。Green500榜单按每瓦功耗的HPL性能对超级计算机排名<sup>[7](https://www.llnl.gov/article/53596/el-capitan-retains-title-worlds-fastest-supercomputer-latest-top500)</sup>，而HPC Challenge套件将HPL与DGEMM、STREAM、PTRANS、RandomAccess、FFT以及通信带宽和延迟测试结合在一起<sup>[11](https://openbenchmarking.org/performance/test/pts/hpcc/3b9abeb5ff8c60f6f155fe223c674842c4c429f0)</sup>。

## 批评与补充基准测试

唐加拉本人在2002年HPCwire的一次采访中承认了这一局限：“该基准测试报告的是这一个应用程序及其浮点运算和消息传递的性能。所以只有一个应用程序和一个数字代表计算机系统的性能。弱点是这只是一个应用程序和一个数字”<sup>[12](https://www.itpro.com/infrastructure/is-the-top500-meaningless-not-so-says-us-national-laboratory-cto)</sup>。TOP500排名仅反映系统求解线性方程组的能力，并不表示在其他应用程序上的性能<sup>[4](https://www.top500.org/files/TOP500_Looking_back_HWM.pdf)</sup>。

与真实应用的相关性随时间推移而减弱。HPL在20世纪90年代初崭露头角，当时其排名与系统在完整规模应用上的效能相关，但在《SIAM News》上撰文的研究人员指出，情况已不再如此：HPL仍然是稠密线性代数应用的有效代表，但已失去作为HPC社区许多相关应用代表的准确性<sup>[13](https://www.siam.org/publications/siam-news/articles/the-high-performance-geometric-multigrid-an-hpc-performance-benchmark/)</sup>。只有LINPACK具有足够的数据重用和局部性，能使浮点单元几乎每个周期都保持忙碌，并提取理论峰值的可观百分比；迭代求解器仅达到峰值的一小部分，HPCG通常只达到个位数百分比<sup>[14](https://academic.oup.com/nsr/article/3/1/30/2460324)</sup>。

为补充它而创建了若干基准测试。高性能共轭梯度（HPCG）基准测试在目的上与HPL相似，但旨在更好地反映当今应用的性能表现，使用稀疏矩阵运算和不规则内存访问模式<sup>[15](https://www.osti.gov/biblio/1113870)</sup>。在一项气候模型硬件上的比较中，HPCG性能在CPU节点上降至HPL的1/77，在GPU节点上降至1/33.61，在NEC VE10AE上降至1/18.1，显示了不规则内存访问模式的影响<sup>[16](https://gmd.copernicus.org/articles/18/905/2025/)</sup>。HPL-MxP（原HPL-AI）实现了HPL算法的混合精度版本，在GPU上使用较低浮点精度来测试异构CPU和GPU系统<sup>[10](https://onlinelibrary.wiley.com/doi/full/10.1002/cpe.7962)</sup>。

## 近期结果

在第66届TOP500榜单（2025年11月）上，[劳伦斯利弗莫尔国家实验室](https://www.edgepedia.org/zh/lawrence-livermore-national-laboratory)（Lawrence Livermore National Laboratory）的[El Capitan](https://www.edgepedia.org/zh/el-capitan)以HPL验证性能1.809 exaFLOPS蝉联第一，并在HPCG基准测试中以17.41 petaFLOPS领先，在HPL混合精度（MxP）基准测试中以16.7 exaFLOPS领先；其理论峰值为2.88 exaFLOPS<sup>[7](https://www.llnl.gov/article/53596/el-capitan-retains-title-worlds-fastest-supercomputer-latest-top500)</sup>。德国的JUPITER Booster系统在HPL上提交了1.000 exaflop/s，成为榜单上第四个百亿亿次系统，也是美国以外的第一个<sup>[17](https://www.top500.org/lists/top500/2025/11/)</sup>。

2026年，部署在深圳国家超级计算中心的中国LineShine超级计算机在Linpack基准测试中达到2.198 FP64 exaFLOPS，成为TOP500上首台仅使用CPU就持续超过2 exaFLOPS双精度性能的机器；该系统使用1379万个核心，采用半定制的304核LX2 Armv9处理器，主频1.55 GHz，功耗42.2 MW<sup>[8](https://www.tomshardware.com/tech-industry/supercomputers/chinas-lineshine-supercomputer-dethrones-us-el-capitan-secures-first-place-in-top-500-list-first-machine-in-the-rankings-to-sustain-more-than-2-exaflops-of-double-precision-performance-using-only-cpus)</sup>。在同一榜单上，它以7.92 exaflop/s在HPL-MxP中排名第四，Top500将这一性能归因于其纯CPU设计<sup>[18](https://www.itpro.com/infrastructure/a-chinese-supercomputer-just-secured-first-place-on-the-top500-list-for-the-first-time-since-2017-heres-everything-we-know-about-lineshine)</sup>。

## References

1. [The Linpack Benchmark, TOP500/Netlib](https://www.netlib.org/benchmark/top500/lists/linpack.html)
2. [LINPACK: numerical library for linear equation solution, University of Utah](https://www.math.utah.edu/software/linpack.html)
3. [25 Year Anniversary, TOP500](https://www.top500.org/25years/)
4. [The TOP500 Project: Lessons Learned in Fifteen Years of Experience](https://www.top500.org/files/TOP500_Looking_back_HWM.pdf)
5. [Performance of Various Computers Using Standard Linear Algebra Software (Linpack Benchmark Report), Netlib](https://www.netlib.org/performance/papers/linpack/)
6. [HPL: A Portable Implementation of the High-Performance Linpack Benchmark for Distributed-Memory Computers, Netlib](https://www.netlib.org/benchmark/hpl/)
7. [El Capitan retains title as world's fastest supercomputer in latest Top500, Lawrence Livermore National Laboratory](https://www.llnl.gov/article/53596/el-capitan-retains-title-worlds-fastest-supercomputer-latest-top500)
8. [China's LineShine supercomputer dethrones US' El Capitan, Tom's Hardware](https://www.tomshardware.com/tech-industry/supercomputers/chinas-lineshine-supercomputer-dethrones-us-el-capitan-secures-first-place-in-top-500-list-first-machine-in-the-rankings-to-sustain-more-than-2-exaflops-of-double-precision-performance-using-only-cpus)
9. [HPL: what Linpack actually measures, and what it is good for, Wirewalk Advisory](https://www.wirewalk.com/writing/hpl-benchmarking/)
10. [Toward a new linpack-like benchmark for heterogeneous computing resources, Concurrency and Computation: Practice and Experience](https://onlinelibrary.wiley.com/doi/full/10.1002/cpe.7962)
11. [HPC Challenge Performance Benchmarks, OpenBenchmarking.org](https://openbenchmarking.org/performance/test/pts/hpcc/3b9abeb5ff8c60f6f155fe223c674842c4c429f0)
12. [Is the Top500 meaningless? Not so, says US national laboratory CTO, ITPro](https://www.itpro.com/infrastructure/is-the-top500-meaningless-not-so-says-us-national-laboratory-cto)
13. [The High-Performance Geometric Multigrid: An HPC Performance Benchmark, SIAM News](https://www.siam.org/publications/siam-news/articles/the-high-performance-geometric-multigrid-an-hpc-performance-benchmark/)
14. [HPCG: a new metric for ranking high-performance computing systems, National Science Review](https://academic.oup.com/nsr/article/3/1/30/2460324)
15. [HPCG Benchmark Technical Specification, OSTI](https://www.osti.gov/biblio/1113870)
16. [The real challenges for climate and weather modelling on its way to sustained exascale performance: a case study using ICON, Geoscientific Model Development](https://gmd.copernicus.org/articles/18/905/2025/)
17. [November 2025 TOP500 list](https://www.top500.org/lists/top500/2025/11/)
18. [A Chinese supercomputer just secured first place on the Top500 list, ITPro](https://www.itpro.com/infrastructure/a-chinese-supercomputer-just-secured-first-place-on-the-top500-list-for-the-first-time-since-2017-heres-everything-we-know-about-lineshine)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Servers, supercomputers & data centers › HPC benchmarks and metrics

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/linpack

English original: https://www.edgepedia.org/linpack
