arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.12523cs.DCcs.DScs.PF
收藏

基于大规模并行结构的高效内存不足稀疏算法MTTKRP

Efficient, Out-of-Memory Sparse MTTKRP on Massively Parallel Architectures

Andy Nguyen, Ahmed E. Helal, Fabio Checconi, Jan Laukemann, Jesmin Jahan Tithi, Yongseok Soh, Teresa Ranadive, Fabrizio Petrini, Jee W. Choi

摘要:

张量分解(TD)是从高维(多模态)稀疏数据中提取潜在信息的一种重要方法。这项研究提出了一种新的框架,加速大规模并行GPU架构上的基本TD操作。与先前的工作相比,所提出的分块线性化坐标(BLCO)格式使用在单个张量副本上工作的统一实现来实现张量算法的高效内存外计算。我们的自适应分块和线性化策略不仅满足了GPU设备的资源限制,而且还加速了数据索引,消除了控制流和内存访问的不规则性,并减少了内核启动开销。为了解决GPU上的大量同步成本,我们引入了一种机会主义冲突解决算法,其中线程协作而不是竞争内存访问来发现和解决它们的冲突更新,而不保留任何辅助信息或在特定模式方向存储非零元素。因此,与现有技术相比,我们的框架提供了卓越的内存性能,并且是唯一能够处理内存外张量的框架。在最新的Intel和NVIDIA GPU上,BLCO在一系列真实稀疏张量上实现了比最先进的混合模式压缩稀疏光纤(MM-CSF)高2.12- 2.6倍的几何平均加速比(加速比高达33.35倍)。

英文摘要:

Tensor decomposition (TD) is an important method for extracting latent information from high-dimensional (multi-modal) sparse data. This study presents a novel framework for accelerating fundamental TD operations on massively parallel GPU architectures. In contrast to prior work, the proposed Blocked Linearized Coordinate (BLCO) format enables efficient out-of-memory computation of tensor algorithms using a unified implementation that works on a single tensor copy. Our adaptive blocking and linearization strategies not only meet the resource constraints of GPU devices, but also accelerate data indexing, eliminate control-flow and memory-access irregularities, and reduce kernel launching overhead. To address the substantial synchronization cost on GPUs, we introduce an opportunistic conflict resolution algorithm, in which threads collaborate instead of contending on memory access to discover and resolve their conflicting updates on-the-fly, without keeping any auxiliary information or storing non-zero elements in specific mode orientations. As a result, our framework delivers superior in-memory performance compared to prior state-of-the-art, and is the only framework capable of processing out-of-memory tensors. On the latest Intel and NVIDIA GPUs, BLCO achieves 2.12-2.6X geometric-mean speedup (with up to 33.35X speedup) over the state-of-the-art mixed-mode compressed sparse fiber (MM-CSF) on a range of real-world sparse tensors.

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

↑