Pygion
Overview
Pygion is task-based framework for Python based on the Legion programming system. As with Legion, Pygion provides sequential semantics. Tasks may execute asynchronously and in parallel, but only when they preserve the behavior of sequential execution. Pygion analyzes tasks (via Legion) to determine what tasks are safe to execute in parallel and when data movement or synchronization is required for safe execution.
For an overview of Pygion, the original PAW-ATM paper.
Getting Started
Pygion lives in the main Legion repo under
bindings/python
. To
get started with Pygion, build with Make in that directory:
Customize the -j
flag parameter to control the number of threads used to build, depending on your machine.
Building with CMake
If you prefer to use CMake, then build Legion at the top level -DLegion_BUILD_BINDINGS=ON -DLegion_USE_Python=ON
:
Examples
A wide variety of examples, with detailed comments, can be found in the examples
directory. Most of the important features of Pygion are demonstrated in these examples.
A dedicated tutorial series for Pygion is coming soon.