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

Minuet:在GPU上加速3D稀疏卷积

Minuet: Accelerating 3D Sparse Convolutions on GPUs

University of Toronto(多伦多大学);Vector Institute(向量研究所);Amazon(亚马逊);Meta;Samsung AI Centre Toronto(三星AI中心多伦多);CentML

Jiacheng Yang, Christina Giannoula, Jun Wu, Mostafa Elhoushi, James Gleeson, Gennady Pekhimenko

AI总结:

Minuet针对GPU上3D稀疏卷积效率问题,提出分段排序双重遍历二分搜索、tile自动调优和填充高效GEMM分组方法,显著加速了点云网络执行。

摘要:

稀疏卷积(SC)广泛用于处理本质上稀疏的3D点云。与密集卷积不同,SC通过仅允许在特定位置输出,来保持输入点云的稀疏性。为了高效计算SC,先前的SC引擎首先使用哈希表构建一个内核映射,该映射存储需要执行的必要的通用矩阵乘法(GEMM)操作(Map步骤),然后使用Gather-GEMM-Scatter过程来执行这些GEMM操作(GMaS步骤)。在这项工作中,我们分析了先前最先进的SC引擎的不足,并提出了Minuet,这是一种为现代GPU量身定制的新型内存高效SC引擎。Minuet提出:(i)用一种新颖的分段排序双重遍历二分搜索算法替换Map步骤中使用的哈希表,该算法高度利用了GPU的片上内存层次结构;(ii)使用一种轻量级方案来自动调优GMaS步骤中Gather和Scatter操作的tile大小,从而使执行适应每个SC层、数据集和GPU架构的特定特征;以及(iii)采用一种填充高效的GEMM分组方法,以减少内存填充和内核启动开销。我们的评估表明,对于端到端点云网络执行,Minuet显著优于先前的SC引擎,平均加速1.74倍(最高2.22倍)。我们新颖的分段排序双重遍历二分搜索算法在Map步骤中相比先前的SC引擎实现了平均15.8倍(最高26.8倍)的卓越加速。Minuet的源代码公开可在https://github.com/UofT-EcoSystem/Minuet获取。

英文摘要:

Sparse Convolution (SC) is widely used for processing 3D point clouds that are inherently sparse. Different from dense convolution, SC preserves the sparsity of the input point cloud by only allowing outputs to specific locations. To efficiently compute SC, prior SC engines first use hash tables to build a kernel map that stores the necessary General Matrix Multiplication (GEMM) operations to be executed (Map step), and then use a Gather-GEMM-Scatter process to execute these GEMM operations (GMaS step). In this work, we analyze the shortcomings of prior state-of-the-art SC engines, and propose Minuet, a novel memory-efficient SC engine tailored for modern GPUs. Minuet proposes to (i) replace the hash tables used in the Map step with a novel segmented sorting double-traversed binary search algorithm that highly utilizes the on-chip memory hierarchy of GPUs, (ii) use a lightweight scheme to autotune the tile size in the Gather and Scatter operations of the GMaS step, such that to adapt the execution to the particular characteristics of each SC layer, dataset, and GPU architecture, and (iii) employ a padding-efficient GEMM grouping approach that reduces both memory padding and kernel launching overheads. Our evaluations show that Minuet significantly outperforms prior SC engines by on average $1.74\times$ (up to $2.22\times$) for end-to-end point cloud network executions. Our novel segmented sorting double-traversed binary search algorithm achieves superior speedups by $15.8\times$ on average (up to $26.8\times$) over prior SC engines in the Map step. The source code of Minuet is publicly available at https://github.com/UofT-EcoSystem/Minuet.

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

↑