legate.core.TaskContext#

class legate.core.TaskContext#
__init__(*args, **kwargs)#

Attributes

inputs

tuple[PhysicalArray, ...]

launch_domain

Domain_t

machine

Machine

outputs

tuple[PhysicalArray, ...]

provenance

str

reductions

tuple[PhysicalArray, ...]

scalars

tuple[Scalar, ...]

task_index

DomainPoint_t

task_stream

int | None

Methods

can_raise_exception(self)

Get whether a task is allowed to raise exceptions.

get_task_id(self)

Get the global task ID.

get_variant_kind(self)

Get the VariantCode for this task.

is_single_task(self)

Indicates whether only a single instance of the task is running.

set_exception(self, Exception excn)