将大型面向对象的 C++ 代码库适配到硬件加速环境可能极具挑战性,尤其是在面向 GPU 等异构平台时。Marionette 是一个 C++17 库,旨在通过支持灵活、高效且可移植的数据结构定义来解决这一问题。它将数据布局与接口描述解耦,支持多种内存管理策略,并提供跨设备的高效数据传输与转换,同时由于其抽象具有编译期特性,运行时开销极小。通过允许接口被任意函数增强,Marionette 保持了与现有代码的兼容性,并提供了一个既能支持直接用例也能支持高级用例的精简接口。本文概述了其设计、用法和性能,并包含一个基于 CUDA 的案例研究,展示了其效率与灵活性。
英文摘要:
Adapting large, object-oriented C++ codebases for hardware acceleration might be extremely challenging, particularly when targeting heterogeneous platforms such as GPUs. Marionette is a C++17 library designed to address this by enabling flexible, efficient, and portable data structure definitions. It decouples data layout from the description of the interface, supports multiple memory management strategies, and provides efficient data transfers and conversions across devices, all of this with minimal runtime overhead due to the compile-time nature of its abstractions. By allowing interfaces to be augmented with arbitrary functions, Marionette maintains compatibility with existing code and offers a streamlined interface that supports both straightforward and advanced use cases. This paper outlines its design, usage, and performance, including a CUDA-based case study demonstrating its efficiency and flexibility.
A heterogeneous many-core platform for experiments on scalable custom interconnects and management of fault and critical events, applied to many-process applications: Vol. II, 2012 technical report
HiRL: Hierarchical Reinforcement Learning for Coordinated Resource Management in Heterogeneous Edge Computing
North China Electric Power University(华北电力大学);University of Glasgow(格拉斯哥大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Sydney(悉尼大学);Beihang University(北京航空航天大学)
Accelerating Nonlinear Time-History Analysis with Complex Constitutive Laws via Heterogeneous Memory Management: From 3D Seismic Simulation to Neural Network Training
The University of Tokyo(东京大学);RIKEN Center for Computational Science(理化学研究所计算科学中心);Research Institute for Value-Added-Information Generation, Japan Agency for Marine-Earth Science and Technology(日本海洋地球科学厅增值信息生成研究所)
SWARM+: Scalable and Resilient Multi-Agent Consensus for Decentralized Data-Aware Workload Management
Renaissance Computing Institute, University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校文艺复兴计算研究所);Argonne National Laboratory(阿贡国家实验室);Information Sciences Institute, University of Southern California(南加州大学信息科学研究所)
PatrickStar: Parallel Training of Pre-trained Models via Chunk-based Memory Management
Tencent Inc(腾讯公司);National University of Singapore(新加坡国立大学)
预训练模型(PTM)正在彻底改变人工智能(AI)技术。然而,PTM训练的硬件要求非常高,使其成为一小部分人的游戏。因此,我们提出了PatrickStar系统,以降低PTM的硬件要求,并使其可供任何人使用。PatrickStar使用CPU-GPU异构内存空间存储模型数据。与现有的工作不同,我们组织的模型数据在内存块和动态分布在异构内存。在预热迭代中收集的运行时内存统计数据的指导下,在异构内存中高效地编排块,并产生更低的CPU-GPU数据传输量和更高的带宽利用率。PatrickStar与零冗余优化器共生,可扩展到多个节点上的多个GPU。%使用数据并行。该系统可以在更大的模型和更大的批量上进行训练任务,这是现有工作无法完成的。实验结果表明,PatrickStar将模型规模扩展到DeepSpeed的2.27和2.5倍,并始终表现出显着更高的执行速度。PatricStar还在32 GPU集群上成功运行了175 B GPT 3训练任务。我们的代码可在https://github.com/Tencent/PatrickStar上公开获取。
Page Table Management for Heterogeneous Memory Systems
现代企业服务器越来越多地采用分层存储器系统,该系统结合了低延迟DRAM和大容量但高延迟的非易失性主存储器(NVMM),例如英特尔的Optane DC PMM。先前的工作集中在分层存储器系统上的数据的有效放置和迁移上,但是没有研究页表的最佳放置。页表的显式和有效放置对于具有高TLB未命中率的大内存占用应用程序至关重要,因为当页表页放置在NVMM中时,它们会导致显着更高的页遍历延迟。我们表明,(i)页表页可以结束在NVMM上,即使有足够的DRAM内存可用,以及(ii)页表页溢出到NVMM由于DRAM内存压力不迁移回来后,当内存在DRAM中可用。我们研究了分层存储器系统中页表放置的性能影响,并提出了一种高效透明的页表管理技术,该技术(i)对数据和页表页应用不同的放置策略,(ii)通过将页表的小但关键的部分放置在DRAM中来引入页表页的区分策略,以及(iii)通过在DRAM和NVMM之间透明地迁移页表页来动态地和明智地管理页表的其余部分。我们在一个配备了运行Linux的英特尔Optane NVMM的真实系统上的实现将页表遍历周期平均减少了12%,总周期平均减少了20%。与各种默认的Linux内核技术相比,对于一组合成的和真实世界的大内存占用应用程序,这将运行时平均提高了20%。
RankMap: Priority-Aware Multi-DNN Manager for Heterogeneous Embedded Devices
School of Electrical, Computer, and Biomedical Engineering, Southern Illinois University(南伊利诺伊大学电气、计算机与生物医学工程学院);Department of Electrical and Computer Engineering, The University of Texas at Austin(德克萨斯大学奥斯汀分校电气与计算机工程系)
Complex Workflow Management and Integration of Distributed Computing Resources by Science Gateway Portal for Molecular Dynamics Simulations in Materials Science