面向多芯片GPU的GEMM设计空间探索的快速局部性模拟器
A Fast Locality Simulator for GEMM Design-Space Exploration on Multi-Chiplet GPUs
AI总结:
提出一种快速、功能级、瓦片级局部性模拟器,用于评估多芯片GPU上GEMM的内核选择对片间流量影响,发现远程流量变化可达90倍,并揭示2D块交织CTA遍历可减少远程流量达5.1倍。
摘要:
多芯片GPU通过硅中介层将内存分为本地和远程HBM区域,减少远程HBM流量对多芯片GPU的性能和能效至关重要。对于大语言模型中的主导算子——通用矩阵乘法(GEMM),产生的片间流量强烈依赖于内核选择,如操作数布局、CTA遍历顺序和数据放置,而最小化远程访问的最优策略并非显而易见。我们提出了一种快速、功能级、瓦片级局部性模拟器,该模拟器对CTA调度、每芯片L2缓存以及本地/远程HBM访问进行建模,以评估全尺寸LLM GEMM配置。在代表性的LLM GEMM上,模拟器显示,对于相同的GEMM维度,远程流量在设计空间内变化高达90倍。此外,使用该模拟器作为反馈,一个智能体AI发现,在轮询放置下,2D块交织CTA遍历相比最佳1D遍历可将远程流量减少高达5.1倍,从而将CTA遍历顺序确定为片间流量的一个一阶、依赖GEMM的设计旋钮。
英文摘要:
In multi-chiplet GPUs, memory accesses that cross the silicon interposer to a remote chiplet's high-bandwidth memory (HBM) incur extra latency and energy, making remote-traffic reduction crucial for efficiency. For general matrix multiply (GEMM), the dominant operator in LLMs, inter-chiplet traffic depends strongly on design knobs such as per-operand memory layout, cooperative thread array (CTA) traversal order, and data placement. The optimal combination is difficult to identify analytically, as locality depends strongly on CTA traversal and its interaction with the L2 cache. To this end, we present a fast, tile-level locality simulator that models data placement and CTA-to-chiplet mapping, CTA traversal, per-chiplet L2 caches, and local/remote HBM accesses. This enables rapid evaluation of locality, performance, and energy efficiency under various GEMM configurations. Using the simulator, we find that the best locality-aware configuration for each GEMM reduces remote traffic by up to 18.3x and improves energy efficiency by up to 17% over 4 KB-interleaved data with round-robin CTA-to-chiplet mapping. Moreover, using the simulator output as feedback, an agentic AI adopts a 2D block-swizzle CTA traversal that improves mean energy efficiency by 15.2% for Qwen and 6.9% for Llama relative to the best 1D traversal under 4 KB-interleaved data placement. Overall, our simulator enables fast exploration of the GEMM locality design space on multi-chiplet GPUs and is available at https://github.com/gthparch/chiplet_locality_simulator.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。