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

一种普遍存在的顺序计算的高效并行化

Efficient Parallelization of a Ubiquitous Sequential Computation

Franz A. Heinsen

AI总结:

本文提出一种利用两个前缀和并行计算递推序列 $x_t = a_t x_{t-1} + b_t$ 的高效方法,在 $n$ 个处理器上实现 $\mathcal{O}(\log n)$ 时间,速度提升 $\frac{n}{\log n}$ 倍。

摘要:

我们找到了一个简洁的表达式,用于在给定 $t = (1, 2, \dots, n)$、$a_t \in \mathbb{R}^n$、$b_t \in \mathbb{R}^n$ 和初始值 $x_0 \in \mathbb{R}$ 的情况下,通过两个前缀和并行计算序列 $x_t = a_t x_{t-1} + b_t$。在 $n$ 个并行处理器上,计算 $n$ 个元素需要 $\mathcal{O}(\log n)$ 时间和 $\mathcal{O}(n)$ 空间。这种形式的序列在科学和工程中普遍存在,使得高效并行化对大量应用非常有用。我们在软件中实现了我们的表达式,在并行硬件上进行了测试,并验证了其执行速度比顺序计算快 $\frac{n}{\log n}$ 倍。

英文摘要:

We find a succinct expression for computing the sequence $x_t = a_t x_{t-1} + b_t$ in parallel with two prefix sums, given $t = (1, 2, \dots, n)$, $a_t \in \mathbb{R}^n$, $b_t \in \mathbb{R}^n$, and initial value $x_0 \in \mathbb{R}$. On $n$ parallel processors, the computation of $n$ elements incurs $\mathcal{O}(\log n)$ time and $\mathcal{O}(n)$ space. Sequences of this form are ubiquitous in science and engineering, making efficient parallelization useful for a vast number of applications. We implement our expression in software, test it on parallel hardware, and verify that it executes faster than sequential computation by a factor of $\frac{n}{\log n}$.

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

↑