legate.core.task.ReductionStore#

class legate.core.task.ReductionStore#

Convenience class for specifying reduction stores for Legate task variants.

This class can be used as a type annotation in order to mark parameters as reductions that should be taken from TaskContext.reductions when the task code is invoked:

def task_function(in: InputStore, red: ReductionStore) -> None
__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

bind_data(self, TaskLocalBuffer buffer[, extent])

Binds a buffer to the store.

create_output_buffer(self, shape, bool bind=True)

Create a buffer for the store to potentially bind to later on.

get_inline_allocation(self)

Get the InlineAllocation for this store.

Attributes

__array_interface__

dict[str, Any]

__cuda_array_interface__

dict[str, Any]

__doc__

domain

Domain_t

ndim

int32_t

target

StoreTarget

type

Type