class
SushiRuntime::API::AdvancedControls
Exposes a narrow, read-only view of runtime-internal state.
- Declared in
include/SushiRuntime/api/runtime/runtime.hpp
Precondition
The view does not outlive the Runtime it came from.
See also
include/SushiRuntime/api/runtime/README.md
Public member functions
explicit AdvancedControls(Execution::RuntimeContext &ctx) noexceptWraps the runtime's context for read-only inspection.
Parameters
ctxContext borrowed, not owned; must outlive this view.
std::size_t device_count() constReports how many devices the runtime is driving.
Returns
Number of device queues selected at construction; valid device indices are [0, this).
bool profiling_enabled() const noexceptTells whether per-kernel timings are being collected.
Returns
True when the queues were built with profiling enabled.
bool rebalancer_enabled() constTells whether work is being redistributed by device load.
Returns
True while the background thermal rebalancer is running.
Execution::WorkerPoolInfo worker_pool() constReturns the worker pool as built, which may differ from the request.
Returns
The worker count, first bound core, and pin policy in effect.
See also
include/SushiRuntime/api/runtime/README.md
std::size_t host_to_device_bytes() const noexceptReports upload traffic caused by explicit transfers.
Returns
Cumulative bytes copied host to device since startup; implicit shared-USM migration is not counted.
std::size_t device_to_host_bytes() const noexceptReports readback traffic caused by explicit transfers.
Returns
Cumulative bytes copied device to host since startup; implicit shared-USM migration is not counted.

