在具有AVX-512指令的处理器上使用基于块的核而不使用零填充来计算稀疏矩阵向量积
Computing the sparse matrix vector product using block-based kernels without zero padding on processors with AVX-512 instructions
摘要:
稀疏矩阵向量积(SpMV)是各个领域许多科学应用中的基本运算。因此,高性能计算(HPC)社区不断投入大量精力,在现代CPU架构上提供高效的SpMV内核。虽然已经证明基于块的内核有助于实现高性能,但由于它们需要零填充,因此它们难以在实践中使用。在目前的论文中,我们提出了新的内核使用的AVX-512指令集,这使得它可以使用一个阻塞方案,没有任何零填充的矩阵存储器存储。我们描述了基于掩码的稀疏矩阵格式及其相应的SpMV内核高度优化的汇编语言。考虑到最佳的块大小取决于矩阵,我们还提供了一种方法来预测最好的内核使用从以前的执行结果的简单插值。我们在一组标准基准测试矩阵上比较了我们的方法与英特尔MKL CSR内核和CSR 5开源软件包的性能。我们表明,我们可以实现显着的改善,在许多情况下,顺序和并行执行。最后,我们在一个名为SPC 5的开源库中提供了相应的代码。
英文摘要:
The sparse matrix-vector product (SpMV) is a fundamental operation in many scientific applications from various fields. The High Performance Computing (HPC) community has therefore continuously invested a lot of effort to provide an efficient SpMV kernel on modern CPU architectures. Although it has been shown that block-based kernels help to achieve high performance, they are difficult to use in practice because of the zero padding they require. In the current paper, we propose new kernels using the AVX-512 instruction set, which makes it possible to use a blocking scheme without any zero padding in the matrix memory storage. We describe mask-based sparse matrix formats and their corresponding SpMV kernels highly optimized in assembly language. Considering that the optimal blocking size depends on the matrix, we also provide a method to predict the best kernel to be used utilizing a simple interpolation of results from previous executions. We compare the performance of our approach to that of the Intel MKL CSR kernel and the CSR5 open-source package on a set of standard benchmark matrices. We show that we can achieve significant improvements in many cases, both for sequential and for parallel executions. Finally, we provide the corresponding code in an open source library, called SPC5.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。