# HPCG

**HPCG**（High Performance Conjugate Gradient，高性能共轭梯度）是一项用于对高性能计算系统进行排名的基准测试，它采用多重网格预条件的共轭梯度法求解一个合成稀疏线性系统，作为TOP500榜单所用高性能LINPACK（HPL）基准测试的补充而发布。该基准由桑迪亚国家实验室（Sandia National Laboratories）的迈克尔·A·赫鲁（Michael A. Heroux）与[田纳西大学](https://www.edgepedia.org/zh/university-of-tennessee)（University of Tennessee）的[杰克·唐加拉](https://www.edgepedia.org/zh/jack-dongarra)（Jack Dongarra）和彼得·卢什切克（Piotr Luszczek）共同创建，性能提交自2014年起开始收集。<sup>[1](https://www.top500.org/news/top500-meanderings-hpcg-gains-steam-as-alternative-benchmark-for-supercomputers/)</sup><sup> • </sup><sup>[2](https://hpcg-benchmark.org/)</sup>

| 关键事实 | 详情 |
|---|---|
| 目的 | 作为HPL的补充，考察偏微分方程稀疏迭代求解器的计算与数据访问模式<sup>[2](https://hpcg-benchmark.org/)</sup> |
| 问题 | 一个合成的离散化三维偏微分方程（半规则网格上的热扩散），来自27点模板离散化，稀疏矩阵显式存储<sup>[3](https://maherou.github.io/Projects/files/docs/HPCG-Specification.pdf)</sup><sup> • </sup><sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC7295341/)</sup> |
| 核心计算 | 稀疏矩阵-向量乘法、向量更新、全局点积、带稀疏三角求解的局部对称高斯-赛德尔平滑器，由嵌套粗网格上的多重网格预条件共轭梯度驱动<sup>[2](https://hpcg-benchmark.org/)</sup> |
| 运行规则 | 正式运行须持续至少1800秒（30分钟）；问题规模须占用至少1/4的总主存，以使数据无法装入缓存<sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup> |
| 度量指标 | 由PCG迭代阶段得出的加权GFLOP/s评分，设置与优化开销按500次迭代摊销<sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup> |
| 榜首（2026年6月） | LineShine，22.00 HPCG-Petaflop/s，领先于El Capitan（17.41）和Fugaku（16.00）<sup>[6](https://www.top500.org/lists/hpcg/2026/06/)</sup> |
| 软件 | 采用C++编写的参考实现，支持MPI与OpenMP，BSD-3-Clause许可，当前版本3.1<sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup> |

## 为何需要第二项基准

HPL是用于TOP500排名的基准测试，它通过LU分解求解稠密线性系统，因此其主要计算是可调优至接近处理器理论峰值的稠密矩阵乘法。而许多实际科学应用求解的是偏微分方程，所产生的稀疏矩阵会占满可用内存，那些适用于稠密计算的优化技术在此处作用甚微。<sup>[7](https://academic.oup.com/nsr/article/3/1/30/2460324)</sup>赫鲁如此描述这一转变：Linpack在稠密数据结构上执行计算密集型算法，以确定理论最高速度，而当今的应用往往使用稀疏数据结构与更为精简的计算。<sup>[1](https://www.top500.org/news/top500-meanderings-hpcg-gains-steam-as-alternative-benchmark-for-supercomputers/)</sup>

HPCG旨在压测这些应用真正需要的方面。其稀疏操作对内存子系统构成压力，包括缓存合并不规则跨步加载的能力、主存的带宽与延迟，以及处理器围绕内存延迟进行调度的能力。在通信方面，它测试用于点积的全局集合通信和用于晕圈（域边界）交换的邻域集合通信。多重网格（利用嵌套的由粗到细网格层级加速收敛的求解器）组件增加了不规则性：在较粗层级上，访问模式变得不那么受带宽限制，而更多受延迟限制。<sup>[7](https://academic.oup.com/nsr/article/3/1/30/2460324)</sup>

## 基准测试计算什么

该基准生成一个合成的离散化三维偏微分方程模型问题，在数学上类似于半规则网格上三维热扩散问题的有限元、有限体积或有限差分离散化，然后以双精度（64位）浮点执行固定次数的预条件共轭梯度迭代。<sup>[3](https://maherou.github.io/Projects/files/docs/HPCG-Specification.pdf)</sup><sup> • </sup><sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup>预条件子是一种合成多重网格方案，使用注入作为网格转移算子，并采用对称高斯-赛德尔平滑器，每个粗网格层级的规模为上一级的八分之一。<sup>[8](https://www.hpcg-benchmark.org/software/browse.html%3Fstart%3D15%26per%3D5.html)</sup>

性能指标是一个基于表观浮点运算次数的Gflop/s速率，所谓表观次数是由矩阵结构所隐含的次数，而非任何实现的实际计数。评分是一个加权值，由PCG迭代阶段所执行的操作除以所耗时间构成，其中问题构建与性能修改的耗时除以500次迭代（摊销权重）后计入运行时间。<sup>[7](https://academic.oup.com/nsr/article/3/1/30/2460324)</sup><sup> • </sup><sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup>

## 运行规则与软件

正式运行须报告至少1800秒的执行时间，且有效运行所使用的问题规模须足够大，使CG迭代循环中访问的数据数组无法装入缓存；目前这意味着问题占用至少1/4的总主存。整数索引支持32/32、64/32和64/64模式，以便寻址超出2^31索引范围的问题。该软件包要求MPI构建使用MPI实现（符合1.1版本即可），并要求编译器支持OpenMP语法。<sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup>

首个正式公开发行版HPCG 1.0于2013年11月19日面世。2014年1月发布的HPCG 2.0和2.1以合成多重网格方法取代了加性Schwarz预条件子，粗网格层级数可参数化，但生产运行固定为3层粗化。<sup>[8](https://www.hpcg-benchmark.org/software/browse.html%3Fstart%3D15%26per%3D5.html)</sup>参考代码以BSD-3-Clause许可在GitHub上维护，NVIDIA、AMD（rocHPCG）和IBM等厂商发布优化版本。<sup>[5](https://github.com/hpcg-benchmark/hpcg)</sup><sup> • </sup><sup>[9](https://github.com/ROCm/rocHPCG)</sup>

## 结果及与HPL的差距

由于HPCG以受内存限制的稀疏操作为主，其得分远低于同一机器上的HPL结果。典型超级计算机用HPL可达到峰值的50%至90%，而用HPCG仅能达到峰值的几个百分点；在该基准的早期年份，表现最佳的是RIKEN的K计算机，为602.7 teraflop/s，即峰值的5.4%，而2017年国际器件与系统路线图指出，一台排名前五的系统在HPCG上仅达到其峰值浮点能力的0.4%。<sup>[1](https://www.top500.org/news/top500-meanderings-hpcg-gains-steam-as-alternative-benchmark-for-supercomputers/)</sup><sup> • </sup><sup>[10](https://irds.ieee.org/images/files/pdf/2017/2017IRDS_AB.pdf)</sup>具有极高内存带宽的向量机可达到约10%的峰值。<sup>[7](https://academic.oup.com/nsr/article/3/1/30/2460324)</sup>

TOP500组织每年两次随主榜单一同发布HPCG榜单；第18期HPCG榜单于2026年6月22日在德国汉堡发布。<sup>[11](https://www.top500.org/lists/hpcg/)</sup>2026年6月的排名中，中国的LineShine——新的TOP500榜首——以22.00 HPCG-Petaflop/s位列第一，其后是El Capitan（17.41）、Fugaku（16.00）、[Frontier](https://www.edgepedia.org/zh/frontier-supercomputer)（14.05）、新系统HPC7（5.95）和Aurora（5.61 HPCG-Petaflop/s）；JUPITER Booster系统未提交结果。<sup>[6](https://www.top500.org/lists/hpcg/2026/06/)</sup>LineShine的HPCG得分仅为其HPL得分的3.6倍，TOP500将其归因于该系统的纯CPU设计，没有专用低精度加速器。<sup>[12](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>

优化工作揭示了该基准所奖励的方向。在最新一代神威超级计算机上，针对对称高斯-赛德尔计算内核的两级分块方案、细粒度内核融合以及低开销线程协作，使优化后的代码可利用73.0%的理论内存带宽，并扩展至超过4200万个异构核心，弱扩展效率达95.5%，性能为5.91 PFLOPS；采用不完全遵循HPCG规则的保依赖并行化后，性能达到27.6 PFLOPS。<sup>[13](https://www.sc21.supercomputing.org/proceedings/tech_paper/tech_paper_pages/pap212.html)</sup>

## 局限性

HPCG是一种替代性基准测试，而非实际应用。2021年的一项研究指出，随着系统与应用日益复杂，HPL和HPCG等传统基准的性能已不再与实际应用的性能强烈相关，这促使人们构建基于真实应用或小型应用集合的度量指标。<sup>[14](https://link.springer.com/article/10.1007/s11227-020-03545-y)</sup>对该基准的性能建模还显示，在小问题规模下其对缓存大小敏感，这也是运行规则要求内存占用远超缓存的原因之一。<sup>[15](https://hpgmg.org/static/MarjanovicGraciaGlass-PerformanceModelHPCG-2014.pdf)</sup>

## References

1. [TOP500 Meanderings: HPCG Gains Steam as Alternative Benchmark for Supercomputers, TOP500](https://www.top500.org/news/top500-meanderings-hpcg-gains-steam-as-alternative-benchmark-for-supercomputers/)
2. [HPCG Benchmark, official project site](https://hpcg-benchmark.org/)
3. [HPCG Technical Specification (Heroux, Dongarra, Luszczek), Sandia National Laboratories](https://maherou.github.io/Projects/files/docs/HPCG-Specification.pdf)
4. [Understanding HPC Benchmark Performance on Intel Broadwell and Cascade Lake Processors, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC7295341/)
5. [hpcg-benchmark/hpcg: Official HPCG benchmark source code, GitHub](https://github.com/hpcg-benchmark/hpcg)
6. [HPCG - June 2026, TOP500](https://www.top500.org/lists/hpcg/2026/06/)
7. [Toward a new metric for ranking high-performance computing systems, National Science Review](https://academic.oup.com/nsr/article/3/1/30/2460324)
8. [HPCG Software Releases, hpcg-benchmark.org](https://www.hpcg-benchmark.org/software/browse.html%3Fstart%3D15%26per%3D5.html)
9. [ROCm/rocHPCG: HPCG benchmark based on ROCm platform, GitHub](https://github.com/ROCm/rocHPCG)
10. [2017 International Roadmap for Devices and Systems, IEEE](https://irds.ieee.org/images/files/pdf/2017/2017IRDS_AB.pdf)
11. [HPCG, TOP500](https://www.top500.org/lists/hpcg/)
12. [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)
13. [Enabling and Scaling the HPCG Benchmark on the Newest Generation Sunway Supercomputer, SC21](https://www.sc21.supercomputing.org/proceedings/tech_paper/tech_paper_pages/pap212.html)
14. [A new sustained system performance metric for scientific performance evaluation, The Journal of Supercomputing](https://link.springer.com/article/10.1007/s11227-020-03545-y)
15. [Performance modeling of the HPCG benchmark (Marjanović, Gracia, Glass)](https://hpgmg.org/static/MarjanovicGraciaGlass-PerformanceModelHPCG-2014.pdf)

---
*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/hpcg

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