arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.08361math.NAcs.MScs.NA
收藏

线程并行 Jacobi 奇异值分解方法的向量化

Vectorization of a thread-parallel Jacobi singular value decomposition method

Vedran Novaković

AI总结:

本文针对 Jacobi 型 SVD 中的批量 Hermitian 矩阵特征值分解,利用 AVX-512 向量化和 OpenMP 并行化实现高效计算,保证数值可重现性且无溢出,精度优于 xLAEV2,并行加速在线程充足时具有实际收益。

摘要:

二阶 Hermitian 矩阵(批量)的特征值分解(EVD)在许多数值算法中具有重要作用,其中用于奇异值分解(SVD)的单侧 Jacobi 方法是最典型的例子。本文对批量 EVD 进行了向量化,采用了适合向量的数据布局和 Intel CPU 的 AVX-512 SIMD 指令,同时对实数和复数 OpenMP 并行 Jacobi 型 SVD 方法的其他关键组成部分进行了向量化,其设计灵感来源于 LAPACK 中的串行 xGESVJ 例程。这些向量化构建模块应可移植到支持类似向量操作的其他平台。对于批量 EVD(无论是串行还是线程化)以及列变换,均保证了无条件数值可重现性;列变换与缩放点积一样目前为串行执行,但如果需要嵌套并行,则可以线程化。所提出的 EVD 或整个 SVD 不会产生可避免的结果溢出。实测表明,所提出的 EVD 的精度往往超过 LAPACK 中的 xLAEV2 例程。虽然批量 EVD 的性能优于相应的 xLAEV2 调用序列,但并行 SVD 的加速效果较为有限,不过仍有改进空间,并且在线程数足够时已经能够带来收益。无论线程数量如何,所提出的 SVD 方法都给出相同的结果,但精度略低于 xGESVJ。

英文摘要:

The eigenvalue decomposition (EVD) of (a batch of) Hermitian matrices of order two has a role in many numerical algorithms, of which the one-sided Jacobi method for the singular value decomposition (SVD) is the prime example. In this paper the batched EVD is vectorized, with a vector-friendly data layout and the AVX-512 SIMD instructions of Intel CPUs, alongside other key components of a real and a complex OpenMP-parallel Jacobi-type SVD method, inspired by the sequential xGESVJ routines from LAPACK. These vectorized building blocks should be portable to other platforms that support similar vector operations. Unconditional numerical reproducibility is guaranteed for the batched EVD, sequential or threaded, and for the column transformations, that are, like the scaled dot-products, presently sequential but can be threaded if nested parallelism is desired. No avoidable overflow of the results can occur with the proposed EVD or the whole SVD. The measured accuracy of the proposed EVD often surpasses that of the xLAEV2 routines from LAPACK. While the batched EVD outperforms the matching sequence of xLAEV2 calls, speedup of the parallel SVD is modest but can be improved and is already beneficial with enough threads. Regardless of their number, the proposed SVD method gives identical results, but of somewhat lower accuracy than xGESVJ.

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

↑