Extended Abstract

Kyle Chard, Yadu Babuji, Anna Woodard, Ben Clifford, Zhuozhao Li, Mihael Hategan, Ian Foster, Mike Wilde, Daniel S. Katz · DOI

Authors and Affiliations

Abstract

Parsl is a parallel programming library for Python designed to simplify the specification and execution of parallel programs across diverse computing infrastructures. By utilizing simple decorators to wrap Python functions and external applications, Parsl enables developers to define asynchronous tasks that are automatically managed via a dynamic dependency graph. This approach allows for seamless scaling from local workstations to massive supercomputers without requiring modifications to the core program logic. This abstract outlines Parsl's architecture, its "productive" programming model, and its demonstrated performance on high-performance computing (HPC) systems.

Introduction

The evolution of high-performance computing (HPC) has become critical as sequential processing speeds plateau. While Python has become the lingua franca for data science and scientific research, its inherent limitations—most notably the Global Interpreter Lock (GIL)—hinder its ability to utilize multi-core and distributed resources effectively. Existing solutions like the multiprocessing library often fail to scale beyond a single machine, forcing researchers into a cycle of manual code refactoring when moving from development to production environments. Parsl addresses this "portability gap" by providing a high-level abstraction for parallel execution that is both robust and developer-friendly.

The Parsl Programming Model

Parsl introduces a model based on three pillars: Apps, Futures, and Dynamic Dependency Graphs.

Parsl Apps

Developers define units of work using two types of decorators:

  • @python_app: Used for functions containing pure Python code.
  • @bash_app: Used to wrap external command-line tools and shell scripts. These decorators transform standard functions into asynchronous tasks that return immediately when called.

Futures and Asynchrony

When a Parsl app is invoked, it returns a Future object. This object acts as a proxy for a result that will be available later. This non-blocking behavior allows the main Python script to continue executing and submitting further tasks, effectively building a pipeline of work.

Dynamic Dependency Graphs

Parsl's runtime system monitors the exchange of data between these Futures. It implicitly constructs a Directed Acyclic Graph (DAG) of tasks. A task is only dispatched for execution once all its input dependencies (results from previous tasks) are satisfied. This mechanism ensures that parallelism emerges naturally from the data flow of the program, rather than requiring manual synchronization by the developer.

System Architecture and Portability

A fundamental design principle of Parsl is the Separation of Concerns. The program logic (the "what") is kept entirely independent of the execution configuration (the "where").

Hardware-specific details are defined in a separate Config object, which specifies:

  • The number of compute nodes and cores.
  • The cluster scheduler (e.g., Slurm, HTCondor, Cobalt).
  • The type of executor (e.g., HighThroughputExecutor).
  • Data staging providers.

This abstraction enables a "write once, run anywhere" workflow. For instance, a researcher can develop and test a workflow on a laptop and then deploy it to a flagship system like TACC’s Frontera supercomputer by simply swapping the configuration object.

Performance and Scalability

Parsl is engineered for extreme scale and high throughput. Key performance metrics from large-scale deployments include:

  • Massive Scalability: Successful execution across more than 8,000 nodes, supporting over 250,000 concurrent workers.
  • High Throughput: The ability to process and dispatch upwards of 1,200 tasks per second.
  • Task Volume: Management of complex scientific workflows consisting of millions of individual tasks.

Conclusion and Future Work

Parsl provides a scalable, fault-tolerant framework for parallel Python. While it requires tasks to be self-contained (e.g., internal imports), it significantly reduces the complexity of distributed computing. Future work involves further optimizing the HighThroughputExecutor and expanding support for heterogeneous data staging environments to meet the needs of the growing scientific computing community.

Summary updated

BibTeX
@article{chard2021extended,
  author = {Kyle Chard and Yadu Babuji and Anna Woodard and Ben Clifford and Zhuozhao Li and Mihael Hategan and Ian Foster and Mike Wilde and Daniel S. Katz},
  title = {{Extended Abstract}},
  journal = {ACM SIGAda Ada Letters},
  year = {2021},
  doi = {10.1145/3463478.3463486},
}
Figure