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

传统稀疏优化对迁移线程体系结构的影响

Impact of Traditional Sparse Optimizations on a Migratory Thread Architecture

Thomas B. Rolinger, Christopher D. Krieger

摘要:

由于访问模式不规则和局部性弱,稀疏应用程序实现高性能具有挑战性。这些属性排除了许多静态优化,并降低了传统系统上的缓存性能。为了解决这些挑战,已经提出了诸如EMU架构的新颖系统。Emu的设计使用轻量级的迁移线程、窄内存和近内存处理能力来解决弱局部性问题,并减少内存系统的总负载。由于EMU架构与基于缓存的分层存储器系统有着根本的不同,因此了解EMU硬件上标准稀疏算法优化的成本效益权衡至关重要。在这项工作中,我们探讨稀疏矩阵向量乘法(SpMV)的动车组架构。我们研究了不同的稀疏优化的效果,如密集的矢量数据布局,工作分布和矩阵重新排序。我们的研究发现,由于EMU线程的迁移特性,最初在系统中均匀分布工作不足以随着时间的推移保持负载均衡。在严重的情况下,矩阵稀疏模式会产生热点,因为许多迁移线程会聚集在单个资源上。我们证明,已知的矩阵重新排序技术可以提高高达70%的动车组架构上的SpMV性能,鼓励更一致的负载均衡。这可以与基于高速缓存的系统上不超过16%的性能增益进行比较。

英文摘要:

Achieving high performance for sparse applications is challenging due to irregular access patterns and weak locality. These properties preclude many static optimizations and degrade cache performance on traditional systems. To address these challenges, novel systems such as the Emu architecture have been proposed. The Emu design uses light-weight migratory threads, narrow memory, and near-memory processing capabilities to address weak locality and reduce the total load on the memory system. Because the Emu architecture is fundamentally different than cache based hierarchical memory systems, it is crucial to understand the cost-benefit tradeoffs of standard sparse algorithm optimizations on Emu hardware. In this work, we explore sparse matrix-vector multiplication (SpMV) on the Emu architecture. We investigate the effects of different sparse optimizations such as dense vector data layouts, work distributions, and matrix reorderings. Our study finds that initially distributing work evenly across the system is inadequate to maintain load balancing over time due to the migratory nature of Emu threads. In severe cases, matrix sparsity patterns produce hot-spots as many migratory threads converge on a single resource. We demonstrate that known matrix reordering techniques can improve SpMV performance on the Emu architecture by as much as 70% by encouraging more consistent load balancing. This can be compared with a performance gain of no more than 16% on a cache-memory based system.

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

↑