ComputeGraphTypes C++ API#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

See the narrative documentation of this module for background and usage guidance.

Classes#

  • AllocDescriptor - Metadata for memory allocation/deallocation nodes.

  • BatchedGemmDescriptor - Metadata for BatchedGemm nodes produced by the GEMMBatching pass.

  • CommDescriptor - Metadata for distributed communication nodes (Allreduce, Broadcast, etc.).

  • ComputeGraphData - Complete serialized compute graph, as used for profiling and visualization.

  • DiskIODescriptor - Metadata for disk I/O nodes (DiskRead / DiskWrite).

  • ElementTransformDescriptor - Metadata for OpKind::ElementTransform nodes whose kernel is NAMED.

  • EnumNames - A value-to-spelling table for one enumeration.

  • GemmGroup - One shape class inside a GroupedBatchedGemmDescriptor.

  • GraphEdgeData - Serialized representation of a data-flow edge in a graph snapshot.

  • GraphNodeData - Serialized representation of a computation node in a graph snapshot.

  • GraphTensorData - Serialized representation of a tensor in a compute graph snapshot.

  • GroupedBatchedGemmDescriptor - Metadata for GroupedBatchedGemm nodes.

  • GrowthClass - How a space’s extent grows with the size of the system.

  • IndexSpace - The semantics of one index space, and nothing else.

  • InitializeDescriptor - Metadata for Initialize nodes (zero fill, random fill, disk load).

  • SpaceId - Opaque handle to a space held by a SpaceRegistry.

  • SpacePolicy - Machine policy attached to a space by name.

  • SpaceRegistry - Spaces, the relations declared between them, and the policy table keyed by their names.

  • TransferDescriptor - Metadata for GPU memory transfer nodes (HostToDevice / DeviceToHost).

Functions#

  • alloc_state_from_name - The AllocState spelled name, if there is one.

  • alloc_state_name - The name of an allocation state, for diagnostics and the saved form.

  • blas_scalar_of - The BlasScalar tag naming T.

  • describe_space_conflict - Name the fields two same-named spaces disagree on, with both values.

  • init_kind_from_name - The InitKind spelled name, if there is one.

  • init_kind_name - The name of an initialization strategy, for diagnostics and the saved form.

  • is_collective - Distributed collective kinds (Allreduce, Broadcast, Allgather, Scatter, Barrier).

  • is_control_flow - Control-flow kinds carrying subgraphs (Conditional, Loop, Setup).

  • is_infrastructure - Infrastructure kinds that carry no einsum-style data dependency a distribution/communication pass should reason about: collectives plus materialize/initialize, host/device transfers, disk I/O, and control flow.

  • is_lifecycle - Lifecycle/bookkeeping kinds that produce no value of their own (Alloc, Free, Materialize, Initialize). Passes counting value-producing nodes or resolving readers/writers skip these; must stay in lockstep with Graph::effective_io.

  • is_transfer - Host<->device transfer kinds (HostToDevice, DeviceToHost).

  • make_index_space - Build an IndexSpace from its parts.

  • op_kind_from_name - The OpKind spelled name, if there is one.

  • op_kind_name - Convert an OpKind enum value to its string name.

  • tristate_name - Name of a Tristate value.

Operators#

Enumerations#

  • AllocState - Allocation state of a tensor in the graph.

  • BlasScalar - Data-type tag for BatchedGemmDescriptor.

  • DistributionHint - How a space’s axis should be laid out across ranks. Machine policy, never part of IndexSpace.

  • InitKind - Initialization strategy for deferred tensors.

  • OpKind - Identifies the kind of operation a node represents.

  • Residency - Where a tensor’s data currently resides.

  • StorageHint - Where a space’s data should preferentially live. Machine policy, never part of IndexSpace.

  • Target - Where a node should execute.

  • TensorOwnership - Ownership level of a tensor (determines declaration scope in code generation).

  • Tristate - Answer to a relation query that may simply not be known.

Types#

  • NodeId - Unique identifier for a node within a computation graph.

  • TensorId - Unique identifier for a tensor within a computation graph.

Variables#