legate.core.Runtime.create_store#

Runtime.create_store(
self,
Type dtype,
shape: Shape | Collection[int] | None = None,
bool optimize_scalar=False,
ndim: int | None = None,
) LogicalStore#

Create a LogicalStore.

If shape is None, the created store is unbound, otherwise it is bound.

If shape is not None, this call does not block on the shape.

Parameters:
  • dtype (Type) – The element type of the store.

  • shape (Shape | Collection[int] | None (optional)) – The shape of the store.

  • optimize_scalar (bool (False)) – Whether to optimize the store for scalar storage.

  • ndim (int | None (optional, 1)) – The number of dimensions for the store.

Returns:

The newly created store.

Return type:

LogicalStore

Raises:

ValueError – If both ndim and shape are not None.