legate.core.AutoTask.add_reduction#

AutoTask.add_reduction(
self,
LogicalStore store,
int32_t redop,
partition: object = None,
) Variable#

Adds a logical store to the task for reduction

Parameters:
  • store (LogicalStore) – LogicalStore to pass for reduction

  • redop (int) – Reduction operator ID

  • partition (Variable, optional) – Partition to associate with the store. The default partition is picked if none is given.

Raises:

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