Skip to navigation

holoscan::ExecutionPlan

Beta
View as MarkdownOpen in Claude

Own an immutable inspectable result of Graph compilation.

Copies share one immutable state. The state deep-owns all records and remains valid after the source Graph is mutated or destroyed. A rejected plan remains queryable but cannot be executed by later runtime entry points.

#include <holoscan/execution_plan.hpp>

Constructors

ExecutionPlan

holoscan::ExecutionPlan::ExecutionPlan() noexcept = default

Create an empty rejected plan handle.


Methods

json

std::string_view holoscan::ExecutionPlan::json() const noexcept

Return canonical schema-versioned JSON.

Returns: Plan-owned bytes, or an empty view for an empty handle.

graph

ExecutionGraphView holoscan::ExecutionPlan::graph() const noexcept

Return the frozen canonical compiler snapshot.

These IDs need not equal the snapshot-local authoring IDs exposed by GraphView. Match plan records only against this view.

Returns: Shared immutable canonical view using the same dense IDs as all plan records, or an empty view.

graph_identity

GraphAuthoringIdentity holoscan::ExecutionPlan::graph_identity() const noexcept

Return the complete source Graph identity.

Returns: Frozen process-local instance/version/hash tuple, or zeros.

generation

GraphGeneration holoscan::ExecutionPlan::generation() const noexcept

Return the frozen source Graph generation.

Returns: Nonzero generation for a composed plan, or zero.

graph_hash

GraphAuthoringHash holoscan::ExecutionPlan::graph_hash() const noexcept

Return the canonical source Graph authoring hash.

Returns: Authoring-content hash, or all-zero bytes.

digest

PlanDigest holoscan::ExecutionPlan::digest() const noexcept

Return the semantic execution-plan digest.

Returns: Versioned normalized plan digest, or all-zero bytes.

ok

bool holoscan::ExecutionPlan::ok() const noexcept

Return whether admission completed without an error diagnostic.

Returns: true for an admitted plan with no error, including a compiler-accepted empty Graph’s zero-work plan.

diagnostics

std::span<const Diagnostic> holoscan::ExecutionPlan::diagnostics() const noexcept

Return stable compile diagnostics in canonical order.

Returns: Plan-owned immutable records, or an empty span.

require_no_errors

void holoscan::ExecutionPlan::require_no_errors() const

Require an admitted plan before continuing cold setup.

Throws: CompileError when the handle is empty or the plan has an error.

profile_manifest

const ProfileManifest & holoscan::ExecutionPlan::profile_manifest() const noexcept

Return immutable profile admission evidence.

Returns: Plan-owned manifest, or a stable empty rejected manifest.

partitioning_plan

const PartitioningPlanRecord & holoscan::ExecutionPlan::partitioning_plan() const noexcept

Return partition algorithm selection evidence.

Inspect PartitioningPlanRecord::disposition before interpreting accepted-cover fields such as PartitioningPlanRecord::mode and the partition counts.

Returns: Plan-owned record, or a stable empty rejected record.

partitions

ExecutionPartitionsView holoscan::ExecutionPlan::partitions() const

Return the retained high-level partition inspection range.

Returns: Immutable range and lookup facade retaining plan state independently.

Throws: RuntimeError with ErrorCode::kInvalidArgument when this plan is default-constructed or rejected.

partition_decisions

std::span<const PartitionDecisionRecord> holoscan::ExecutionPlan::partition_decisions() const noexcept

Return canonical per-vertex partition decisions.

Returns: Plan-owned immutable records, or an empty span.

execution_partitions

std::span<const ExecutionPartitionRecord> holoscan::ExecutionPlan::execution_partitions() const noexcept

Return the accepted disjoint execution-partition cover.

Returns: Plan-owned immutable records, or an empty span.

schedule_edges

std::span<const ScheduleEdgeRecord> holoscan::ExecutionPlan::schedule_edges() const noexcept

Return every original graph edge crossing accepted partitions.

Returns: Plan-owned immutable records, or an empty span.

scheduler_plan

