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

分布式存储模型中的通信最优并行标准与Karatsuba乘法

Communication-Optimal Parallel Standard and Karatsuba Integer Multiplication in the Distributed Memory Model

Lorenzo De Stefani

摘要:

我们提出了COPSIM标准整数乘法的并行实现的分布式内存设置,和COPK的Karatsuba的快速整数乘法算法的分布式内存设置的并行实现。当使用$\mathcal{P}$处理器,每个处理器配备一个本地非共享存储器,计算两个$n$位整数的乘积时,在温和的条件下,我们的算法实现了最佳的计算时间加速比.即,$\mathcal{O}\left(n^2/\mathcal{P}\right)$用于COPSIM,$\mathcal{O}\left(n^{\log_2 3}/\mathcal{P}\right)$用于COPK。跨处理器所需的内存总量为$\mathcal{O}\left(n\right)$,也就是说,在存储输入值所需的最小空间的常数因子内。我们严格分析所提出的算法的输入/输出(I/O)成本。我们表明,他们的带宽成本(即,由至少一个处理器发送或接收的存储器字的数量)与渐近对应的已知I/O下限匹配,并且它们的等待时间(即,在算法的关键执行路径中发送或接收的消息的数量)渐近地在对应的已知I/O下限的乘法因子$\mathcal{O}\left(\log^2_2 \mathcal{P}\right)$内。因此,我们的算法是渐近最优的带宽成本和几乎渐近最优的延迟成本。

英文摘要:

We present COPSIM a parallel implementation of standard integer multiplication for the distributed memory setting, and COPK a parallel implementation of Karatsuba's fast integer multiplication algorithm for a distributed memory setting. When using $\mathcal{P}$ processors, each equipped with a local non-shared memory, to compute the product of tho $n$-digits integer numbers, under mild conditions, our algorithms achieve optimal speedup of the computational time. That is, $\mathcal{O}\left(n^2/\mathcal{P}\right)$ for COPSIM, and $\mathcal{O}\left(n^{\log_2 3}/\mathcal{P}\right)$ for COPK. The total amount of memory required across the processors is $\mathcal{O}\left(n\right)$, that is, within a constant factor of the minimum space required to store the input values. We rigorously analyze the Input/Output (I/O) cost of the proposed algorithms. We show that their bandwidth cost (i.e., the number of memory words sent or received by at least one processors) matches asymptotically corresponding known I/O lower bounds, and their latency (i.e., the number of messages sent or received in the algorithm's critical execution path) is asymptotically within a multiplicative factor $\mathcal{O}\left(\log^2_2 \mathcal{P}\right)$ of the corresponding known I/O lower bounds. Hence, our algorithms are asymptotically optimal with respect to the bandwidth cost and almost asymptotically optimal with respect to the latency cost.

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

↑