legate.core.Runtime.create_store_from_tiles#
- Runtime.create_store_from_tiles(
- self,
- Type dtype,
- shape,
- tile_shape,
- list allocations,
- ordering=None,
Attach multiple external allocations as tiles of a single store.
All allocations must be read-only.
- Parameters:
dtype (Type) – Element type of the store.
shape (Shape | Collection[int]) – Global shape of the store.
tile_shape (tuple[int, ...] | Collection[int]) – Shape of each tile.
allocations (list[tuple[ExternalAllocation, tuple[int, ...]]]) –
(allocation, color)pairs for tiles owned by this node. The runtime assembles them across nodes into the global store.ordering (DimOrdering, optional) – Dimension ordering. Defaults to C order.
- Returns:
The store and its tile partition.
- Return type:
tuple[LogicalStore, LogicalStorePartition]
- Raises:
TypeError – If
orderingis not aDimOrderingor any item inallocationsis not anExternalAllocationValueError – If any of the external allocations is not read-only, or if
shape,tile_shape, or a color is not a sequence of non-negative integers