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

可延展线程级线性代数库的一个实例:带部分旋转的LU因子分解

A Case for Malleable Thread-Level Linear Algebra Libraries: The LU Factorization with Partial Pivoting

Sandra Catalán, José R. Herrero, Enrique S. Quintana-Ortí, Rafael Rodríguez-Sánchez, Robert van de Geijn

摘要:

我们提出了两种新的技术,以克服负载不平衡时遇到的实施所谓的前瞻性机制,在相关的稠密矩阵分解的线性系统的解决方案。这两种技术都针对这样的场景:在因子分解过程中创建/激活两个线程团队,每个团队负责执行独立的任务/执行分支。第一种技术促进了两个任务之间的工作者共享(WS),允许首先完成的任务的线程被重新分配给成本更高的任务使用。第二种技术允许快速任务提醒较慢的任务完成,强制第二任务的提前终止(ET),并将因子分解过程平滑过渡到下一次迭代。这两种机制是通过一个新的可延展的线程级实现的基本线性代数子程序(BLAS)实例化,并说明了他们的好处,通过实现LU因式分解与部分枢轴增强与前瞻。具体地说,我们的实验结果在六核英特尔至强处理器上显示了WS+ET相结合的好处,与基于任务并行运行时的解决方案相比,报告具有竞争力的性能。

英文摘要:

We propose two novel techniques for overcoming load-imbalance encountered when implementing so-called look-ahead mechanisms in relevant dense matrix factorizations for the solution of linear systems. Both techniques target the scenario where two thread teams are created/activated during the factorization, with each team in charge of performing an independent task/branch of execution. The first technique promotes worker sharing (WS) between the two tasks, allowing the threads of the task that completes first to be reallocated for use by the costlier task. The second technique allows a fast task to alert the slower task of completion, enforcing the early termination (ET) of the second task, and a smooth transition of the factorization procedure into the next iteration. The two mechanisms are instantiated via a new malleable thread-level implementation of the Basic Linear Algebra Subprograms (BLAS), and their benefits are illustrated via an implementation of the LU factorization with partial pivoting enhanced with look-ahead. Concretely, our experimental results on a six core Intel-Xeon processor show the benefits of combining WS+ET, reporting competitive performance in comparison with a task-parallel runtime-based solution.

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

↑