dau_core.design

Classes

UnitKind

Enum where members are also (and must be) strings

OperatorUnit

A count of identical hardware operator engines and what they accept.

DauDesign

The operator inventory a synthesized DAU design advertises.

Functions

format_units(units) → str

parse_units(value) → tuple[OperatorUnit, ...]

Module Contents

class dau_core.design.UnitKind[source]

Bases: enum.StrEnum

Enum where members are also (and must be) strings

Initialize self. See help(type(self)) for accurate signature.

AGGREGATION = 'aggregation'
JOIN = 'join'
MEMBERSHIP = 'membership'
SORT = 'sort'
class dau_core.design.OperatorUnit[source]

A count of identical hardware operator engines and what they accept.

opcodes and input_types describe aggregation coverage; join and sort units currently carry no opcode/type detail and exist as capacity only.

kind: UnitKind
count: int
opcodes: tuple[dau_core.stream.OperationCode, ...] = ()
input_types: tuple[dau_core.stream.LogicalType, ...] = ()
__post_init__() → None[source]
supports(opcode: dau_core.stream.OperationCode, logical_type: dau_core.stream.LogicalType) → bool[source]
class dau_core.design.DauDesign[source]

The operator inventory a synthesized DAU design advertises.

name: str
units: tuple[OperatorUnit, ...] = ()
units_of(kind: UnitKind) → tuple[OperatorUnit, ...][source]
capacity(kind: UnitKind) → int[source]
aggregation_capacity(opcode: dau_core.stream.OperationCode, logical_type: dau_core.stream.LogicalType) → int[source]
manifest_items() → tuple[tuple[str, str], ...][source]
classmethod from_manifest_mapping(mapping: dict[str, str]) → DauDesign[source]
classmethod from_manifest(path: str | pathlib.Path) → DauDesign[source]
dau_core.design.format_units(units: tuple[OperatorUnit, ...]) → str[source]
dau_core.design.parse_units(value: str) → tuple[OperatorUnit, ...][source]