SchedulerPlanRecord holoscan::ExecutionPlan::scheduler_plan() const noexcept

Return aggregate partition-owner scheduler evidence.

The record permits concurrency across execution partitions while preserving deterministic serial callback execution within every partition.

Returns: Accepted scheduler record, or a zero-initialized record.

placement_probes

std::span<const PlacementProbePlanRecord> holoscan::ExecutionPlan::placement_probes() const noexcept

Return compile-time placement proofs and Runtime readback obligations.

Returns: Plan-owned immutable records in partition/probe order.

partition_placements

std::span<const PartitionPlacementPlanRecord> holoscan::ExecutionPlan::partition_placements() const noexcept

Return requested and accepted placement for named execution partitions.

Returns: Plan-owned immutable records in canonical authored-name and request order.

support_thread_affinities

std::span<const SupportThreadAffinityPlanRecord> holoscan::ExecutionPlan::support_thread_affinities() const noexcept

Return requested and accepted affinity for Runtime support-thread roles.

Returns: Plan-owned immutable records in canonical role and request order.

execution_lanes

std::span<const ExecutionLanePlanRecord> holoscan::ExecutionPlan::execution_lanes() const noexcept

Return every dense partition-local serial callback owner consumed by Runtime.

Returns: Plan-owned records ordered by zero-based lane identity.

ports

std::span<const PortPlanRecord> holoscan::ExecutionPlan::ports() const noexcept

Return canonical compiled ports with resolved finite bounds.

Returns: Plan-owned records in dense PortId order.

port_rates

std::span<const PortRatePlanRecord> holoscan::ExecutionPlan::port_rates() const noexcept

Return pointer-free rate declarations and lifecycle selection domains.

Returns: Plan-owned records in dense PortId order.

accumulation_horizons

std::span<const AccumulationHorizonPlanRecord> holoscan::ExecutionPlan::accumulation_horizons() const noexcept

Return exact finite accumulation horizons used by queue sizing.

Returns: Plan-owned records in canonical edge and horizon order.

hard_floor_contributors

std::span<const HardFloorContributorPlanRecord> holoscan::ExecutionPlan::hard_floor_contributors() const noexcept

Return reviewable hard-floor contributions and composition identities.

Returns: Plan-owned records in canonical edge and contributor order.

queue_sizing_recipes

std::span<const QueueSizingRecipePlanRecord> holoscan::ExecutionPlan::queue_sizing_recipes() const noexcept

Return immutable logical queue-sizing recipes.

Returns: Plan-owned records in canonical EdgeId order.

interface_port_bindings

std::span<const InterfacePortBindingPlanRecord> holoscan::ExecutionPlan::interface_port_bindings() const noexcept

Return reusable-Graph aliases projected into plan-local port identities.

Returns: Plan-owned records in public/internal port order.

payload_edges

std::span<const PayloadEdgePlanRecord> holoscan::ExecutionPlan::payload_edges() const noexcept

Return resolved typed payload edges and queue/cache geometry.

Returns: Plan-owned records in canonical EdgeId order.

channel_locality

std::span<const ChannelLocalityRecord> holoscan::ExecutionPlan::channel_locality() const noexcept

Return requested and accepted communication locality per payload edge.

Returns: Plan-owned records in canonical EdgeId order.

channel_services

std::span<const ChannelServiceStaticPlanRecord> holoscan::ExecutionPlan::channel_services() const noexcept

Return external Channel service-static requirements.

Returns: Plan-owned records in canonical external-topic order.

channel_publishers

std::span<const ChannelPublisherEndpointPlanRecord> holoscan::ExecutionPlan::channel_publishers() const noexcept

Return publisher-local external endpoint requests.

Returns: Plan-owned records in canonical external-topic order.

channel_subscribers

std::span<const ChannelSubscriberEndpointPlanRecord> holoscan::ExecutionPlan::channel_subscribers() const noexcept

Return subscriber-local external endpoint requests.

Returns: Plan-owned records in canonical external-topic order.

generic_output_loans

