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

自适应推测并行网格生成的任务框架

Tasking framework for Adaptive Speculative Parallel Mesh Generation

Christos Tsolakis, Polykarpos Thomadakis, Nikos Chrisochoides

AI总结:

提出基于关注点分离的任务框架,将线程管理与调度抽象为通用可重用层,在保证可移植性下实现最高13%网格操作加速,并将开销降低达1200%。

摘要:

处理日益复杂的网格生成代码以及新硬件的复杂性,通常会导致代码既难以理解又难以维护。代码的不同方面(如线程管理和负载均衡)常常交织在一起,导致软件高效但极其复杂。在这项工作中,我们提出了一个框架,该框架有助于确立“关注点分离”这一核心原则,即将各种网格操作的功能与其性能方面分离开来。特别是,线程管理和调度决策被提升到一个通用且可重用的任务框架中。结果表明,我们的方法能够成功抽象出两个案例研究的负载均衡方面,同时提供对众多不同执行后端的访问。人们可能会预期这种新灵活性会带来一些额外成本。然而,对于本研究中所考察的配置,我们观察到某些网格操作实现了高达13%的加速,且在整个应用程序运行时间内,与手工优化的代码相比实现了高达5.8%的加速。此外,我们表明,通过使用不同的任务创建策略,与直接的任务执行模型相比,其开销可以大幅改善多达1200%,同时不妥协可移植性和功能性。

英文摘要:

Handling the ever-increasing complexity of mesh generation codes along with the intricacies of newer hardware often results in codes that are both difficult to comprehend and maintain. Different facets of codes such as thread management and load balancing are often intertwined, resulting in efficient but highly complex software. In this work, we present a framework which aids in establishing a core principle, deemed separation of concerns, where functionality is separated from performance aspects of various mesh operations. In particular, thread management and scheduling decisions are elevated into a generic and reusable tasking framework. The results indicate that our approach can successfully abstract the load balancing aspects of two case studies, while providing access to a plethora of different execution back-ends. One would expect, this new flexibility to lead to some additional cost. However, for the configurations studied in this work, we observed up to 13% speedup for some meshing operations and up to 5.8% speedup over the entire application runtime compared to hand-optimized code. Moreover, we show that by using different task creation strategies, the overhead compared to straight-forward task execution models can be improved dramatically by as much as 1200% without compromises in portability and functionality.

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

↑