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

动态规划和线性代数的改进并行Cache不经意算法

Improved Parallel Cache-Oblivious Algorithms for Dynamic Programming and Linear Algebra

Guy E. Blleloch, Yan Gu

摘要:

新兴的非易失性主存储器(NVRAM)技术提供字节寻址能力、低空闲功率和改进的存储器密度,并且很可能成为未来存储层次结构中的关键组件。然而,实现高性能的一个关键挑战是考虑NVRAM写入可能比NVRAM读取昂贵得多的不对称性。在本文中,我们考虑了一个大类的高速缓存不经意算法的动态规划(DP)和线性代数,并试图减少写在非对称设置,同时保持高并行性。为了实现这一点,我们的关键方法是显示这些问题之间的对应关系和它们的计算抽象,这被称为$k$ -d网格。然后通过展示计算$k$ -d网格的下界和新算法,我们展示了许多DP递归和线性代数中的非对称设置的改进的高速缓存无关算法的列表,顺序和并行。令人惊讶的是,即使不考虑读写不对称性(即,在算法中将写成本设置为与读成本相同),新算法改善了许多问题的现有高速缓存复杂度。我们认为原因是$k$ -d网格的额外抽象级别有助于我们更好地理解这些问题的复杂性和困难。我们认为,我们的框架的新颖性是有意义的,并为未来的工作带来许多新的问题。

英文摘要:

Emerging non-volatile main memory (NVRAM) technologies provide byte-addressability, low idle power, and improved memory-density, and are likely to be a key component in the future memory hierarchy. However, a critical challenge in achieving high performance is in accounting for the asymmetry that NVRAM writes can be significantly more expensive than NVRAM reads. In this paper, we consider a large class of cache-oblivious algorithms for dynamic programming (DP) and linear algebra, and try to reduce the writes in the asymmetric setting while maintaining high parallelism. To achieve that, our key approach is to show the correspondence between these problems and an abstraction for their computation, which is referred to as the $k$-d grids. Then by showing lower bound and new algorithms for computing $k$-d grids, we show a list of improved cache-oblivious algorithms of many DP recurrences and in linear algebra in the asymmetric setting, both sequentially and in parallel. Surprisingly, even without considering the read-write asymmetry (i.e., setting the write cost to be the same as the read cost in the algorithms), the new algorithms improve the existing cache complexity of many problems. We believe the reason is that the extra level of abstraction of $k$-d grids helps us to better understand the complexity and difficulties of these problems. We believe that the novelty of our framework is of interests and leads to many new questions for future work.

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

↑