std::span<const GenericOutputLoanPlanRecord> holoscan::ExecutionPlan::generic_output_loans() const noexcept

Return admitted generic non-Tensor output-loan capabilities.

Returns: Plan-owned records in output PortId order.

tensor_allocations

std::span<const TensorAllocationPlanRecord> holoscan::ExecutionPlan::tensor_allocations() const noexcept

Return direct Tensor output-allocation capabilities.

Returns: Plan-owned records only for outputs admitted with runtime-pool storage intent.

tensor_byte_span_derivations

std::span<const TensorByteSpanDerivationPlanRecord> holoscan::ExecutionPlan::tensor_byte_span_derivations() const noexcept

Return compile-time evidence for Parameter/input-derived Tensor slot capacities.

Returns: Immutable records in output PortId order.

find_tensor_byte_span_derivation

const TensorByteSpanDerivationPlanRecord * holoscan::ExecutionPlan::find_tensor_byte_span_derivation(
std::string_view operator_path,
std::string_view output_name,
std::optional<std::uint16_t> field_id = std::nullopt,
std::optional<std::uint16_t> tensor_index = std::nullopt
) const noexcept

Find derived Tensor capacity evidence by authored Operator and output names.

Returns: A plan-owned record, or nullptr when the names are absent, the field selector is incomplete, or an omitted field selector would be ambiguous for a multi-Tensor output.

Parameters

operator_path
std::string_view

Canonical Operator path, such as resize or child/resize.

output_name
std::string_view

Declaration-local output name.

field_id
std::optional<std::uint16_t>Defaults to std::nullopt

Optional descriptor-schema field identity.

tensor_index
std::optional<std::uint16_t>Defaults to std::nullopt

Optional descriptor-schema Tensor index paired with field_id.

tensor_memory_kind_derivations

std::span<const TensorMemoryKindDerivationPlanRecord> holoscan::ExecutionPlan::tensor_memory_kind_derivations() const noexcept

Return compile-time evidence for Parameter-derived Tensor memory kinds.

Returns: Immutable records in output PortId and descriptor-field order.

find_tensor_memory_kind_derivation

const TensorMemoryKindDerivationPlanRecord * holoscan::ExecutionPlan::find_tensor_memory_kind_derivation(
std::string_view operator_path,
std::string_view output_name,
std::optional<std::uint16_t> field_id = std::nullopt,
std::optional<std::uint16_t> tensor_index = std::nullopt
) const noexcept

Find derived Tensor memory-kind evidence by authored Operator and output names.

Returns: A plan-owned record, or nullptr when the names are absent, the field selector is incomplete, or an omitted field selector would be ambiguous for a multi-Tensor output.

Parameters

operator_path
std::string_view

Canonical Operator path, such as resize or child/resize.

output_name
std::string_view

Declaration-local output name.

field_id
std::optional<std::uint16_t>Defaults to std::nullopt

Optional descriptor-schema field identity.

tensor_index
std::optional<std::uint16_t>Defaults to std::nullopt

Optional descriptor-schema Tensor index paired with field_id.

tensor_field_allocations

std::span<const TensorFieldAllocationPlanRecord> holoscan::ExecutionPlan::tensor_field_allocations() const noexcept

Return field-specific allocation records for multi-Tensor schema outputs.

Returns: Immutable records in output then canonical field-id order.

tensor_interface_pools

std::span<const TensorInterfacePoolPlanRecord> holoscan::ExecutionPlan::tensor_interface_pools() const noexcept

Return physical Tensor interface-pool contracts.

Returns: Plan-owned records in canonical external-topic order.

tensor_device_resources

std::span<const TensorDeviceResourcePlanRecord> holoscan::ExecutionPlan::tensor_device_resources() const noexcept

Return aggregated process/device Tensor materialization contracts.

Returns: Plan-owned records in process-group then device order.

cuda_green_context_pools

std::span<const CudaGreenContextPoolPlanRecord> holoscan::ExecutionPlan::cuda_green_context_pools() const noexcept

Return Green Context pool declarations in process/device order.

Returns: Plan-owned records in canonical process-group then device order.

