arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05958cs.DC
收藏

MT4G:一种可靠自动发现NVIDIA与AMD GPU计算和内存拓扑的工具

MT4G: A Tool for Reliable Auto-Discovery of NVIDIA and AMD GPU Compute and Memory Topologies

Technical University of Munich(慕尼黑工业大学)

Stepan Vanecek, Manuel Walter Mussbacher, Dominik Groessler, Urvij Saroliya, Martin Schulz

AI总结:

本文提出开源供应商无关工具MT4G,结合现有API与50余个微基准测试及统计方法,自动可靠地发现NVIDIA和AMD GPU的计算与内存拓扑,并在性能建模、瓶颈分析和动态资源划分三个工作流中验证其通用性与实用性。

摘要:

理解GPU拓扑对于HPC或AI中的性能相关任务至关重要。然而,与CPU有hwloc等工具不同,GPU信息难以获取、不完整且因供应商而异。在本工作中,我们针对这一空白提出了MT4G,一个开源且供应商无关的工具,能够自动发现GPU计算和内存拓扑及配置,包括缓存大小、带宽和物理布局。MT4G将现有API与一套超过50个微基准测试相结合,应用统计方法(如Kolmogorov-Smirnov检验),自动且可靠地识别那些通过编程方式无法获取的拓扑属性。我们在十种不同的GPU上展示了MT4G的通用性,并通过将其集成到三个工作流中来证明其影响:GPU性能建模、GPUscout瓶颈分析和动态资源划分。这些场景凸显了MT4G在理解NVIDIA和AMD GPU系统性能与特性方面的作用,为现代HPC和AI系统提供了一种自动化、可移植的解决方案。

英文摘要:

Understanding GPU topology is essential for performance-related tasks in HPC or AI. Yet, unlike for CPUs with tools like hwloc, GPU information is hard to come by, incomplete, and vendor-specific. In this work, we address this gap and present MT4G, an open-source and vendor-agnostic tool that automatically discovers GPU compute and memory topologies and configurations, including cache sizes, bandwidths, and physical layouts. MT4G combines existing APIs with a suite of over 50 microbenchmarks, applying statistical methods, such as the Kolmogorov-Smirnov test, to automatically and reliably identify otherwise programmatically unavailable topological attributes. We showcase MT4G's universality on ten different GPUs and demonstrate its impact through integration into three workflows: GPU performance modeling, GPUscout bottleneck analysis, and dynamic resource partitioning. These scenarios highlight MT4G's role in understanding system performance and characteristics across NVIDIA and AMD GPUs, providing an automated, portable solution for modern HPC and AI systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