arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.21897cs.DC
收藏

基于任务的数据流方法用于编程包含多种加速器API的异构系统

A task-based data-flow methodology for programming heterogeneous systems with multiple accelerator APIs

Barcelona Supercomputing Center (BSC)(巴塞罗那超级计算中心);Universitat Politècnica de Catalunya - BarcelonaTech (UPC)(加泰罗尼亚理工大学)

Aleix Boné, Alejandro Aguirre, David Álvarez, Pedro J. Martinez-Ferrer, Vicenç Beltran

AI总结:

本文提出基于任务的数据流方法,结合任务感知API和nOS-V库,实现多种加速器编程模型的透明高效集成。

摘要:

结合多核CPU与多样化的加速器的异构节点正迅速成为高性能计算(HPC)和人工智能基础设施的常态。然而,利用这些平台需要协调多个低级加速器API,如CUDA、SYCL和Triton。在某些情况下,它们可以与优化的供应商数学库结合使用:例如,cuBLAS和oneAPI。每个API或库都引入了自身的方法、执行语义和同步机制。因此,在单个应用程序中结合它们是易出错且劳动密集型的。我们提出重用基于任务的数据流方法以及任务感知API(TA-libs)来克服这些限制,并促进多种加速器编程模型的无缝集成,同时仍然利用每个API提供的最佳内核。应用程序被表示为由主机任务和设备内核组成的有向无环图(DAG),由OpenMP/OmpSs-2运行时管理。我们引入了任务感知SYCL(TASYCL)并利用任务感知CUDA(TACUDA),将单个加速器调用提升为第一类任务。当多个原生运行时共存于同一多核CPU上时,它们会争夺线程,导致超订用和性能波动。为了解决这个问题,我们将它们的线程管理统一到nOS-V任务和线程库下,我们为此贡献了一个新的PoCL(可移植OpenCL)运行时的移植。这些结果表明,任务感知库结合nOS-V库能够使单个应用程序透明且高效地利用多种加速器编程模型。所提出的方法立即适用于当前的异构节点,并且可以轻松扩展到未来整合更丰富CPU、GPU、FPGA和AI加速器组合的系统。

英文摘要:

Heterogeneous nodes that combine multi-core CPUs with diverse accelerators are rapidly becoming the norm in both high-performance computing (HPC) and AI infrastructures. Exploiting these platforms, however, requires orchestrating several low-level accelerator APIs such as CUDA, SYCL, and Triton. In some occasions they can be combined with optimized vendor math libraries: e.g., cuBLAS and oneAPI. Each API or library introduces its own abstractions, execution semantics, and synchronization mechanisms. Combining them within a single application is therefore error-prone and labor-intensive. We propose reusing a task-based data-flow methodology together with Task-Aware APIs (TA-libs) to overcome these limitations and facilitate the seamless integration of multiple accelerator programming models, while still leveraging the best-in-class kernels offered by each API. Applications are expressed as a directed acyclic graph (DAG) of host tasks and device kernels managed by an OpenMP/OmpSs-2 runtime. We introduce Task-Aware SYCL (TASYCL) and leverage Task-Aware CUDA (TACUDA), which elevate individual accelerator invocations to first-class tasks. When multiple native runtimes coexist on the same multi-core CPU, they contend for threads, leading to oversubscription and performance variability. To address this, we unify their thread management under the nOS-V tasking and threading library, to which we contribute a new port of the PoCL (Portable OpenCL) runtime. These results demonstrate that task-aware libraries, coupled with the nOS-V library, enable a single application to harness multiple accelerator programming models transparently and efficiently. The proposed methodology is immediately applicable to current heterogeneous nodes and is readily extensible to future systems that integrate even richer combinations of CPUs, GPUs, FPGAs, and AI accelerators.

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

↑