cuda_green_context_resources

std::span<const CudaGreenContextResourcePlanRecord> holoscan::ExecutionPlan::cuda_green_context_resources() const noexcept

Return Green Context resources in pool/context order.

Returns: Plan-owned records in canonical process-group, device, then context order.

cuda_green_context_requests

std::span<const CudaGreenContextRequestPlanRecord> holoscan::ExecutionPlan::cuda_green_context_requests() const noexcept

Return accepted and rejected Green Context requests in canonical selector order.

Returns: Plan-owned records ordered by authored selector, device, then requested SM count.

cuda_green_context_assignments

std::span<const CudaGreenContextAssignmentPlanRecord> holoscan::ExecutionPlan::cuda_green_context_assignments() const noexcept

Return partition-to-context assignments in canonical partition order.

Returns: Plan-owned records ordered by process group, device, then execution partition.

cuda_compute_streams

std::span<const CudaComputeStreamPlanRecord> holoscan::ExecutionPlan::cuda_compute_streams() const noexcept

Return generalized CUDA compute streams in canonical owner order.

Returns: Plan-owned records ordered by process group, device, then stable owner identity.

cuda_compute_stream_policy

CudaComputeStreamPolicy holoscan::ExecutionPlan::cuda_compute_stream_policy() const noexcept

Return the frozen ordinary CUDA compute-stream sharing policy.

Returns: The requested value verbatim. A plan rejected with CUDA_STREAM_POLICY_VIOLATION may retain an out-of-range enum value for inspection.

operator_cuda_stream_bindings

std::span<const OperatorCudaStreamBindingPlanRecord> holoscan::ExecutionPlan::operator_cuda_stream_bindings() const noexcept

Return exact CUDA-active Operator-to-stream bindings.

Returns: Plan-owned records in canonical Operator vertex order.

tensor_inline_records

std::span<const TensorInlineRecordPlanRecord> holoscan::ExecutionPlan::tensor_inline_records() const noexcept

Return generated-provider inline Tensor record bucket contracts.

Returns: Plan-owned records ordered by external topic identity.

imported_generation_capacities

std::span<const ImportedGenerationCapacityPlanRecord> holoscan::ExecutionPlan::imported_generation_capacities() const noexcept

Return finite imported exporter-generation capacities.

Returns: Plan-owned records in canonical external-topic order.

tensor_transfer_plans

std::span<const TensorTransferPlanRecord> holoscan::ExecutionPlan::tensor_transfer_plans() const noexcept

Return the closed Tensor source-class-to-realization matrix.

Returns: Plan-owned records ordered by topic and stable source-class value.

pool_capacity_contributors

std::span<const PoolCapacityContributorRecord> holoscan::ExecutionPlan::pool_capacity_contributors() const noexcept

Return canonical unique-slot capacity contributors.

Returns: Plan-owned records ordered by pool and contributor identity.

pool_capacity_dependencies

std::span<const PoolCapacityDependencyPlanRecord> holoscan::ExecutionPlan::pool_capacity_dependencies() const noexcept

Return stable many-to-many logical-claim to provider-pool dependencies.

Returns: Plan-owned records ordered by pool, scenario, group, and record identity.

provider_allocation_plans

std::span<const ProviderAllocationPlanRecord> holoscan::ExecutionPlan::provider_allocation_plans() const noexcept

Return immutable provider allocation recipes and dependency ranges.

Returns: Plan-owned records ordered by stable pool identity.

publication_outcomes

std::span<const PublicationOutcomePlanRecord> holoscan::ExecutionPlan::publication_outcomes() const noexcept

Return per-output publication-boundary retry and authority contracts.

Returns: Plan-owned records in output PortId order.

readiness

std::span<const ReadinessPlanRecord> holoscan::ExecutionPlan::readiness() const noexcept

Return canonical readiness declarations and admitted capacities.

Returns: Plan-owned immutable records, or an empty span.

clock_catalog

ClockCatalogView holoscan::ExecutionPlan::clock_catalog() const noexcept

