arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.09463cs.DC
收藏

SLSQP中并行QR分解的高效任务图调度

Efficient Task Graph Scheduling for Parallel QR Factorization in SLSQP

Soumyajit Chatterjee, Rahul Utkoor, Uppu Eshwar, Sathya Peri, V. Krishna Nandivada

AI总结:

针对SLSQP中原地QR分解需保留中间结果的问题,提出基于双队列的任务图调度方法,实现并行内核执行并取得相对顺序版本10倍的性能提升。

摘要:

在多核架构上的并行编程中,高效任务调度至关重要,而任务是基本计算单元。QR分解是用于求解非线性规划(NLP)问题的序贯最小二乘二次规划(SLSQP)中的关键子程序。QR分解将矩阵分解为正交矩阵Q和上三角矩阵R,二者对于求解优化问题产生的线性方程组必不可少。SLSQP使用原地版本的QR分解,这需要为算法的后续步骤存储中间结果。尽管文献中基于DAG的QR分解方法十分普遍,但它们通常缺乏对中间内核结果的控制,只提供最终输出矩阵Q和R。这一局限在SLSQP中尤其具有挑战性,因为QR分解的中间结果对每次迭代中的回代逻辑至关重要。我们的工作提出了使用双队列方法的新型调度技术,以有效执行QR分解内核。该方法使用高级C++编程语言实现,有助于编译器优化,并允许存储回代逻辑所需的中间结果。实证评估表明其取得了显著性能提升,其中相比SLSQP算法的顺序QR版本实现了10倍改进。

英文摘要:

Efficient task scheduling is paramount in parallel programming on multi-core architectures, where tasks are fundamental computational units. QR factorization is a critical sub-routine in Sequential Least Squares Quadratic Programming (SLSQP) for solving non-linear programming (NLP) problems. QR factorization decomposes a matrix into an orthogonal matrix Q and an upper triangular matrix R, which are essential for solving systems of linear equations arising from optimization problems. SLSQP uses an in-place version of QR factorization, which requires storing intermediate results for the next steps of the algorithm. Although DAG-based approaches for QR factorization are prevalent in the literature, they often lack control over the intermediate kernel results, providing only the final output matrices Q and R. This limitation is particularly challenging in SLSQP, where intermediate results of QR factorization are crucial for back-substitution logic at each iteration. Our work introduces novel scheduling techniques using a two-queue approach to execute the QR factorization kernel effectively. This approach, implemented in high-level C++ programming language, facilitates compiler optimizations and allows storing intermediate results required by back-substitution logic. Empirical evaluations demonstrate substantial performance gains, including a 10x improvement over the sequential QR version of the SLSQP algorithm.

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

↑