arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.09518cs.DCcs.LG
收藏

CPU/GPU架构上的分布式内存外NMF

Distributed Out-of-Memory NMF on CPU/GPU Architectures

Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室)

Ismael Boureima, Manish Bhattarai, Maksim Eren, Erik Skau, Philip Romero, Stephan Eidenbenz, Boian Alexandrov

AI总结:

提出一种用于异构HPC系统的分布式内存外NMFk算法实现,通过批处理/分块、CUDA流及NCCL优化多节点多GPU上的稀疏与稠密矩阵运算,在4096个节点上实现良好弱扩展性并获得32至76倍加速。

摘要:

我们提出了一种用于异构高性能计算(HPC)系统的高效分布式内存外非负矩阵分解(NMF)算法实现。该实现基于先前关于NMFk的工作,后者能够执行自动模型选择并从数据中提取潜在变量和模式。在本研究中,我们通过在多节点、多GPU系统上增加对稠密和稀疏矩阵运算的支持来扩展NMFk。所得算法针对内存外(OOM)问题进行了优化,即分解给定矩阵所需的内存大于可用GPU内存的情况。通过批处理/分块策略降低了内存复杂度,并利用GPU核心(或在可用时使用张量核心)显著加速了稀疏和稠密矩阵运算。使用CUDA流异步重叠数据传输和计算,隐藏了与主机和设备之间批量复制相关的输入/输出(I/O)延迟,并使用优化的NVIDIA Collective Communication Library NCCL通信器减少了与集群内和节点间集合通信相关的延迟。基准测试结果显示了显著改善,使用GPU的新实现比基于CPU的NMFk实现了32倍到76倍的加速。在多达4096个多GPU集群节点和约25,000个GPU上展示了良好的弱扩展性,分解了340 TB大小的稠密矩阵和密度为10e-6的11 EB大小的稀疏矩阵。

英文摘要:

We propose an efficient distributed out-of-memory implementation of the Non-negative Matrix Factorization (NMF) algorithm for heterogeneous high-performance-computing (HPC) systems. The proposed implementation is based on prior work on NMFk, which can perform automatic model selection and extract latent variables and patterns from data. In this work, we extend NMFk by adding support for dense and sparse matrix operation on multi-node, multi-GPU systems. The resulting algorithm is optimized for out-of-memory (OOM) problems where the memory required to factorize a given matrix is greater than the available GPU memory. Memory complexity is reduced by batching/tiling strategies, and sparse and dense matrix operations are significantly accelerated with GPU cores (or tensor cores when available). Input/Output (I/O) latency associated with batch copies between host and device is hidden using CUDA streams to overlap data transfers and compute asynchronously, and latency associated with collective communications (both intra-node and inter-node) is reduced using optimized NVIDIA Collective Communication Library NCCL based communicators. Benchmark results show significant improvement, from 32X to 76x speedup, with the new implementation using GPUs over the CPU-based NMFk. Good weak scaling was demonstrated on up to 4096 multi-GPU cluster nodes with approximately 25,000 GPUs when decomposing a dense 340 Terabyte-size matrix and an 11 Exabyte-size sparse matrix of density 10e-6.

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

↑