legate.core.Runtime.create_store_from_tiles#

Runtime.create_store_from_tiles(
self,
Type dtype,
shape,
tile_shape,
list allocations,
ordering=None,
) tuple#

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 ordering is not a DimOrdering or any item in allocations is not an ExternalAllocation

  • ValueError – 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