Legate Runtime#

The Legate runtime provides APIs for creating stores and issuing tasks and other kinds of operations.

Runtime.create_store(self, Type dtype, ...)

Runtime.create_manual_task(self, ...[, ...])

Creates a manual task.

Runtime.create_auto_task(self, ...)

Creates an auto task.

Runtime.issue_fill(self, array_or_store, value)

Fills the array or store with a constant value.

Runtime.issue_execution_fence(self, ...)

Runtime.tree_reduce(self, Library library, ...)

Performs a user-defined reduction by building a tree of reduction tasks.

Annotation#

An Annotation is a context manager to set library specific annotations that are to be attached to operations issued within a scope. A typical usage of Annotation would look like this:

with Annotation(lib_context, { "key1" : "value1", "key2" : "value2", ... }:
  ...

Then each operation in the scope is annotated with the key-value pairs, which are later rendered in execution profiles.

Annotation.__init__(pairs)

Constructs a new annotation object