Return the immutable plan-local clock catalog.

Returns: Owning view carrying the nonzero plan generation and dense clocks. The returned value remains valid after this ExecutionPlan is destroyed.

clock_conversions

std::span<const ClockConversionRecord> holoscan::ExecutionPlan::clock_conversions() const noexcept

Return explicitly authored direct clock conversions.

Returns: Plan-owned immutable records in canonical declaration order.

endpoint_clock_health

std::span<const EndpointClockHealthPlanRecord> holoscan::ExecutionPlan::endpoint_clock_health() const noexcept

Return normalized clock-health contracts for external endpoints.

Returns: One plan-owned record per external endpoint in boundary-port order.

operator_completion_rules

std::span<const OperatorCompletionPlanRecord> holoscan::ExecutionPlan::operator_completion_rules() const noexcept

Return compile-admitted Operator completion rules.

Returns: Plan-owned records in canonical logical Operator order.

temporal_triggers

std::span<const TemporalTriggerPlanRecord> holoscan::ExecutionPlan::temporal_triggers() const noexcept

Return one total pointer-free record per admitted temporal trigger.

Returns: Plan-owned records in canonical Operator order.

aligned_triggers

std::span<const AlignedTriggerPlanRecord> holoscan::ExecutionPlan::aligned_triggers() const noexcept

Return deterministic oldest-head aligned-join policies.

Returns: Plan-owned records in canonical Operator order.

clock_triggers

std::span<const ClockTriggerPlanRecord> holoscan::ExecutionPlan::clock_triggers() const noexcept

Return fixed-phase clock-trigger schedules.

Returns: Plan-owned records in canonical Operator order.

max_start_delays

std::span<const MaxStartDelayPlanRecord> holoscan::ExecutionPlan::max_start_delays() const noexcept

Return explicit maximum compute-start delay policies.

Returns: Plan-owned records in canonical Operator order.

readable_triggers

std::span<const ReadableTriggerPlanRecord> holoscan::ExecutionPlan::readable_triggers() const noexcept

Return level-readable trigger policies.

Returns: Plan-owned records in canonical Operator order.

missing_aggregates

std::span<const MissingAggregatePlanRecord> holoscan::ExecutionPlan::missing_aggregates() const noexcept

Return complete phase-local missing-input aggregation policies.

Returns: Plan-owned records grouped by Operator and selection phase.

window_triggers

std::span<const WindowTriggerPlanRecord> holoscan::ExecutionPlan::window_triggers() const noexcept

Return admitted bounded window-trigger state machines.

Returns: Plan-owned records in canonical Operator order.

bracketed_windows

std::span<const BracketedWindowPlanRecord> holoscan::ExecutionPlan::bracketed_windows() const noexcept

Return admitted bracketed-input retention contracts.

Returns: Plan-owned records in canonical input order.

input_selections

std::span<const InputSelectionPlanRecord> holoscan::ExecutionPlan::input_selections() const noexcept

Return one fully resolved record per explicitly selected input.

Returns: Plan-owned records in canonical Operator/input order.

predicate_triggers

std::span<const PredicateTriggerPlanRecord> holoscan::ExecutionPlan::predicate_triggers() const noexcept

Return normalized predicate-trigger records.

Returns: Plan-owned records in canonical Operator order.

predicate_inputs

std::span<const PredicateInputPlanRecord> holoscan::ExecutionPlan::predicate_inputs() const noexcept

Return ordered scalar predicate-input records.

Returns: Plan-owned records grouped by predicate and argument ordinal.

predicate_callables

std::span<const PredicateCallablePlanRecord> holoscan::ExecutionPlan::predicate_callables() const noexcept

Return pointer-free predicate callable admission records.

Returns: Plan-owned records joined to triggers by predicate identity.

lifecycle_checkpoints

std::span<const LifecycleCheckpointPlanRecord> holoscan::ExecutionPlan::lifecycle_checkpoints() const noexcept

Return every logical lifecycle checkpoint.

Returns: Plan-owned immutable records, or an empty span.

lifecycle_dependencies

