利用任务和未来发现大型动力系统的守恒律:动态数据依赖的案例研究
Finding Conservation Laws of Large Dynamical Systems with Tasks and Futures: A Case Study in Utilizing Dynamic Data Dependencies
AI总结:
针对未来模型值不可变限制内存复用的问题,提出await_delete扩展以安全重用值,并基于此实现块状稠密对称矩阵求逆算法,在大规模矩阵上实现近线性扩展。
摘要:
随着并行工作负载复杂性的增加,管理细粒度数据依赖成为一个关键挑战。未来模型为处理这些依赖提供了一种有前景的方案,特别是在不规则算法中,但同时也带来了值不可变的限制。这种不可变性限制了执行原地内存更新的能力,而内存回收对于高性能线性代数至关重要。在本文中,我们通过引入一个新的构造await_delete来克服这些限制,该构造扩展了传统的未来语义,允许在消费者完成后安全地重用值。基于这一扩展,我们提出了一种新的基于未来的算法,用于稠密对称矩阵的块状求逆,其动机来自最近一种用于发现动力系统守恒律的算法。我们在Taskflow的扩展版本中实现了我们的方法,并通过强扩展实验进行评估。结果表明,虽然未来模型在较小问题规模上会产生显著开销,但在大矩阵上实现了近线性扩展。我们分析了摊销阈值,并表明未来模型是大规模线性代数中可行的高性能工具。
英文摘要:
As parallel workloads grow in complexity, managing fine-grained data dependencies becomes a critical challenge. Futures offer a promising model for handling these dependencies, particularly in irregular algorithms, but they also come with the restriction of value-immutability. This immutability limits the ability to perform in-place memory updates, a necessity for high-performance linear algebra where memory recycling is paramount. In this paper, we address these limitations by introducing a new construct, await_delete, which extends traditional future semantics to allow safe value reuse once consumers are finished. Building on this extension, we present a novel future-based algorithm for the block-wise inversion of dense, symmetric matrices, motivated by a recent algorithm for finding conservation laws of dynamical systems. We implement our approach in an extended version of Taskflow and evaluate it through strong-scaling experiments. Our results demonstrate that while futures incur significant overhead on smaller problem sizes, they achieve nearly linear scaling on large matrices. We analyze the amortization threshold and show that futures are a viable high-performance tool for large-scale linear algebra.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。