holoscan::DeploymentBinding
Own cold deployment bindings supplied to Graph compilation.
The value deep-copies every string and placement. It contains no live scheduler, process, thread, transport, or backend handle. Compilation validates partition names, placement shape, and duplicates, then performs only read-only host capability probes. Probe results and any profile-permitted fallback become immutable plan evidence; compilation never applies affinity or scheduling state. Runtime consumes the accepted request and evidence when applying placement to executing threads.
Methods
bind_thread_placement
Bind one manual execution partition to an exact placement request.
Compile rejects unknown names and duplicate authority with PARTITION_PLACEMENT_UNKNOWN_OR_DUPLICATE.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Exact authored partition name copied before return.
Placement request copied before return.
bind_support_thread_affinity
Bind one Runtime-owned support-thread role to an allowed CPU set.
Compilation rejects unknown or duplicate roles. On Linux, the compiling thread’s current affinity proves permission for contained requests; CPUs outside that mask require read-only cgroup and online-CPU evidence. Unavailable, malformed or unsupported evidence fails closed. Runtime still applies and reads back the exact requested mask before dispatch. Neither this method nor compilation changes the calling thread’s affinity. A controller binding also constrains inline Operator callbacks hosted by that controller; separately worker-backed execution lanes without explicit partition affinity retain the controller thread’s pre-binding allowed CPU set.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Controller or optional process-local Channel pump.
Nonempty CPU set copied before return.
bind_cuda_green_context
Bind one manual execution partition to an exact CUDA Green Context placement.
Invalid devices, zero counts, unknown names, and duplicate authority are preserved for stable compile diagnostics. This call does not reserve CUDA resources.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Exact authored manual partition name copied before return.
Explicit target device and positive exact structured SM count.
allow_generated_endpoint_name
Allow one exact versioned generated endpoint name.
Compile rejects invalid or conflicting duplicates; this call grants no wildcard or future-version authority.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Exact final name, algorithm identifier, and version.
bind_tensor_output_device
Bind one exact Tensor output to a CUDA device.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Stable output selector and explicit device ordinal; strings are copied before return.
bind_imported_topic_device
Bind one imported external Tensor topic to a CUDA device.
Required for each imported topic whose Tensor or Tensor-bearing schema payload is MemoryKind::kCudaDevice, MemoryKind::kCudaManaged, or a copy-capable MemoryKind::kPinnedHost. Every device Tensor field must use a copy-capable transfer policy such as InterfaceTensorEmitPolicy::kCopyIfNeeded; a require-exportable CUDA Tensor has no staging pool to place and is rejected during compilation. This is deployment placement, not part of the topic contract. Compile rejects invalid placements with PHYSICAL_TENSOR_DEVICE_BINDING_INVALID.
Returns: This binding for fluent cold-path authoring.
Throws: std::bad_alloc if owned storage allocation fails.
Parameters
Imported-topic endpoint name and explicit device ordinal; the name is copied before return.
thread_placements
Return owned execution-partition placements in insertion order.
Returns: Immutable bindings valid until this value is mutated or destroyed.
support_thread_affinities
Return owned support-thread affinity bindings in insertion order.
Returns: Immutable bindings valid until this value is mutated or destroyed.
cuda_green_contexts
Return owned manual-partition Green Context placements in insertion order.
Returns: Immutable bindings valid until this value is mutated or destroyed.
generated_endpoint_names
Return owned generated endpoint pins in insertion order.
Returns: Immutable pins valid until this value is mutated or destroyed.
imported_topic_devices
Return owned imported-topic device placements in insertion order.
Returns: Immutable placements valid until this value is mutated or destroyed.
tensor_output_devices
Return owned Tensor output device placements in insertion order.
Returns: Immutable placements valid until this value is mutated or destroyed.