legate.core.TaskContext#
- class legate.core.TaskContext#
- __init__(*args, **kwargs)#
Attributes
tuple[PhysicalArray, ...]
Domain_t
Machine
tuple[PhysicalArray, ...]
str
tuple[PhysicalArray, ...]
tuple[Scalar, ...]
DomainPoint_t
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)