arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2302.05662cs.DC
收藏

Auto-SpMV:在GPU上自动优化SpMV内核

Auto-SpMV: Automated Optimizing SpMV Kernels on GPU

Mina Ashoury, Mohammad Loni, Farshad Khunjush, Masoud Daneshtalab

摘要:

稀疏矩阵向量乘法(SpMV)是一种基本的线性代数运算,在许多科学应用中占主导地位的计算成本。由于GPU提供了大规模并行性和高内存带宽,因此通常用于加速SpMV内核。以前的研究主要集中在减少GPU上的SpMV内核的延迟。然而,很少有人尝试提高SpMV内核的能效,导致GPU被排除在低功耗应用范围之外。此外,先前的工作主要集中在优化SpMV内核的稀疏格式上,文献忽略了评估调整编译参数的影响。最后,很少注意准备运行SpMV内核的综合训练数据集和微调学习超参数。为了解决这些限制,我们提出了一个新的框架,称为Auto-SpMV,使GPU上的节能和低延迟的SpMV内核。为了达到最佳的运行时间性能,Auto-SpMV提出了两种优化模式:编译时和运行时。在编译时模式下,Auto-SpMV调整编译参数,而在运行时模式下,Auto-SpMV为稀疏输入矩阵选择最佳稀疏格式。为了获得最佳的分类结果,1)我们收集了有史以来最大的数据集,其中包含30个不同的稀疏矩阵,运行超过15 K个不同的配置,2)我们通过自动微调学习超参数来提升分类模型。实验结果表明,与默认设置相比,Auto-SpMV在编译时模式下将延迟、能耗、平均功耗和能效分别优化了51.9%、52%、33.2%和53%。与默认设置相比,Auto-SpMV可在运行时模式下将平均功耗和能效分别优化高达34.6%和99.7%。

英文摘要:

Sparse matrix-vector multiplication (SpMV) is an essential linear algebra operation that dominates the computing cost in many scientific applications. Due to providing massive parallelism and high memory bandwidth, GPUs are commonly used to accelerate SpMV kernels. Prior studies mainly focused on reducing the latency of SpMV kernels on GPU. However, few attempts have been made to improve the energy efficiency of SpMV kernels, resulting in GPUs being excluded from the range of low-power applications. Furthermore, prior work has primarily focused on optimizing the sparse format of SpMV kernels, the literature ignores evaluating the impact of tweaking compilation parameters. Lastly, Little attention has been paid to preparing a comprehensive training dataset of running SpMV kernels and fine-tuning the learning hyperparameters. To address these limitations, we present a novel framework, dubbed Auto-SpMV, that enables energy-efficient and low-latency SpMV kernels on GPU. To achieve the best run time performance, Auto-SpMV proposes two optimization modes: compile-time and run-time. In the compile-time mode, Auto-SpMV tweaks the compilation parameters, while in the run-time mode, Auto-SpMV selects the best sparse format for the sparse input matrix. To achieve the best classification results, 1) we collect the largest dataset ever having 30 different sparse matrices running with more than 15K different configurations, and 2) we boost classification models by automatically fine-tuning the learning hyperparameters. Experimental results reveal that Auto-SpMV optimizes latency, energy consumption, average power, and energy efficiency in the compile-time mode by up to 51.9%, 52%, 33.2%, and 53%, respectively, compared to the default setting. Auto-SpMV optimizes average power and energy efficiency in the run-time mode by up to 34.6% and 99.7%, respectively, compared to the default setting.

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

↑