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

Marionette:面向异构计算的数据结构描述与管理

Marionette: Data Structure Description and Management for Heterogeneous Computing

LIP(葡萄牙粒子物理研究所);CERN(欧洲核子研究组织);University of Oregon(俄勒冈大学)

Nuno dos Santos Fernandes, Pedro Tomás, Nuno Roma, Frank Winklmeier, Patricia Conde-Muíño

AI总结:

Marionette 是一个 C++17 库,通过编译期抽象将数据布局与接口解耦,为 GPU 等异构平台提供灵活高效的数据结构定义、内存管理与跨设备传输,并保持与现有代码兼容。

摘要:

将大型面向对象的 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.

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

↑