legate.core.AutoTask.add_scalar_arg#

AutoTask.add_scalar_arg(
self,
value: Any,
dtype: Type | tuple[Type, ...] | None = None,
) void#

Adds a by-value argument to the task

Parameters:
  • value (Any) – Scalar value or a tuple of scalars (but no nested tuples)

  • dtype (Dtype) – Data type descriptor for the scalar value. A descriptor (T,) means that the value is a tuple of elements of type T (i.e., equivalent to array_type(T, len(value))).

Raises:

RuntimeError – If the AutoTask has been previously locked by a PyTask.