legate.core.operation.Copy.add_reduction#
- Copy.add_reduction(store: Store, redop: int) None #
Adds a store as a reduction target of the copy. To avoid ambiguity in matching sources and targets, one copy cannot have both normal targets and reduction targets.
- Parameters:
store (Store) – Reduction target store
redop (int) – Reduction operator ID
- Raises:
RuntimeError – If the copy already has a normal target
ValueError – If the store is scalar or unbound