holoscan::ExecutionPlan
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.
Constructors
ExecutionPlan
Default
Overload 2
Create an empty rejected plan handle.
Methods
json
Return canonical schema-versioned JSON.
Returns: Plan-owned bytes, or an empty view for an empty handle.
graph
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
Return the complete source Graph identity.
Returns: Frozen process-local instance/version/hash tuple, or zeros.
generation
Return the frozen source Graph generation.
Returns: Nonzero generation for a composed plan, or zero.
graph_hash
Return the canonical source Graph authoring hash.
Returns: Authoring-content hash, or all-zero bytes.
digest
Return the semantic execution-plan digest.
Returns: Versioned normalized plan digest, or all-zero bytes.
ok
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
Return stable compile diagnostics in canonical order.
Returns: Plan-owned immutable records, or an empty span.
require_no_errors
Require an admitted plan before continuing cold setup.
Throws: CompileError when the handle is empty or the plan has an error.
profile_manifest
Return immutable profile admission evidence.
Returns: Plan-owned manifest, or a stable empty rejected manifest.
partitioning_plan
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
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
Return canonical per-vertex partition decisions.
Returns: Plan-owned immutable records, or an empty span.
execution_partitions
Return the accepted disjoint execution-partition cover.
Returns: Plan-owned immutable records, or an empty span.
schedule_edges
Return every original graph edge crossing accepted partitions.
Returns: Plan-owned immutable records, or an empty span.
scheduler_plan
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
Return compile-time placement proofs and Runtime readback obligations.
Returns: Plan-owned immutable records in partition/probe order.
partition_placements
Return requested and accepted placement for named execution partitions.
Returns: Plan-owned immutable records in canonical authored-name and request order.
support_thread_affinities
Return requested and accepted affinity for Runtime support-thread roles.
Returns: Plan-owned immutable records in canonical role and request order.
execution_lanes
Return every dense partition-local serial callback owner consumed by Runtime.
Returns: Plan-owned records ordered by zero-based lane identity.
ports
Return canonical compiled ports with resolved finite bounds.
Returns: Plan-owned records in dense PortId order.
port_rates
Return pointer-free rate declarations and lifecycle selection domains.
Returns: Plan-owned records in dense PortId order.
accumulation_horizons
Return exact finite accumulation horizons used by queue sizing.
Returns: Plan-owned records in canonical edge and horizon order.
hard_floor_contributors
Return reviewable hard-floor contributions and composition identities.
Returns: Plan-owned records in canonical edge and contributor order.
queue_sizing_recipes
Return immutable logical queue-sizing recipes.
Returns: Plan-owned records in canonical EdgeId order.
interface_port_bindings
Return reusable-Graph aliases projected into plan-local port identities.
Returns: Plan-owned records in public/internal port order.
payload_edges
Return resolved typed payload edges and queue/cache geometry.
Returns: Plan-owned records in canonical EdgeId order.
channel_locality
Return requested and accepted communication locality per payload edge.
Returns: Plan-owned records in canonical EdgeId order.
channel_services
Return external Channel service-static requirements.
Returns: Plan-owned records in canonical external-topic order.
channel_publishers
Return publisher-local external endpoint requests.
Returns: Plan-owned records in canonical external-topic order.
channel_subscribers
Return subscriber-local external endpoint requests.
Returns: Plan-owned records in canonical external-topic order.
generic_output_loans
Return admitted generic non-Tensor output-loan capabilities.
Returns: Plan-owned records in output PortId order.
tensor_allocations
Return direct Tensor output-allocation capabilities.
Returns: Plan-owned records only for outputs admitted with runtime-pool storage intent.
tensor_byte_span_derivations
Return compile-time evidence for Parameter/input-derived Tensor slot capacities.
Returns: Immutable records in output PortId order.
find_tensor_byte_span_derivation
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
Canonical Operator path, such as resize or child/resize.
Declaration-local output name.
Optional descriptor-schema field identity.
Optional descriptor-schema Tensor index paired with field_id.
tensor_memory_kind_derivations
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
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
Canonical Operator path, such as resize or child/resize.
Declaration-local output name.
Optional descriptor-schema field identity.
Optional descriptor-schema Tensor index paired with field_id.
tensor_field_allocations
Return field-specific allocation records for multi-Tensor schema outputs.
Returns: Immutable records in output then canonical field-id order.
tensor_interface_pools
Return physical Tensor interface-pool contracts.
Returns: Plan-owned records in canonical external-topic order.
tensor_device_resources
Return aggregated process/device Tensor materialization contracts.
Returns: Plan-owned records in process-group then device order.
cuda_green_context_pools
Return Green Context pool declarations in process/device order.
Returns: Plan-owned records in canonical process-group then device order.
cuda_green_context_resources
Return Green Context resources in pool/context order.
Returns: Plan-owned records in canonical process-group, device, then context order.
cuda_green_context_requests
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
Return partition-to-context assignments in canonical partition order.
Returns: Plan-owned records ordered by process group, device, then execution partition.
cuda_compute_streams
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
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
Return exact CUDA-active Operator-to-stream bindings.
Returns: Plan-owned records in canonical Operator vertex order.
tensor_inline_records
Return generated-provider inline Tensor record bucket contracts.
Returns: Plan-owned records ordered by external topic identity.
imported_generation_capacities
Return finite imported exporter-generation capacities.
Returns: Plan-owned records in canonical external-topic order.
tensor_transfer_plans
Return the closed Tensor source-class-to-realization matrix.
Returns: Plan-owned records ordered by topic and stable source-class value.
pool_capacity_contributors
Return canonical unique-slot capacity contributors.
Returns: Plan-owned records ordered by pool and contributor identity.
pool_capacity_dependencies
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
Return immutable provider allocation recipes and dependency ranges.
Returns: Plan-owned records ordered by stable pool identity.
publication_outcomes
Return per-output publication-boundary retry and authority contracts.
Returns: Plan-owned records in output PortId order.
readiness
Return canonical readiness declarations and admitted capacities.
Returns: Plan-owned immutable records, or an empty span.
clock_catalog
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
Return explicitly authored direct clock conversions.
Returns: Plan-owned immutable records in canonical declaration order.
endpoint_clock_health
Return normalized clock-health contracts for external endpoints.
Returns: One plan-owned record per external endpoint in boundary-port order.
operator_completion_rules
Return compile-admitted Operator completion rules.
Returns: Plan-owned records in canonical logical Operator order.
temporal_triggers
Return one total pointer-free record per admitted temporal trigger.
Returns: Plan-owned records in canonical Operator order.
aligned_triggers
Return deterministic oldest-head aligned-join policies.
Returns: Plan-owned records in canonical Operator order.
clock_triggers
Return fixed-phase clock-trigger schedules.
Returns: Plan-owned records in canonical Operator order.
max_start_delays
Return explicit maximum compute-start delay policies.
Returns: Plan-owned records in canonical Operator order.
readable_triggers
Return level-readable trigger policies.
Returns: Plan-owned records in canonical Operator order.
missing_aggregates
Return complete phase-local missing-input aggregation policies.
Returns: Plan-owned records grouped by Operator and selection phase.
window_triggers
Return admitted bounded window-trigger state machines.
Returns: Plan-owned records in canonical Operator order.
bracketed_windows
Return admitted bracketed-input retention contracts.
Returns: Plan-owned records in canonical input order.
input_selections
Return one fully resolved record per explicitly selected input.
Returns: Plan-owned records in canonical Operator/input order.
predicate_triggers
Return normalized predicate-trigger records.
Returns: Plan-owned records in canonical Operator order.
predicate_inputs
Return ordered scalar predicate-input records.
Returns: Plan-owned records grouped by predicate and argument ordinal.
predicate_callables
Return pointer-free predicate callable admission records.
Returns: Plan-owned records joined to triggers by predicate identity.
lifecycle_checkpoints
Return every logical lifecycle checkpoint.
Returns: Plan-owned immutable records, or an empty span.
lifecycle_dependencies
Return validated lifecycle dependencies.
Returns: Plan-owned immutable records, or an empty span.
lifecycle_restart_permissions
Return compile-admitted cross-target restart permissions.
Returns: Plan-owned immutable records, or an empty span.
lifecycle_restart_targets
Return one total restart-target disposition per Operator.
Returns: Plan-owned immutable records, or an empty span.
lifecycle_restart_closures
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
Return lifecycle-mutable Parameter field records.
Returns: Plan-owned immutable records, or an empty span.
lifecycle_transaction_capacity
Return finite active lifecycle transaction capacity evidence.
Returns: Accepted record, or empty when transactions are disabled/unavailable.
operator_parameters
Return one generation-zero Parameter record per compiled Operator.
Returns: Plan-owned records in dense Operator identity order, or an empty span.
operator_hosts
Return callback-host facts for every compiled Operator.
Returns: Plan-owned records in dense Operator identity order, or an empty span.
parameter_fields
Return every declared Parameter field admission record.
Returns: Plan-owned records ordered by Operator identity then ParamFieldId.
parameter_catalog
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
Public policy projection. The baseline exposes no privileged catalog policy.
parameter_derived_terms
Return bounded temporal terms derived from declared Parameter fields.
Returns: Plan-owned immutable records in canonical term-identity order.
parameter_runtime_capacity
Return finite Parameter update capacity evidence.
Returns: Compiler-selected capacities, or empty for an empty plan handle.
endpoint_catalog
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.