arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1905.02158cs.DCcs.PL
收藏

Parsl:Python中的普适并行编程

Parsl: Pervasive Parallel Programming in Python

Yadu Babuji, Anna Woodard, Zhuozhao Li, Daniel S. Katz, Ben Clifford, Rohan Kumar, Lukasz Lacinski, Ryan Chard, Justin M. Wozniak, Ian Foster, Michael Wilde, Kyle Chard

摘要:

高级程序设计语言(如Python)越来越多地用于为用低级语言编写的库提供直观的接口,并用于从各种组件组装应用程序。这种向编排而不是实现的迁移,加上对并行计算的日益增长的需求(例如,由于大数据和摩尔定律的终结,有必要重新思考如何在程序中表达并行性。在这里,我们介绍了Parsl,一个并行脚本库,它为Python提供了简单、可扩展和灵活的并行编码结构。这些构造允许Parsl构造组件的动态依赖图,然后它可以在一个或多个处理器上有效地执行。Parsl是为可伸缩性而设计的,它有一组可扩展的执行器,可以针对不同的用例进行定制,比如低延迟、高吞吐量或极端规模的执行。通过在Blue Waters超级计算机上的实验,我们表明,Parsl执行器可以允许Python脚本以低至5 ms的开销执行组件,扩展到超过8000个节点上的250 000多个工人,每秒处理1200个任务。Parsl的其他特性通过支持基础设施的弹性配置和扩展、容错执行和集成广域数据管理来简化复合程序的构建和执行。我们表明,这些功能满足了多任务,交互式,在线和机器学习应用程序在生物学,宇宙学和材料科学等领域的需求。

英文摘要:

High-level programming languages such as Python are increasingly used to provide intuitive interfaces to libraries written in lower-level languages and for assembling applications from various components. This migration towards orchestration rather than implementation, coupled with the growing need for parallel computing (e.g., due to big data and the end of Moore's law), necessitates rethinking how parallelism is expressed in programs. Here, we present Parsl, a parallel scripting library that augments Python with simple, scalable, and flexible constructs for encoding parallelism. These constructs allow Parsl to construct a dynamic dependency graph of components that it can then execute efficiently on one or many processors. Parsl is designed for scalability, with an extensible set of executors tailored to different use cases, such as low-latency, high-throughput, or extreme-scale execution. We show, via experiments on the Blue Waters supercomputer, that Parsl executors can allow Python scripts to execute components with as little as 5 ms of overhead, scale to more than 250 000 workers across more than 8000 nodes, and process upward of 1200 tasks per second. Other Parsl features simplify the construction and execution of composite programs by supporting elastic provisioning and scaling of infrastructure, fault-tolerant execution, and integrated wide-area data management. We show that these capabilities satisfy the needs of many-task, interactive, online, and machine learning applications in fields such as biology, cosmology, and materials science.

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

↑