std::span<const LifecycleDependencyPlanRecord> holoscan::ExecutionPlan::lifecycle_dependencies() const noexcept

Return validated lifecycle dependencies.

Returns: Plan-owned immutable records, or an empty span.

lifecycle_restart_permissions

std::span<const LifecycleRestartPermissionPlanRecord> holoscan::ExecutionPlan::lifecycle_restart_permissions() const noexcept

Return compile-admitted cross-target restart permissions.

Returns: Plan-owned immutable records, or an empty span.

lifecycle_restart_targets

std::span<const LifecycleRestartTargetPlanRecord> holoscan::ExecutionPlan::lifecycle_restart_targets() const noexcept

Return one total restart-target disposition per Operator.

Returns: Plan-owned immutable records, or an empty span.

lifecycle_restart_closures

std::span<const LifecycleRestartClosurePlanRecord> holoscan::ExecutionPlan::lifecycle_restart_closures() const noexcept

Return compiler-derived per-target restart closures and widening tables.

Returns: Plan-owned records sorted by dense target identity. The span remains valid while any copy of this ExecutionPlan owns the immutable state and is safe for concurrent read-only use.

lifecycle_mutable_fields

std::span<const LifecycleMutableFieldPlanRecord> holoscan::ExecutionPlan::lifecycle_mutable_fields() const noexcept

Return lifecycle-mutable Parameter field records.

Returns: Plan-owned immutable records, or an empty span.

lifecycle_transaction_capacity

std::optional<LifecycleTransactionCapacityPlanRecord> holoscan::ExecutionPlan::lifecycle_transaction_capacity() const noexcept

Return finite active lifecycle transaction capacity evidence.

Returns: Accepted record, or empty when transactions are disabled/unavailable.

operator_parameters

std::span<const OperatorParameterPlanRecord> holoscan::ExecutionPlan::operator_parameters() const noexcept

Return one generation-zero Parameter record per compiled Operator.

Returns: Plan-owned records in dense Operator identity order, or an empty span.

operator_hosts

std::span<const OperatorHostPlanRecord> holoscan::ExecutionPlan::operator_hosts() const noexcept

Return callback-host facts for every compiled Operator.

Returns: Plan-owned records in dense Operator identity order, or an empty span.

parameter_fields

std::span<const ParameterFieldPlanRecord> holoscan::ExecutionPlan::parameter_fields() const noexcept

Return every declared Parameter field admission record.

Returns: Plan-owned records ordered by Operator identity then ParamFieldId.

parameter_catalog

ParameterCatalogView holoscan::ExecutionPlan::parameter_catalog(
) const

Return an owning policy-filtered plan-bound Parameter catalog.

Copying a nonempty catalog may allocate. The returned copy owns its records and remains valid independently of this ExecutionPlan. An empty or unsupported-policy request returns an empty catalog.

Returns: Immutable catalog copy with no startup values, value digests, or local operations.

Parameters

policy
ParamCatalogAccessPolicyDefaults to ParamCatalogAccessPolicy::kPublic

Public policy projection. The baseline exposes no privileged catalog policy.

parameter_derived_terms

std::span<const ParameterDerivedTermPlanRecord> holoscan::ExecutionPlan::parameter_derived_terms() const noexcept

Return bounded temporal terms derived from declared Parameter fields.

Returns: Plan-owned immutable records in canonical term-identity order.

parameter_runtime_capacity

std::optional<ParameterRuntimeCapacityPlanRecord> holoscan::ExecutionPlan::parameter_runtime_capacity() const noexcept

Return finite Parameter update capacity evidence.

Returns: Compiler-selected capacities, or empty for an empty plan handle.

endpoint_catalog

const ChannelEndpointCatalog & holoscan::ExecutionPlan::endpoint_catalog() const noexcept

Return the immutable external endpoint catalog.

Returns: Plan-owned attempted catalog, including normalized rows retained by a rejected plan. The catalog never makes a rejected plan executable.


Member variables

NameTypeDescription
state_std::shared_ptr< const detail::ExecutionPlanState >